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

@@ -1,6 +1,6 @@
#include "etherboot.h" #include <errno.h>
#include "errno.h" #include <console.h>
#include "vsprintf.h" #include <gpxe/errortab.h>
/** @file /** @file
* *

View File

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

View File

@@ -1,4 +1,4 @@
#include "errno.h" #include <gpxe/errortab.h>
/* /*
* This table was generated from the relevant section of errno.h using * This table was generated from the relevant section of errno.h using