2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 07:11:32 +00:00

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 "vsprintf.h"
#include <errno.h>
#include <console.h>
#include <gpxe/errortab.h>
/** @file
*

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 */

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