Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 14:53:56 +0100
From:      Robert Millan <rmh@aybabtu.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Jordan Hubbard <jkh@apple.com>
Subject:   kern/93705: [patch] ENODATA and EGREGIOUS (for glibc compat)
Message-ID:  <E1FBuRI-000HwG-02@io.debian.net>
Resent-Message-ID: <200602221400.k1ME0Ga1009241@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FBuRI-000HwG-02>