Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

access(3F)

perror(3F)

time(3F)

STAT(3F)  —  FORTRAN LIBRARY ROUTINES

NAME

stat, lstat, fstat − get file status

SYNOPSIS

integer function stat (name, statb)
character∗(∗) name
integer statb(12) integer function lstat (name, statb)
character∗(∗) name
integer statb(12) integer function fstat (lunit, statb)
integer statb(12)

DESCRIPTION

These routines return detailed information about a file.  stat and lstat return information about file name; fstat returns information about the file associated with FORTRAN logical unit lunit. 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(1) device inode resides on
statb(2) this inode’s number
statb(3) protection
statb(4) number of hard links to the file
statb(5) user-id of owner
statb(6) group-id of owner
statb(7) the device type, for inode that is device
statb(8) total size of file
statb(9) file last access time
statb(10) file last modify time
statb(11) file last status change time
statb(12) optimal blocksize for file system i/o ops
statb(13) actual number of blocks allocated

FILES

/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 <sys/param.h>. 

Sun Release 3.2  —  Last change: 17 July 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026