From d00c692a00e07cbf8e387a41bd9f15bb0e404c8e Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Mon, 21 Aug 1989 19:15:46 -0800 Subject: [PATCH] wrong order for POSIX_SOURCE; bug report 4.3BSD/sys/238 SCCS-vsn: sys/sys/errno.h 7.5 --- usr/src/sys/sys/errno.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/usr/src/sys/sys/errno.h b/usr/src/sys/sys/errno.h index ba5f847151..2cae184535 100644 --- a/usr/src/sys/sys/errno.h +++ b/usr/src/sys/sys/errno.h @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)errno.h 7.4 (Berkeley) %G% + * @(#)errno.h 7.5 (Berkeley) %G% */ #define EPERM 1 /* Operation not permitted */ @@ -59,12 +59,10 @@ #define ERANGE 34 /* Result too large */ /* non-blocking and interrupt i/o */ +#define EDEADLK 35 /* Resource deadlock avoided */ +#define EAGAIN EDEADLK /* Resource temporarily unavailable */ #ifndef _POSIX_SOURCE -#define EWOULDBLOCK 35 /* Operation would block */ -#endif -#define EDEADLK EWOULDBLOCK /* Resource deadlock avoided */ -#define EAGAIN EWOULDBLOCK /* Resource temporarily unavailable */ -#ifndef _POSIX_SOURCE +#define EWOULDBLOCK EDEADLK /* Operation would block */ #define EINPROGRESS 36 /* Operation now in progress */ #define EALREADY 37 /* Operation already in progress */ -- 2.20.1