[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How does stat() stat(2)? (was: Read entire file?)



At 20:43 +0100 2000.12.27, Terje Bless wrote:
>John Delacour wrote:
>
>>         stat
>>
>> Returns a 13-element array giving the status info for a file, either the
>> file opened via FILEHANDLE, or named by EXPR.  If EXPR is omitted, it stats
>> $_.  Returns a null list if the stat fails.
>
>That reminds me; on UN*X (or POSIX, possibly) the -x tests are wrappers for
>stat(2). How is this implemented on Mac OS? Does Mac OS have a directly
>equivalent library function (FSBStat, or something) or is -x implemented
>differently on Mac OS? I guess stat(2) is POSIX enough that "#include
>posix.h" should give it to you on Mac OS too, but is that how it's done?
>Would that even be meaningfull on Mac OS? How about fstat(2), lstat(2),
>statfs(2), and fstatfs(2)?
>
>
>No particular reason; just curious. -link :-)

>From perlport.pod:

>-r, -w, and -x have a limited meaning only; directories and applications
>are executable, and there are no uid/gid considerations.  -o is not
>supported.  (Mac OS)

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org