From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: Error reporting (Was: [9fans] GNU Make) Date: Thu, 3 Jun 2004 20:35:38 +0100 From: rog@vitanuova.com In-Reply-To: <000c01c4499e$39145230$637f7d50@SOMA> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 946d2e5e-eacd-11e9-9e20-41e7f4b1d025 > > as far as i remember, most error codes in unix were > > either EINVAL or EIO... > > bzzzzt! no well, i might have exaggerated a little, but a quick poke around the bsd man pages gives me the following percentages (of all error codes mentioned, 1129 total): 13.55 EINVAL 10.36 EFAULT 7.09 EIO 6.82 EACCES 6.64 EPERM 5.49 EBADF 4.87 ENOENT 4.51 ENOTDIR 4.25 ELOOP 4.25 ENAMETOOLONG 3.37 EROFS 2.39 EAGAIN [...] so EINVAL and EIO are definitely up there. EFAULT pretty much always means the same thing, so it doesn't count.