From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6fdd2cff904f7a990a9d30b28786019b@terzarima.net> From: Charles Forsyth To: 9fans@cse.psu.edu Subject: Re: [9fans] /sys/include/ape/errno.h In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ryucrrjcfjrowmzpitjvifbskn" Date: Tue, 6 Jan 2004 15:04:43 +0000 Topicbox-Message-UUID: b31e2a20-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-ryucrrjcfjrowmzpitjvifbskn Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit they certainly differ between Unix system variants they differ between xBSD and Linux. finding them on Linux is fun: errno.h -> bits/errno.h + ifdefs + defs -> linux/errno.h -> asm/errno.h [whew!] which i note in passing has #define EWOULDBLOCK EAGAIN amongst other values, i find for example on FreeBSD: #define ENETDOWN 50 /* Network is down */ #define ENETUNREACH 51 /* Network is unreachable */ #define ENETRESET 52 /* Network dropped connection on reset */ but on Linux: #define ENETDOWN 100 /* Network is down */ #define ENETUNREACH 101 /* Network is unreachable */ #define ENETRESET 102 /* Network dropped connection because of reset */ and on Irix5.3 and Solaris #define ENETDOWN 127 /* Network is down */ #define ENETUNREACH 128 /* Network is unreachable */ #define ENETRESET 129 /* Network dropped connection because so all in all it seems a relative waste of time and effort to make Plan 9's match one rather than the other. --upas-ryucrrjcfjrowmzpitjvifbskn Content-Type: message/rfc822 Content-Disposition: inline Return-path: <9fans-admin@cse.psu.edu> Received: from punt-3.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 1Adr2U-00011Y-Ao; Tue, 06 Jan 2004 13:15:14 +0000 Received: from [130.203.4.6] (helo=mail.cse.psu.edu) by punt-3.mail.demon.net with esmtp id 1Adr2U-00011Y-Ao for forsyth@caldo.demon.co.uk; Tue, 06 Jan 2004 13:14:30 +0000 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 5BBCA19D4C; Tue, 6 Jan 2004 08:14:29 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 1863119E1F; Tue, 6 Jan 2004 08:14:08 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 6337B19D4C; Tue, 6 Jan 2004 08:13:21 -0500 (EST) Received: from t40.swtch.com (node-40245942.bos.onnet.us.uu.net [64.36.89.66]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D8C6419C34 for <9fans@cse.psu.edu>; Tue, 6 Jan 2004 08:13:09 -0500 (EST) Received: from localhost ([127.0.0.1] helo=t40.swtch.com) by t40.swtch.com with esmtp (Exim 4.22) id 1AdrDL-000JNk-Ng for 9fans@cse.psu.edu; Tue, 06 Jan 2004 08:25:43 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] /sys/include/ape/errno.h In-Reply-To: Your message of "Tue, 06 Jan 2004 15:03:47 +0200." <20040106150347.P28128@cackle.proxima.alt.za> From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <74506.1073395542.1@t40.swtch.com> Message-Id: Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 06 Jan 2004 08:25:42 -0500 X-Spam-Status: No, hits=-1.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) > What would be safe here? Renumber all the error codes to match > NetBSD (I'm sure all *BSDs are identical, but I guess I ought to > check) and submit the changed header file to Bell Labs so that a > new copy of libap.a can be generated to match? down that path lies madness. use the names, that's what they're for. the numbers aren't supposed to matter! russ --upas-ryucrrjcfjrowmzpitjvifbskn--