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: Thu, 15 Jan 2009 23:33:57 +0100 CET [thread overview]
Message-ID: <7262523430-BeMail@laptop> (raw)
In-Reply-To: <20090115.151537.-887879155.imp@bsdimp.com>
> In message: <2858981241-BeMail@laptop>
> "François Revol" <revol@free.fr> writes:
> : > Revision: 6324
> : > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6324
> > : > > Author: aliguori
> : > Date: 2009-01-15 20:44:26 +0000 (Thu, 15 Jan 2009)
> : >
> : > Log Message:
> : > -----------
> : > Return -errno on write failure (Gleb Natapov)
> :
> : Nooooooooooo
> : Please do not this bad broken Unix habit!
>
> s/Unix/Linux/
I didn't want to sound inquisitory, but indeed most uses I've seen come
from Linux code or linux devs, though OSSv4 had it quite everywhere.
It's actually fairly common inside Unix kernels themselves.
There it's absolutely no problem since it's by definition code that
only targets a single OS. But I've seen more and more userland (and
portable kernel) code using this bad trick without consideration for
other platforms.
The fact that it's "standardized" doesn't make it better for real world
implementations that do depart from the standard.
And Opengroup screwing up didn't help:
http://www.opengroup.org/onlinepubs/000095399/basedefs/errno.h.html#tag_13_10_10
I'll try to make a patch to correct this.
François.
next prev parent reply other threads:[~2009-01-15 22:33 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 [this message]
2009-01-16 7:31 ` Gleb Natapov
2009-01-16 17:37 ` Ian Jackson
2009-01-16 18:36 ` François Revol
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=7262523430-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).