From: Alan Cox Date: Sat, 3 Jan 2015 15:57:59 +0000 (+0000) Subject: errno: match the kernel change X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=912083ae940d2f36e3ccb448702d2676e85ab1c4;p=FUZIX.git errno: match the kernel change We add ENOLCK but also make EAGAIN match EWOULDBLOCK as Linux does. That avoids a whole ton of annoying problems with BSD v SYS5 --- diff --git a/Library/include/errno.h b/Library/include/errno.h index e853160d..342cdee3 100644 --- a/Library/include/errno.h +++ b/Library/include/errno.h @@ -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 */