From a13e3a7bf260f509c1ca2396ebe898e921287a05 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 16 Dec 2009 19:33:10 +0000 Subject: [PATCH] 2009-12-16 Jeff Johnston * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT, and ETOOMANYREFS into general list as they are referenced by OpenGroup and needed by RTEMS. --- newlib/ChangeLog | 6 ++++++ newlib/libc/include/sys/errno.h | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 08ab9480c..9b510294d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2009-12-16 Jeff Johnston + + * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT, + and ETOOMANYREFS into general list as they are referenced + by OpenGroup and needed by RTEMS. + 2009-12-16 Ralf Corsépius * libc/search/hcreate.c: Don't include (Unused). diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h index fc0c94aad..ac45fbc53 100644 --- a/newlib/libc/include/sys/errno.h +++ b/newlib/libc/include/sys/errno.h @@ -127,9 +127,7 @@ extern __IMPORT int sys_nerr; #define ENAMETOOLONG 91 /* File or path name too long */ #define ELOOP 92 /* Too many symbolic links */ #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -#ifdef __LINUX_ERRNO_EXTENSIONS__ #define EPFNOSUPPORT 96 /* Protocol family not supported */ -#endif #define ECONNRESET 104 /* Connection reset by peer */ #define ENOBUFS 105 /* No buffer space available */ #define EAFNOSUPPORT 106 /* Address family not supported by protocol family */ @@ -145,9 +143,7 @@ extern __IMPORT int sys_nerr; #define ENETUNREACH 114 /* Network is unreachable */ #define ENETDOWN 115 /* Network interface is not configured */ #define ETIMEDOUT 116 /* Connection timed out */ -#ifdef __LINUX_ERRNO_EXTENSIONS__ #define EHOSTDOWN 117 /* Host is down */ -#endif #define EHOSTUNREACH 118 /* Host is unreachable */ #define EINPROGRESS 119 /* Connection already in progress */ #define EALREADY 120 /* Socket already connected */ @@ -161,8 +157,8 @@ extern __IMPORT int sys_nerr; #define ENETRESET 126 #define EISCONN 127 /* Socket is already connected */ #define ENOTCONN 128 /* Socket is not connected */ -#ifdef __LINUX_ERRNO_EXTENSIONS__ #define ETOOMANYREFS 129 +#ifdef __LINUX_ERRNO_EXTENSIONS__ #define EPROCLIM 130 #define EUSERS 131 #endif