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

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



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 :-)

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