[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] drop ##sys#file-info
From: |
John Cowan |
Subject: |
Re: [Chicken-hackers] [PATCH] drop ##sys#file-info |
Date: |
Mon, 3 Oct 2011 11:23:07 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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 address@hidden
of you half as well as you deserve. http://www.ccil.org/~cowan
--Bilbo