Problem with stat
Matthew Woehlke
mw_triad@users.sourceforge.net
Tue Jun 26 16:16:00 GMT 2007
David Kastrup wrote:
> Eric Blake <ebb9@i.dont.think.eric.likes.spam> writes:
PCYMTNQREAIYR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> "If the named file is a symbolic link, the stat() function shall
>> continue pathname resolution using the contents of the symbolic
>> link, and shall return information pertaining to the resulting file
>> if the file exists."
>
> This says nothing about what is returned if the file does not exist.
RETURN VALUE
Upon successful completion, 0 shall be returned. Otherwise, -1 shall
be returned and errno set to indicate the error.
ERRORS
The stat() function shall fail if:
...
[ENOENT]
A component of path does not name an existing file or path is an
empty string.
What part of the above don't you understand?
--
Matthew
"...anyway, that's my 0.02 toasters"
(with apologies to Niel)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list