From 84a2b886e16644f4fca157fcdb089b1994a8848c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 20 Dec 2006 03:40:48 +0000 Subject: Split error-message table portions of errno.h out to gpxe/errortab.h --- src/include/errno.h | 11 ----------- src/include/gpxe/errortab.h | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 src/include/gpxe/errortab.h (limited to 'src/include') diff --git a/src/include/errno.h b/src/include/errno.h index 68966bd96..43e207636 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -170,17 +170,6 @@ #define ETIMEDOUT 0xf6 /**< Connection timed out */ #define EWOULDBLOCK EAGAIN /**< Resource temporarily unavailable */ -/* Data structures and declarations */ - -#include - extern int errno; -struct errortab { - int errno; - const char *text; -}; - -#define __errortab __table(errortab,01) - #endif /* ERRNO_H */ diff --git a/src/include/gpxe/errortab.h b/src/include/gpxe/errortab.h new file mode 100644 index 000000000..1ca7fe551 --- /dev/null +++ b/src/include/gpxe/errortab.h @@ -0,0 +1,20 @@ +#ifndef _GPXE_ERRORTAB_H +#define _GPXE_ERRORTAB_H + +/** @file + * + * Error message tables + * + */ + +#include +#include + +struct errortab { + int errno; + const char *text; +}; + +#define __errortab __table ( errortab, 01 ) + +#endif /* _GPXE_ERRORTAB_H */ -- cgit v1.2.3-55-g7522