9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans mailing list <9fans@cse.psu.edu>
Subject: [9fans] panic(?) and error(?)
Date: Sun, 25 Aug 2002 16:22:30 +0200	[thread overview]
Message-ID: <20020825162229.A29921@cackle.proxima.alt.za> (raw)

I'd like some descriptions for functions error() and panic() as used
in /sys/src/cmd/9660srv/main.c and /sys/src/cmd/upas/fs/fs.c
respectively - and elsewhere, no doubt.

The arguments are different and I'm having difficulty understanding
whether they are functionally similar but retained for historical
reasons (what would be the "modern" equivalent?) or whether in fact
the choice depends on the context.

I note that 9660srv closes fds 0 and 1 and reopens them in the most
harmless manner (/dev/null), which upas/fs does not do and I wonder
if these are influencing the choice of error reporting.

Of course, I do have the source to consult, but little guidance on
where to look, even.

++L


             reply	other threads:[~2002-08-25 14:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-25 14:22 Lucio De Re [this message]
2002-08-25 14:43 presotto
2002-08-25 15:14 ` Lucio De Re
2002-08-25 15:27 ` Lucio De Re
2002-08-25 15:31 presotto
2002-08-25 15:47 ` Lucio De Re

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=20020825162229.A29921@cackle.proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).