From: Jon Grant <jg-hus3n9K41k0@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: aio_error query
Date: Sat, 18 Feb 2012 13:06:47 +0000 [thread overview]
Message-ID: <4F3FA267.4000208@jguk.org> (raw)
In-Reply-To: <CAKgNAkgjOss__FerDwEqMW2MY2Bs0pwyVuNURuvoKAw7si4u_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Michael
Michael Kerrisk wrote, On 07/02/12 18:25:
> Hi Jon,
>
> On Sun, Jan 22, 2012 at 10:48 AM, Jon Grant<jg-hus3n9K41k0@public.gmane.org> wrote:
>> Hello
>>
>> http://www.kernel.org/doc/man-pages/online/pages/man3/aio_error.3.html
>>
>> Is this really positive?
>
> Do you have some counter-evidence?
aio_return returns an int. POSIX and ISO C specifies errno as an int.
Neither say that it is a positive number.
http://pubs.opengroup.org/onlinepubs/009604599/functions/xsh_chap02_03.html
http://www.cl.cam.ac.uk/cgi-bin/manpage?3+errno
>> errno is an int, and the values I think are not
>> guaranteed to be positive (like with glibc). I work on a system where they
>> are all negative.
>
> Error numbers are all positive. I don't understand your last sentence above.
This may be the case in glibc/linux, but in my experience it is not a
standard. "errno" is an int:
http://pubs.opengroup.org/onlinepubs/009604599/functions/xsh_chap02_03.html
I work on systems where the EFAULT, EINVAL etc are negative values. So
it depends if the man page documents linux/glibc specific
implementation, or the standards.
Do correct me if I have missed something.
Best regards, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-02-18 13:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-21 21:48 aio_error query Jon Grant
[not found] ` <4F1B32A4.1010809-hus3n9K41k0@public.gmane.org>
2012-02-07 18:25 ` Michael Kerrisk
[not found] ` <CAKgNAkgjOss__FerDwEqMW2MY2Bs0pwyVuNURuvoKAw7si4u_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-18 13:06 ` Jon Grant [this message]
[not found] ` <4F3FA267.4000208-hus3n9K41k0@public.gmane.org>
2012-02-18 18:18 ` Michael Kerrisk
[not found] ` <CAKgNAkg2KYca3mA-Nd6_uRDDQpZmb+SFmLbZOFug9jVvHnB8NA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-18 20:37 ` Jon Grant
[not found] ` <4F400BFB.5050409-hus3n9K41k0@public.gmane.org>
2012-02-19 2:40 ` Michael Kerrisk
[not found] ` <CAKgNAkg9ELf7WHxsB=PuGTj2KifW2pZqT6i5VBAfRX_ajqvcEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-19 11:15 ` Jon Grant
[not found] ` <4F40D9DB.2070203-hus3n9K41k0@public.gmane.org>
2012-02-20 1:32 ` Michael Kerrisk
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=4F3FA267.4000208@jguk.org \
--to=jg-hus3n9k41k0@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.