summaryrefslogtreecommitdiffstats
path: root/src/include/errno.h
diff options
context:
space:
mode:
authorMichael Brown2007-05-18 16:17:35 +0200
committerMichael Brown2007-05-18 16:17:35 +0200
commit6b6fc1d5eac7973935ee23d047562820dd5e4bb6 (patch)
treee33b9295406c90014b7c8798fa6cb883025f8852 /src/include/errno.h
parentPrefix all the open()-family routines with xfer_, to disambiguate them (diff)
downloadipxe-6b6fc1d5eac7973935ee23d047562820dd5e4bb6.tar.gz
ipxe-6b6fc1d5eac7973935ee23d047562820dd5e4bb6.tar.xz
ipxe-6b6fc1d5eac7973935ee23d047562820dd5e4bb6.zip
Allow construction of PXE status code from internal error number.
Diffstat (limited to 'src/include/errno.h')
-rw-r--r--src/include/errno.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 42feb23a..ec8b7555 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -51,6 +51,9 @@
*
*/
+/** Derive PXENV_STATUS code from gPXE error number */
+#define PXENV_STATUS( rc ) ( (-(rc)) & 0x00ff )
+
/**
* @defgroup pxeerrors PXE error codes
*