From 912083ae940d2f36e3ccb448702d2676e85ab1c4 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 3 Jan 2015 15:57:59 +0000 Subject: [PATCH] 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 --- Library/include/errno.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.34.1