This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FreeBSD port (11): a new errno


The FreeBSD kernel knows about one more errno value: ECANCELED. In the
FreeBSD 4.0 kernel, it is only used for the incomplete aio implementation
in the kernel (hidden by glibc's aio), but since I don't know what else this
errno value will be used for in future kernel versions, I think it's safest
to just add it to the errlist.


2002-07-06  Bruno Haible  <bruno@clisp.org>

	* sysdeps/gnu/errlist.c (SYS_ERRLIST): Add ECANCELED if defined.
	* manual/errno.texi: Document ECANCELED.

diff -r -c3 glibc-20020627.bak/sysdeps/gnu/errlist.c glibc-20020627/sysdeps/gnu/errlist.c
--- glibc-20020627.bak/sysdeps/gnu/errlist.c	Thu Apr  4 20:11:48 2002
+++ glibc-20020627/sysdeps/gnu/errlist.c	Fri Jul  5 01:17:07 2002
@@ -566,6 +566,12 @@
 TRANS ??? */
     [ERR_REMAP (ENEEDAUTH)] = N_("Need authenticator"),
 #endif
+#ifdef ECANCELED
+/*
+TRANS The asynchronous I/O operation has been cancelled through a call to
+TRANS @code{aio_cancel ()}. */
+    [ERR_REMAP (ECANCELED)] = N_("Operation canceled"),
+#endif
 #ifdef ENOSYS
 /*
 TRANS Function not implemented.  This indicates that the function called is
diff -r -c3 glibc-20020627.bak/manual/errno.texi glibc-20020627/manual/errno.texi
--- glibc-20020627.bak/manual/errno.texi	Tue Aug 21 18:49:15 2001
+++ glibc-20020627/manual/errno.texi	Fri Jul  5 01:17:06 2002
@@ -828,6 +828,14 @@
 @end deftypevr
 
 @comment errno.h
+@comment FreeBSD: Operation canceled
+@deftypevr Macro int ECANCELED
+@comment errno 85 @c DO NOT REMOVE
+The asynchronous I/O operation has been cancelled through a call to
+@code{aio_cancel ()}.
+@end deftypevr
+
+@comment errno.h
 @comment POSIX.1: Function not implemented
 @deftypevr Macro int ENOSYS
 @comment errno 78 @c DO NOT REMOVE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]