errno: match the kernel change
authorAlan Cox <alan@linux.intel.com>
Sat, 3 Jan 2015 15:57:59 +0000 (15:57 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 3 Jan 2015 15:57:59 +0000 (15:57 +0000)
We add ENOLCK but also make EAGAIN match EWOULDBLOCK as Linux does. That avoids
a whole ton of annoying problems with BSD v SYS5

Library/include/errno.h

index e853160..342cdee 100644 (file)
@@ -43,7 +43,8 @@
 /* math software */
 #define EDOM            33              /* Argument too large */
 #define ERANGE          34              /* Result too large */
-#define EWOULDBLOCK    35              /* Operation would block */
+#define EWOULDBLOCK    EAGAIN          /* Operation would block */
+#define ENOLOCK                35              /* Lock table full */
 #define ENOTEMPTY      36              /* Directory is not empty */
 #define ENAMETOOLONG    37              /* File name too long */