From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 22 14:00:16 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC0C916A420 for ; Wed, 22 Feb 2006 14:00:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7839643D53 for ; Wed, 22 Feb 2006 14:00:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1ME0G5T009242 for ; Wed, 22 Feb 2006 14:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1ME0Ga1009241; Wed, 22 Feb 2006 14:00:16 GMT (envelope-from gnats) Resent-Date: Wed, 22 Feb 2006 14:00:16 GMT Resent-Message-Id: <200602221400.k1ME0Ga1009241@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Millan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 398AC16A420 for ; Wed, 22 Feb 2006 13:53:58 +0000 (GMT) (envelope-from rmh@io.debian.net) Received: from io.debian.net (io.ethz.ch [129.132.80.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D99FC43D46 for ; Wed, 22 Feb 2006 13:53:57 +0000 (GMT) (envelope-from rmh@io.debian.net) Received: from rmh by io.debian.net with local (Exim 4.60) (envelope-from ) id 1FBuRI-000HwG-02; Wed, 22 Feb 2006 14:53:56 +0100 Message-Id: Date: Wed, 22 Feb 2006 14:53:56 +0100 From: Robert Millan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Jordan Hubbard Subject: kern/93705: [patch] ENODATA and EGREGIOUS (for glibc compat) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Robert Millan List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 14:00:17 -0000 >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: