parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc
authorGuy Martin <gmsoft@tuxicoman.be>
Thu, 16 Jan 2014 16:17:53 +0000 (17:17 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 2 Feb 2014 19:57:42 +0000 (20:57 +0100)
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 <gmsoft@tuxicoman.be>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/uapi/asm/errno.h

index f3a8aa5..c0ae625 100644 (file)
 
 #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 */