This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with stat


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]