delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/26/12:16:28

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT 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 DOT 2030202 AT pacific DOT net DOT sg> <4680DD73 DOT 8090300 AT sh DOT cvut DOT cz> <4680E3A0 DOT 3020508 AT pacific DOT net DOT sg> <4680FE40 DOT 7010102 AT byu DOT net> <46810D24 DOT 9000303 AT pacific DOT net DOT sg> <46810FAA DOT 5050508 AT byu DOT net> <86zm2mdfox DOT fsf AT lola DOT quinscape DOT zz> <468112F2 DOT 10802 AT byu DOT net> <86vedade9q DOT fsf AT lola DOT quinscape DOT zz> <loom DOT 20070626T160440-648 AT post DOT gmane DOT org> <86ps3irapu DOT fsf AT lola DOT quinscape DOT zz>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

David Kastrup wrote:
> Eric Blake <ebb9 AT i DOT dont DOT think DOT eric DOT likes DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019