Split error-message table portions of errno.h out to gpxe/errortab.h

This commit is contained in:
Michael Brown
2006-12-20 03:40:48 +00:00
parent e5f0898f38
commit 84a2b886e1
4 changed files with 24 additions and 15 deletions

View File

@@ -170,17 +170,6 @@
#define ETIMEDOUT 0xf6 /**< Connection timed out */
#define EWOULDBLOCK EAGAIN /**< Resource temporarily unavailable */
/* Data structures and declarations */
#include <gpxe/tables.h>
extern int errno;
struct errortab {
int errno;
const char *text;
};
#define __errortab __table(errortab,01)
#endif /* ERRNO_H */

View File

@@ -0,0 +1,20 @@
#ifndef _GPXE_ERRORTAB_H
#define _GPXE_ERRORTAB_H
/** @file
*
* Error message tables
*
*/
#include <errno.h>
#include <gpxe/tables.h>
struct errortab {
int errno;
const char *text;
};
#define __errortab __table ( errortab, 01 )
#endif /* _GPXE_ERRORTAB_H */