This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Committed: update libc/machine/cris/sys/errno.h
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: newlib at sourceware dot org
- Date: Fri, 24 Aug 2007 01:49:04 +0200
- Subject: Committed: update libc/machine/cris/sys/errno.h
A recent changes libstdc++-v32 started using ECANCELED and
ENOTSUP, both which are defined in
newlib/libc/include/sys/errno.h and POSIX-mandated at that, so
the newlib-based cris-axis-elf broke. The reason for not using
libc/include/sys/errno.h for the CRIS newlib port is to keep ABI
compatibility with the kernel. (Yep, syscalls too: I can use a
binary intended for the simulator as a statically linked program
on hardware.) I had a look at the include files in a nearby
Linux 2.6.20 tree and added some "new" errnos.
2007-08-24 Hans-Peter Nilsson <hp@axis.com>
* libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
(EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
Define.
Index: libc/machine/cris/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/cris/sys/errno.h,v
retrieving revision 1.1
diff -u -p -r1.1 errno.h
--- libc/machine/cris/sys/errno.h 27 Jan 2005 23:54:46 -0000 1.1
+++ libc/machine/cris/sys/errno.h 23 Aug 2007 22:22:52 -0000
@@ -157,6 +157,17 @@ extern int _sys_nerr;
#define ENOMEDIUM 123 /* No medium found */
#define EMEDIUMTYPE 124 /* Wrong medium type */
+#define ECANCELED 125 /* Operation Canceled */
+#define ENOKEY 126 /* Required key not available */
+#define EKEYEXPIRED 127 /* Key has expired */
+#define EKEYREVOKED 128 /* Key has been revoked */
+#define EKEYREJECTED 129 /* Key was rejected by service */
+
+#define EOWNERDEAD 130 /* Owner died */
+#define ENOTRECOVERABLE 131 /* State not recoverable */
+
+/* Widely known to be a synonym in Linux. */
+#define ENOTSUP EOPNOTSUPP
#define __ELASTERROR 2000 /* Users can add values starting here */
brgds, H-P