STAT(3F) FORTRAN LIBRARY ROUTit,..'ES STAT(3F) 0 NAME stat, !stat, fstat - get file status SYNOPSIS Integer function stat (name, 1tatb) character•(•) name Integer statb(12) integer function )stat (name, statb) character•(•) name Integer statb(12) Integer function fstat (lunlt, atatb) Integer statb(12) DESCRIPTION These routines return detailed information about a file. Stat and /stat return information about file name; /stat returns information about the file associated with fortran logical unit /unit. The meaning of the information returned in array statb is as described for the structure stat under stat(2). 'Spare' values are not included, the order is shown below.
The value of either function will be zero if successful; an error code otherwise. statb(l) statb(2) statb(3) statb(4) statb(5) statb(6) statb(7) statb(8) statb(9) statb(IO) statb(ll) statb(I2) statb(13) device inode resides on this inode's number protection number of hard links to the file user-id of owner group-id of owner the device type, for inode that is device total size of file file last access time file last modify time file last status change time optimal blocksize for file system i/o ops actual number of blocks allocated 0 Fll,ES /usr /lib/libU77.a SEE ALSO stat(2), access(3F), perror(3F), time(3F) BUGS Pathnames can be no longer than MAXPATHLEN as defined in .
0 Sun Release 1.4 Last change: 9 January 1984 35a