updates
[unix-history] / usr / src / share / man / man3f / stat.3
CommitLineData
7df84d9c
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
0befbd9b 5.\" @(#)stat.3 6.1 (Berkeley) %G%
7df84d9c 6.\"
0befbd9b 7.TH STAT 3F ""
7df84d9c
KM
8.UC 5
9.SH NAME
10stat, lstat, fstat \- get file status
11.SH SYNOPSIS
12.B integer function stat (name, statb)
13.br
14.B character*(*) name
15.br
16.B integer statb(12)
17.sp 1
18.B integer function lstat (name, statb)
19.br
20.B character*(*) name
21.br
22.B integer statb(12)
23.sp 1
24.B integer function fstat (lunit, statb)
25.br
26.B integer statb(12)
27.SH DESCRIPTION
28These routines return detailed information about a file.
29.I Stat
30and
31.I lstat
32return information about file
33.IR name ;
34.I fstat
35returns information about the file associated with fortran logical unit
36.I lunit.
37The order and meaning of the information returned in array
38.I statb
39is as described for the structure
40.I stat
41under
42.IR stat (2).
43The ``spare'' values are not included.
44.PP
45The value of either function will be zero if successful;
46an error code otherwise.
47.SH FILES
48.ie \nM /usr/ucb/lib/libU77.a
49.el /usr/lib/libU77.a
50.SH "SEE ALSO"
51stat(2), access(3F), perror(3F), time(3F)
52.SH BUGS
53Pathnames can be no longer than MAXPATHLEN as defined in
54.RI < sys/param.h >.