kern/93705: [patch] ENODATA and EGREGIOUS (for glibc compat)
Robert Millan
rmh at aybabtu.com
Wed Feb 22 06:00:17 PST 2006
>Number: 93705
>Category: kern
>Synopsis: [patch] ENODATA and EGREGIOUS (for glibc compat)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 22 14:00:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release:
>Organization:
>Environment:
System: GNU/kFreeBSD io.debian.net 5.4-1-586 #0 Mon Dec 5 19:45:10 CET 2005 i586 i386 AMD-K6(tm) 3D processor GNU/kFreeBSD
Architecture: i586
>Description:
Please could you add ENODATA and EGREGIOUS errno codes for compatibility with
Glibc systems?
They have the same meaning as ENOATTR and EDOOFUS, respectively.
As a side benefit, in the case of EDOOFUS this might be of interest to the Apple
developers who complained about this macro name (i.e. they could use EGREGIOUS in
Darwin exclussively if they want).
>How-To-Repeat:
>Fix:
Index: sys/sys/errno.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/errno.h,v
retrieving revision 1.28
diff -u -r1.28 errno.h
--- sys/sys/errno.h 2 Apr 2005 12:33:28 -0000 1.28
+++ sys/sys/errno.h 22 Feb 2006 13:51:20 -0000
@@ -164,8 +164,10 @@
#define ECANCELED 85 /* Operation canceled */
#define EILSEQ 86 /* Illegal byte sequence */
#define ENOATTR 87 /* Attribute not found */
+#define ENODATA ENOATTR /* Glibc compat */
#define EDOOFUS 88 /* Programming error */
+#define EGREGIOUS EDOOFUS /* Glibc compat */
#endif /* _POSIX_SOURCE */
#define EBADMSG 89 /* Bad message */
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list