aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-12-16 19:33:10 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-12-16 19:33:10 +0000
commita13e3a7bf260f509c1ca2396ebe898e921287a05 (patch)
treef28ed49c91985ed74948098b65394b46c3b412a4
parent39e5af4aed76cc9690558b5136edd09c77f71d1f (diff)
downloadnewlib-a13e3a7bf260f509c1ca2396ebe898e921287a05.zip
newlib-a13e3a7bf260f509c1ca2396ebe898e921287a05.tar.gz
newlib-a13e3a7bf260f509c1ca2396ebe898e921287a05.tar.bz2
2009-12-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT, and ETOOMANYREFS into general list as they are referenced by OpenGroup and needed by RTEMS.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/include/sys/errno.h6
2 files changed, 7 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 08ab948..9b51029 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-16 Jeff Johnston <jjohnstn@redhat.com>
+
+ * 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 <ralf.corsepius@rtems.org>
* libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index fc0c94a..ac45fbc 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