summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2016-10-01 11:44:21 -0400
committerAnas Nashif <nashif@linux.intel.com>2016-10-03 02:29:42 +0000
commitc83e6a1f48cdedea365f32d4d6e68f2466ab05ac (patch)
tree242aee348920ae6f8ef37118604e0323e56c2c6f /lib
parent0cf87e4c26319ac33faadea48c93751932889002 (diff)
libc: define EWOULDBLOCK to be the same as EAGAIN
EWOULDBLOCK is an old error code from BSD. Not much uses it, and on basically all modern systems it's defined to the same value as EAGAIN, which is the System V value for the same condition. Jira: ZEP-982 Change-Id: I5435ce55fa47f5bd2fac5d881b5b195b025f48a2 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/minimal/include/errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/minimal/include/errno.h b/lib/libc/minimal/include/errno.h
index f999bd13f..b389c510c 100644
--- a/lib/libc/minimal/include/errno.h
+++ b/lib/libc/minimal/include/errno.h
@@ -117,7 +117,7 @@ extern int *_get_errno(void);
/* non-blocking and interrupt i/o */
#define EINPROGRESS 68 /* Operation now in progress */
#define EALREADY 69 /* Operation already in progress */
-#define EWOULDBLOCK 70 /* Operation would block */
+#define EWOULDBLOCK EAGAIN /* Operation would block */
#define ENOSYS 71 /* Function not implemented */