9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: C H Forsyth <forsyth@vitanuova.com>
To: 9fans@cse.psu.edu
Subject: Re: Error reporting (Was: [9fans] GNU Make)
Date: Thu,  3 Jun 2004 17:56:49 +0100	[thread overview]
Message-ID: <2131834db7e388c1421257a88de93231@vitanuova.com> (raw)
In-Reply-To: <67ce99a249859a0d4c3cd4502752ea7a@vitanuova.com>

>>EIO might be better for unknown error codes than ENOENT.

     [EIO]              An I/O error occurred while making the directory entry
                        or allocating the inode for O_CREAT.

not really, since EIO would tend to suggest suggest (almost certainly
to a unix man and perhaps even me as well if i were to read it)
an actual error on a device (eg, bad block on drive), not an inability
to open an underlying file, and any programs that checked for it
would probably place that interpretation on it too.
at least ENOENT is honest when a file somewhere can't be accessed.
you'd be better off with EGREG (``something has happened that our little APE
can't communicate''), except that's not portable.

at any rate, it should be easier to see now why trying hard to change
things to make APE happy is not likely to produce the hoped-for joy and contentment.

it's not that there aren't enough integers in the world, more that
only a tiny subset is available as E numbers.  even with the extended
non-portable set in real Unix kernels the
E choice is pathetic for the things drivers might like to say.
of course, that does indeed lead to much tugging on hair and chins,
whilst trying to work out why a particular call failed.


  reply	other threads:[~2004-06-03 16:56 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 11:09 [9fans] GNU Make lucio
2004-06-01 16:37 ` boyd, rounin
2004-06-01 21:03   ` ron minnich
2004-06-01 21:09     ` boyd, rounin
2004-06-01 21:43     ` Russ Cox
2004-06-01 21:49       ` ron minnich
2004-06-01 22:03         ` Russ Cox
2004-06-01 22:08           ` boyd, rounin
2004-06-02  5:34     ` lucio
2004-06-02  7:36       ` Charles Forsyth
2004-06-02  9:07         ` John Murdie
2004-06-02  9:39           ` Charles Forsyth
2004-06-02 16:12         ` ron minnich
2004-06-02 16:24           ` lucio
2004-06-02 16:54             ` ron minnich
2004-06-02 16:56               ` boyd, rounin
2004-06-03  6:41                 ` lucio
2004-06-03  8:49                   ` Charles Forsyth
2004-06-03  9:16                     ` boyd, rounin
2004-06-03  9:50                       ` Error reporting (Was: [9fans] GNU Make) lucio
2004-06-03 14:01                         ` rog
2004-06-03 13:54                           ` Charles Forsyth
2004-06-03 14:19                             ` rog
2004-06-03 14:18                               ` boyd, rounin
2004-06-03 14:31                                 ` lucio
2004-06-03 14:33                                 ` rog
2004-06-03 14:58                               ` Charles Forsyth
2004-06-03 15:13                                 ` lucio
2004-06-03 15:17                                 ` rog
2004-06-03 16:12                                   ` C H Forsyth
2004-06-03 16:18                                     ` rog
2004-06-03 16:18                                       ` Charles Forsyth
2004-06-03 16:38                                         ` rog
2004-06-03 16:56                                           ` C H Forsyth [this message]
2004-06-03 17:03                                             ` rog
2004-06-03 17:15                                               ` C H Forsyth
2004-06-03 17:25                                                 ` rog
2004-06-03 19:10                                               ` boyd, rounin
2004-06-03 19:08                                           ` boyd, rounin
2004-06-03 19:35                                             ` rog
2004-06-03 19:46                                               ` boyd, rounin
2004-06-03 20:06                                                 ` rog
2004-06-03 22:09                                                   ` Charles Forsyth
2004-06-04  1:05                                                     ` Bruce Ellis
2004-06-04  1:56                                                       ` Scott Schwartz
2004-06-04  2:10                                                         ` Bruce Ellis
2004-06-04  2:46                                                           ` Russ Cox
2004-06-04  8:08                                                           ` Charles Forsyth
     [not found]                                                       ` <013301c449d2$95929d30$637f7d50@SOMA>
2004-06-04 12:16                                                         ` Bruce Ellis
2004-06-08 15:17                                                       ` rog
2004-06-03 14:06                           ` boyd, rounin
2004-06-03 14:21                             ` rog
2004-06-03 10:31                       ` [9fans] GNU Make lucio
2004-06-03 14:53                         ` Rob Pike
2004-06-03 15:01                           ` boyd, rounin
2004-06-03 15:04                           ` lucio
2004-06-03 15:16                             ` Rob Pike
2004-06-03 15:33                               ` rog
2004-06-03 15:40                                 ` boyd, rounin
2004-06-03 15:58                                   ` lucio
2004-06-03 15:40                               ` lucio
2004-06-03 15:20                             ` [9fans] internationalised error messages boyd, rounin
2004-06-02 21:30         ` [9fans] GNU Make boyd, rounin
2004-06-02  8:54       ` Richard Miller
2004-06-02  9:17         ` lucio
2004-06-02  9:54           ` Charles Forsyth
2004-06-02 16:15           ` ron minnich
2004-06-02 17:00           ` Steve Simon
2004-06-03  5:14             ` lucio
2004-06-02 14:00       ` ron minnich
2004-06-02 14:36         ` C H Forsyth
2004-06-02 14:33           ` Charles Forsyth
2004-06-02 15:24         ` Charles Forsyth
2004-06-02 15:56           ` lucio
2004-06-02 16:11           ` lucio
2004-06-02 19:28             ` Joel Salomon
2004-06-03  4:43               ` [9fans] troff and 4.4BSD man pages Lyndon Nerenberg
2004-06-03  5:54                 ` Taj Khattra
2004-06-03  8:26                 ` boyd, rounin
2004-06-07  8:55                   ` Douglas A. Gwyn
2004-06-07 13:19                     ` Jon Snader
     [not found]                       ` <z4udnTOQMJVTdlndRVn-jg@comcast.com>
2004-06-10 10:58                         ` Aharon Robbins
2004-06-10 12:40                           ` rog
2004-06-10 13:24                             ` Douglas A. Gwyn
2004-06-03 10:13                 ` Bruce Ellis
2004-06-03 10:17                   ` boyd, rounin
2004-06-03 10:27                     ` lucio
2004-06-03 10:29                     ` Bruce Ellis
2004-06-03 10:26                       ` boyd, rounin
2004-06-03 11:18                         ` Bruce Ellis
2004-06-03  1:57             ` [9fans] GNU Make a
2004-06-03  3:31               ` Kenji Okamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2131834db7e388c1421257a88de93231@vitanuova.com \
    --to=forsyth@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).