Selaa lähdekoodia

Differentiate between ENOSPC and ENOMEM

tags/v0.9.3
Michael Brown 18 vuotta sitten
vanhempi
commit
04da3556f9
1 muutettua tiedostoa jossa 13 lisäystä ja 13 poistoa
  1. 13
    13
      src/include/errno.h

+ 13
- 13
src/include/errno.h Näytä tiedosto

@@ -151,23 +151,23 @@
151 151
 #define ENOENT		0xe8	/**< No such file or directory */
152 152
 #define ENOEXEC		0xe9	/**< Exec format error */
153 153
 #define ENOMSG		ENODATA	/**< No message of the desired type */
154
-#define ENOSPC		ENOMEM	/**< No space left on device */
155
-#define ENOSR		0xea	/**< No stream resources */
156
-#define ENOSTR		0xeb	/**< Not a stream */
157
-#define ENOSYS		0xec	/**< Function not implemented */
158
-#define ENOTCONN	0xed	/**< Transport endpoint is not connected */
159
-#define ENOTSOCK	0xee	/**< Socket operation on non-socket */
160
-#define EOPNOTSUPP	0xef	/**< Operation not supported */
154
+#define ENOSPC		0xea	/**< No space left on device */
155
+#define ENOSR		0xeb	/**< No stream resources */
156
+#define ENOSTR		0xec	/**< Not a stream */
157
+#define ENOSYS		0xed	/**< Function not implemented */
158
+#define ENOTCONN	0xee	/**< Transport endpoint is not connected */
159
+#define ENOTSOCK	0xef	/**< Socket operation on non-socket */
160
+#define EOPNOTSUPP	0xf0	/**< Operation not supported */
161 161
 #define ENOTSUP		EOPNOTSUPP /**< Not supported */
162
-#define ENOTTY		0xf0	/**< Inappropriate ioctl for device */
162
+#define ENOTTY		0xf1	/**< Inappropriate ioctl for device */
163 163
 #define ENXIO		ENODEV	/**< No such device or address */
164
-#define EOVERFLOW	0xf1	/**< Result too large */
164
+#define EOVERFLOW	0xf2	/**< Result too large */
165 165
 #define EPERM		EACCES	/**< Operation not permitted */
166
-#define EPROTO		0xf2	/**< Protocol error */
167
-#define EPROTONOSUPPORT	0xf3	/**< Protocol not supported */
168
-#define EPROTOTYPE	0xf4	/**< Protocol wrong type for socket */
166
+#define EPROTO		0xf3	/**< Protocol error */
167
+#define EPROTONOSUPPORT	0xf4	/**< Protocol not supported */
168
+#define EPROTOTYPE	0xf5	/**< Protocol wrong type for socket */
169 169
 #define ERANGE		EOVERFLOW /**< Result too large */
170
-#define ETIMEDOUT	0xf5	/**< Connection timed out */
170
+#define ETIMEDOUT	0xf6	/**< Connection timed out */
171 171
 #define EWOULDBLOCK	EAGAIN	/**< Resource temporarily unavailable */
172 172
 
173 173
 /* Data structures and declarations */

Loading…
Peruuta
Tallenna