From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <078bf5b96dbd23d46139b5fb8d927e8f@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] /sys/include/ape/errno.h From: Charles Forsyth In-Reply-To: <20040106122410.J28128@cackle.proxima.alt.za> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-dhvekmdofvmgbvpxuhsqlxptsl" Date: Tue, 6 Jan 2004 10:29:18 +0000 Topicbox-Message-UUID: b2a1435c-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-dhvekmdofvmgbvpxuhsqlxptsl Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit the error numbers can never be relied upon; that's why they've got symbolic names (except in NFS where a subset is assigned specific numbers corresponding to the Sun errno assignment of the time, that often differ from those on the communicating systems, requiring errno swizzling) --upas-dhvekmdofvmgbvpxuhsqlxptsl 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 1AdoOz-0007B0-9R; Tue, 06 Jan 2004 10:25:34 +0000 Received: from [130.203.4.6] (helo=mail.cse.psu.edu) by punt-3.mail.demon.net with esmtp id 1AdoOz-0007B0-9R for forsyth@caldo.demon.co.uk; Tue, 06 Jan 2004 10:25:34 +0000 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id D303119D9D; Tue, 6 Jan 2004 05:25:23 -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 5F2AE19D9A; Tue, 6 Jan 2004 05:25:09 -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 06C9519D8E; Tue, 6 Jan 2004 05:24:56 -0500 (EST) Received: from cackle.proxima.alt.za (cackle.proxima.alt.za [196.30.44.141]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 20D3719D88 for <9fans@cse.psu.edu>; Tue, 6 Jan 2004 05:24:39 -0500 (EST) Received: from cackle.proxima.alt.za (localhost [127.0.0.1]) by cackle.proxima.alt.za (8.12.8/8.12.3) with ESMTP id i06AOJER004439 for <9fans@cse.psu.edu>; Tue, 6 Jan 2004 12:24:26 +0200 (SAST) Received: (from lucio@localhost) by cackle.proxima.alt.za (8.12.8/8.12.3/Submit) id i06AODKK004436 for 9fans@cse.psu.edu; Tue, 6 Jan 2004 12:24:13 +0200 (SAST) From: Lucio De Re To: 9fans mailing list <9fans@cse.psu.edu> Message-ID: <20040106122410.J28128@cackle.proxima.alt.za> Mail-Followup-To: 9fans mailing list <9fans@cse.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us Organization: Proxima Research & Development Subject: [9fans] /sys/include/ape/errno.h 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 X-Reply-To: lucio@proxima.alt.za List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 6 Jan 2004 12:24:11 +0200 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) I note that the choice of error numbers, specially those under the heading /* bsd networking software */ is not consistent with BSD. I also miss EWOULDBLOCK and ECONNRESET, although I confess I did not search very far for them, so if they are to be found elsewhere, please point them out to me. What I want to know is whether the choice of errnos has a deeper meaning, or whether I could just replace the values with those from a recent (NetBSD 1.6.1, in my case) *BSD distribution. I imagine I'd have to recompile all the libraries for consistency, at least libap.a? ++L --upas-dhvekmdofvmgbvpxuhsqlxptsl--