qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "François Revol" <revol@free.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6324] Return -errno on write failure (Gleb Natapov)
Date: Fri, 16 Jan 2009 19:36:25 +0100 CET	[thread overview]
Message-ID: <2431978291-BeMail@laptop> (raw)
In-Reply-To: <18800.50657.289614.458425@mariner.uk.xensource.com>

> François Revol writes ("Re: [Qemu-devel] [6324] Return -errno on
> write failure (Gleb Natapov)"):
> > Nooooooooooo
> > Please do not this bad broken Unix habit!
>
> Whatever you think of this, it's not a `Unix habit'.
> Both C89 and C99 require the system's errno values to be positive.
>    ... the value of which is set to a positive error number by
>        several library functions
>
> So BeOS is not ANSI C !

And so, well, what ?
It won't change any time soon.
Besides, there is no reason a language stantard should dictate such a
runtime thing...
And for what I've seen from it, it's not consistent with itself, saying
non-zero on a line, positive on the next one.

Btw, was it available freely at the time ? I mean don't expect people
to comply with something you have to pay for. That's what you get.
(hint, POSIX drafts)

It's not like any other OS I've seen doesn't violate some standard.

Still, everything has been fine for a decade and suddenly people start
doing this kind of tricks out of the blue. It's not like considering
errno can be !=0 is orthogonal to the standard, so supporting BeOS
itself would't make the code itself violate ANSI C.

François.

  reply	other threads:[~2009-01-16 18:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 20:44 [Qemu-devel] [6324] Return -errno on write failure (Gleb Natapov) Anthony Liguori
2009-01-15 21:20 ` François Revol
2009-01-15 22:15   ` M. Warner Losh
2009-01-15 22:33     ` François Revol
2009-01-16  7:31   ` Gleb Natapov
2009-01-16 17:37   ` Ian Jackson
2009-01-16 18:36     ` François Revol [this message]
2009-01-16 18:49       ` Anthony Liguori
2009-01-16 19:17         ` François Revol
2009-01-16 19:31           ` Anthony Liguori
2009-01-16 19:41             ` François Revol
2009-01-19 11:37       ` Ian Jackson
2009-01-19 18:52         ` François Revol
2009-01-19 19:47           ` Lennart Sorensen
2009-01-19 20:31             ` François Revol
2009-01-19 20:03           ` M. Warner Losh

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=2431978291-BeMail@laptop \
    --to=revol@free.fr \
    --cc=qemu-devel@nongnu.org \
    /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).