Hi Jon On Sun, Feb 19, 2012 at 9:37 AM, Jon Grant <jg@xxxxxxxx> wrote: > Hi Michael > > Michael Kerrisk wrote, On 18/02/12 18:18: > [...] > >>> >>> 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. >> >> >> What is the system? > > > http://www.mpcdata.com/mediasdk/ Is this actually a UNIX system? > [..] > >> 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html