From: Guy Martin Date: Thu, 16 Jan 2014 16:17:53 +0000 (+0100) Subject: parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc X-Git-Tag: MMI-PSA29.97-13-9~12784^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5a408d53edef3af07ac7697b8bc54a755628450;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc On Linux, only parisc uses a different value for EWOULDBLOCK which causes a lot of troubles for applications not checking for both values. Since the hpux compat is long dead, make EWOULDBLOCK behave the same as all other architectures. Signed-off-by: Guy Martin Signed-off-by: Helge Deller --- diff --git a/arch/parisc/include/uapi/asm/errno.h b/arch/parisc/include/uapi/asm/errno.h index f3a8aa554841..c0ae62520d15 100644 --- a/arch/parisc/include/uapi/asm/errno.h +++ b/arch/parisc/include/uapi/asm/errno.h @@ -106,7 +106,7 @@ #define EALREADY 244 /* Operation already in progress */ #define EINPROGRESS 245 /* Operation now in progress */ -#define EWOULDBLOCK 246 /* Operation would block (Linux returns EAGAIN) */ +#define EWOULDBLOCK EAGAIN /* Operation would block (Not HPUX compliant) */ #define ENOTEMPTY 247 /* Directory not empty */ #define ENAMETOOLONG 248 /* File name too long */ #define ELOOP 249 /* Too many symbolic links encountered */