summaryrefslogtreecommitdiffstats
path: root/src/include/errno.h
diff options
context:
space:
mode:
authorMichael Brown2007-01-11 17:30:21 +0100
committerMichael Brown2007-01-11 17:30:21 +0100
commit6a03552381d3be24ccec6bc0cb104c1f46df7f89 (patch)
tree9b1838a0fc414f3881662979bf39106e2e04e336 /src/include/errno.h
parentDownloaded from current grub CVS. (diff)
downloadipxe-6a03552381d3be24ccec6bc0cb104c1f46df7f89.tar.gz
ipxe-6a03552381d3be24ccec6bc0cb104c1f46df7f89.tar.xz
ipxe-6a03552381d3be24ccec6bc0cb104c1f46df7f89.zip
Distinguish between ENOMEM (as representing a lack of internal memory
as allocated by malloc()) versus all other errors, in particular ENOBUFS (representing a lack of external buffer space, e.g. in a device's TX queue or a user buffer).
Diffstat (limited to 'src/include/errno.h')
-rw-r--r--src/include/errno.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 43e20763..dc4e4c19 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -145,29 +145,29 @@
#define ENFILE EMFILE /**< Too many open files in system */
/** Cannot allocate memory */
#define ENOMEM PXENV_STATUS_OUT_OF_RESOURCES
-#define ENOBUFS ENOMEM /**< No buffer space available */
-#define ENODATA 0xe6 /**< No data available */
-#define ENODEV 0xe7 /**< No such device */
-#define ENOENT 0xe8 /**< No such file or directory */
-#define ENOEXEC 0xe9 /**< Exec format error */
+#define ENOBUFS 0xe6 /**< No buffer space available */
+#define ENODATA 0xe7 /**< No data available */
+#define ENODEV 0xe8 /**< No such device */
+#define ENOENT 0xe9 /**< No such file or directory */
+#define ENOEXEC 0xea /**< Exec format error */
#define ENOMSG ENODATA /**< No message of the desired type */
-#define ENOSPC 0xea /**< No space left on device */
-#define ENOSR 0xeb /**< No stream resources */
-#define ENOSTR 0xec /**< Not a stream */
-#define ENOSYS 0xed /**< Function not implemented */
-#define ENOTCONN 0xee /**< Transport endpoint is not connected */
-#define ENOTSOCK 0xef /**< Socket operation on non-socket */
-#define EOPNOTSUPP 0xf0 /**< Operation not supported */
+#define ENOSPC 0xeb /**< No space left on device */
+#define ENOSR 0xec /**< No stream resources */
+#define ENOSTR 0xed /**< Not a stream */
+#define ENOSYS 0xee /**< Function not implemented */
+#define ENOTCONN 0xef /**< Transport endpoint is not connected */
+#define ENOTSOCK 0xf0 /**< Socket operation on non-socket */
+#define EOPNOTSUPP 0xf1 /**< Operation not supported */
#define ENOTSUP EOPNOTSUPP /**< Not supported */
-#define ENOTTY 0xf1 /**< Inappropriate ioctl for device */
+#define ENOTTY 0xf2 /**< Inappropriate ioctl for device */
#define ENXIO ENODEV /**< No such device or address */
-#define EOVERFLOW 0xf2 /**< Result too large */
+#define EOVERFLOW 0xf3 /**< Result too large */
#define EPERM EACCES /**< Operation not permitted */
-#define EPROTO 0xf3 /**< Protocol error */
-#define EPROTONOSUPPORT 0xf4 /**< Protocol not supported */
-#define EPROTOTYPE 0xf5 /**< Protocol wrong type for socket */
+#define EPROTO 0xf4 /**< Protocol error */
+#define EPROTONOSUPPORT 0xf5 /**< Protocol not supported */
+#define EPROTOTYPE 0xf6 /**< Protocol wrong type for socket */
#define ERANGE EOVERFLOW /**< Result too large */
-#define ETIMEDOUT 0xf6 /**< Connection timed out */
+#define ETIMEDOUT 0xf7 /**< Connection timed out */
#define EWOULDBLOCK EAGAIN /**< Resource temporarily unavailable */
extern int errno;