[syslinux] [PATCH 4/5] COM32: add trivial stat() function
Jeffrey Hutzelman
jhutz at cmu.edu
Thu Mar 5 11:10:26 PST 2009
--On Wednesday, March 04, 2009 09:23:35 PM -0500 Gene Cumm
<gene.cumm at gmail.com> wrote:
> 2-- I set errno to zero as it may contain an error I want to ignore
> but you do have a good point. opendir() will set errno as it needs.
I'm not sure what you did with your opendir interface, but traditionally,
UNIX system call interfaces do not set errno to 0 on success. The only way
to determine whether a call succeeded it to look at its return value; errno
is only set to provide additional information if the call failed.
-- Jeff
More information about the Syslinux
mailing list