Research V4 development
[unix-history] / man / man2 / fstat.2
CommitLineData
88d0a458
KT
1.th FSTAT II 8/5/73
2.sh NAME
3fstat \*- get status of open file
4.s3
5.sh SYNOPSIS
6(fstat = 28.)
7.br
8(file descriptor in r0)
9.ft B
10.br
11sys fstat; buf
12.s3
13fstat(fildes, buf)
14.br
15struct inode buf;
16.ft R
17.sh DESCRIPTION
18This
19call is identical to
20.it stat,
21except that it operates
22on open files instead of files given by name.
23It is most often used to get the status
24of the standard input and output files, whose names
25are unknown.
26.sh "SEE ALSO"
27stat(II)
28.sh DIAGNOSTICS
29The error bit
30(c-bit) is set if the file descriptor is unknown;
31from C, a \*-1 return indicates an error, 0 indicates success.