From 20cecc6837af28f524885bc784f22cb9259c981c Mon Sep 17 00:00:00 2001 From: Marc Teitelbaum Date: Tue, 2 May 1989 06:20:04 -0800 Subject: [PATCH] change value of EAGAIN to that of EWOULDBLOCK for POSIX. (yuck) SCCS-vsn: sys/sys/errno.h 7.2 --- usr/src/sys/sys/errno.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/src/sys/sys/errno.h b/usr/src/sys/sys/errno.h index 0f3d57acd8..c9766fc624 100644 --- a/usr/src/sys/sys/errno.h +++ b/usr/src/sys/sys/errno.h @@ -3,7 +3,7 @@ * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * - * @(#)errno.h 7.1 (Berkeley) %G% + * @(#)errno.h 7.2 (Berkeley) %G% */ /* @@ -20,7 +20,7 @@ #define ENOEXEC 8 /* Exec format error */ #define EBADF 9 /* Bad file number */ #define ECHILD 10 /* No children */ -#define EAGAIN 11 /* No more processes */ + /* 11 - was EAGAIN */ #define ENOMEM 12 /* Not enough core */ #define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ @@ -50,6 +50,7 @@ /* non-blocking and interrupt i/o */ #define EWOULDBLOCK 35 /* Operation would block */ #define EDEADLK EWOULDBLOCK /* ditto */ +#define EAGAIN EWOULDBLOCK /* or No Resources (fork failed) */ #define EINPROGRESS 36 /* Operation now in progress */ #define EALREADY 37 /* Operation already in progress */ -- 2.20.1