diff --git a/libc/include/errno.h b/libc/include/errno.h index 63b06109..f6e79aa2 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Jonas 'Sortie' Termansen. + * Copyright (c) 2011-2016, 2020 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -24,7 +24,6 @@ #define ENOTBLK 12 #define ENODEV 13 -#define EWOULDBLOCK 14 #define EBADF 15 #define EOVERFLOW 16 #define ENOENT 17 @@ -112,6 +111,7 @@ #define ENOMOUNT 99 #define EOPNOTSUPP ENOTSUP +#define EWOULDBLOCK EAGAIN #ifdef __cplusplus extern "C" { diff --git a/libc/string/strerror.c b/libc/string/strerror.c index 0b288e0d..affb27a4 100644 --- a/libc/string/strerror.c +++ b/libc/string/strerror.c @@ -27,7 +27,6 @@ const char* sortix_strerror(int errnum) { case ENOTBLK: return "Block device required"; case ENODEV: return "No such device"; - case EWOULDBLOCK: return "Operation would block"; case EBADF: return "Bad file descriptor"; case EOVERFLOW: return "Value too large to be stored in data type"; case ENOENT: return "No such file or directory";