From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8f6657583122def2e626fafc1f27a07b@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] /sys/include/ape/errno.h In-Reply-To: <20040106122410.J28128@cackle.proxima.alt.za> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-aaqoqdtlcwoxsgdmkmwpuvaeqw" Date: Tue, 6 Jan 2004 07:42:35 -0500 Topicbox-Message-UUID: b2df89d2-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-aaqoqdtlcwoxsgdmkmwpuvaeqw Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit EWOULDBLOCK would be moderately hard to do since you need that info from the kernel and it doesn't give it to you. The best you could do is chedk q lengths with a stat and maybe approximate it. ECONNRESET you probably could do by looking at the err file in the connection directory. --upas-aaqoqdtlcwoxsgdmkmwpuvaeqw Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Jan 6 05:25:33 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Jan 6 05:25:31 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id DF62319D88; Tue, 6 Jan 2004 05:25:21 -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 5ACC219D91; Tue, 6 Jan 2004 05:25:07 -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-aaqoqdtlcwoxsgdmkmwpuvaeqw--