Procházet zdrojové kódy

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

tags/v0.9.3
Michael Brown před 17 roky
rodič
revize
84a2b886e1

+ 3
- 3
src/core/errno.c Zobrazit soubor

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

+ 0
- 11
src/include/errno.h Zobrazit soubor

@@ -170,17 +170,6 @@
170 170
 #define ETIMEDOUT	0xf6	/**< Connection timed out */
171 171
 #define EWOULDBLOCK	EAGAIN	/**< Resource temporarily unavailable */
172 172
 
173
-/* Data structures and declarations */
174
-
175
-#include <gpxe/tables.h>
176
-
177 173
 extern int errno;
178 174
 
179
-struct errortab {
180
-	int errno;
181
-	const char *text;
182
-};
183
-
184
-#define __errortab __table(errortab,01)
185
-
186 175
 #endif /* ERRNO_H */

+ 20
- 0
src/include/gpxe/errortab.h Zobrazit soubor

@@ -0,0 +1,20 @@
1
+#ifndef _GPXE_ERRORTAB_H
2
+#define _GPXE_ERRORTAB_H
3
+
4
+/** @file
5
+ *
6
+ * Error message tables
7
+ *
8
+ */
9
+
10
+#include <errno.h>
11
+#include <gpxe/tables.h>
12
+
13
+struct errortab {
14
+	int errno;
15
+	const char *text;
16
+};
17
+
18
+#define __errortab __table ( errortab, 01 )
19
+
20
+#endif /* _GPXE_ERRORTAB_H */

+ 1
- 1
src/interface/pxe/pxe_errors.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit