diff options
author | Michael Brown | 2007-05-18 16:17:35 +0200 |
---|---|---|
committer | Michael Brown | 2007-05-18 16:17:35 +0200 |
commit | 6b6fc1d5eac7973935ee23d047562820dd5e4bb6 (patch) | |
tree | e33b9295406c90014b7c8798fa6cb883025f8852 /src/include/errno.h | |
parent | Prefix all the open()-family routines with xfer_, to disambiguate them (diff) | |
download | ipxe-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.h | 3 |
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 * |