This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Adding ECANCELED to errno.h
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: Newlib List <newlib at sources dot redhat dot com>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Wed, 10 Jan 2007 06:22:32 +0100
- Subject: [patch] Adding ECANCELED to errno.h
Hi,
SUSv mandates errno.h to provide ECANCELED [1]
So far, newlib didn't provided it. Now, RTEMS is going to use it, which
is why I am proposing the patch below.
Ralf
[1] http://www.opengroup.org/onlinepubs/009695399/basedefs/errno.h.html
2007-01-10 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* libc/include/sys/errno.h: Add ECANCELED.
Index: libc/include/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.11
diff -u -r1.11 errno.h
--- libc/include/sys/errno.h 24 Sep 2002 14:10:12 -0000 1.11
+++ libc/include/sys/errno.h 10 Jan 2007 04:55:52 -0000
@@ -148,6 +148,7 @@
#define ECASECLASH 137 /* Filename exists with different case */
#define EILSEQ 138
#define EOVERFLOW 139 /* Value too large for defined data type */
+#define ECANCELED 140 /* Operation canceled. */
/* From cygwin32. */
#define EWOULDBLOCK EAGAIN /* Operation would block */