Alan Post scripsit:

> errno is only set when a syscall returns -1/signals an error.  If
> you call stat and it succeeds, errno wasn't touched by stat, and
> has whatever value it did before stat was called.

More precisely, its value is undefined.  In any case, you're right
to say that checking errno is always the Wrong Thing after success.

-- 
I don't know half of you half as well           John Cowan
as I should like, and I like less than half     [email protected]
of you half as well as you deserve.             http://www.ccil.org/~cowan
        --Bilbo

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to