Re: aio_error query
From: Michael Kerrisk <hidden>
Date: 2012-02-19 02:40:59
Hi Jon On Sun, Feb 19, 2012 at 9:37 AM, Jon Grant [off-list ref] wrote:
Hi Michael Michael Kerrisk wrote, On 18/02/12 18:18: [...]quoted
quoted
http://pubs.opengroup.org/onlinepubs/009604599/functions/xsh_chap02_03.html http://www.cl.cam.ac.uk/cgi-bin/manpage?3+errnoquoted
quoted
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.What is the system?http://www.mpcdata.com/mediasdk/
Is this actually a UNIX system?
[..]quoted
What you say is now clearer to me, and sounds reasonable. Still, I'm curious about this other system you are using; I think on every system I encountered, error numbers are positive.Perhaps errno macros as positive numbers are a de facto convention.
It appears to be so, but AFAICS you're correct about POSIX not mandating it. I'll check into this some more. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- 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