4.3BSD-UWisc/man/cat3/stat.3f




STAT(3F)            UNIX Programmer's Manual             STAT(3F)



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.
     _S_t_a_t and _l_s_t_a_t return information about file _n_a_m_e; _f_s_t_a_t
     returns information about the file associated with fortran
     logical unit _l_u_n_i_t. The order and meaning of the information
     returned in array _s_t_a_t_b is as described for the structure
     _s_t_a_t under _s_t_a_t(2).  The ``spare'' values are not included.

     The value of either function will be zero if successful; an
     error code otherwise.

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
     <_s_y_s/_p_a_r_a_m._h>.




















Printed 12/27/86          May 15, 1985                          1