mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Split error-message table portions of errno.h out to gpxe/errortab.h
This commit is contained in:
@@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
20
src/include/gpxe/errortab.h
Normal file
20
src/include/gpxe/errortab.h
Normal 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 */
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user