X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthew Woehlke <mw_triad@users.sourceforge.net>
Subject:  Re: Problem with stat
Date:  Tue, 26 Jun 2007 11:14:45 -0500
Lines: 29
Message-ID: <f5re1l$f40$1@sea.gmane.org>
References:  <46808EA8.2030202@pacific.net.sg> <4680DD73.8090300@sh.cvut.cz> <4680E3A0.3020508@pacific.net.sg> <4680FE40.7010102@byu.net> <46810D24.9000303@pacific.net.sg> <46810FAA.5050508@byu.net> <86zm2mdfox.fsf@lola.quinscape.zz> <468112F2.10802@byu.net> <86vedade9q.fsf@lola.quinscape.zz> <loom.20070626T160440-648@post.gmane.org> <86ps3irapu.fsf@lola.quinscape.zz>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.4.0
In-Reply-To: <86ps3irapu.fsf@lola.quinscape.zz>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

