From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: C H Forsyth Date: Wed, 2 Jun 2004 15:36:23 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] GNU Make In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 904a557c-eacd-11e9-9e20-41e7f4b1d025 >>I still find that doing strcmp() on a set of error strings to produce >>errno is both gross and non-portable due to subtle variations in error >>strings between different Unixes. i thought ape was doing strcmp on a set of Plan 9 error strings to produce unix errno. the errno values aren't portable either. i suppose you could use ENAME but you'd still need a table, and the set of names is still open-ended. with errno, you can't just index into a table to remap things because even the range isn't predictable. i've seen variations even within one manufacturer. i think it might, however, be useful to have more predictable strings (is it `directory entry not found' or `file not found')