|
|
1.1 root 1: .th FSTAT II 8/5/73
2: .sh NAME
3: fstat \*- 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
11: sys fstat; buf
12: .s3
13: fstat(fildes, buf)
14: .br
15: struct inode buf;
16: .ft R
17: .sh DESCRIPTION
18: This
19: call is identical to
20: .it stat,
21: except that it operates
22: on open files instead of files given by name.
23: It is most often used to get the status
24: of the standard input and output files, whose names
25: are unknown.
26: .sh "SEE ALSO"
27: stat(II)
28: .sh DIAGNOSTICS
29: The error bit
30: (c-bit) is set if the file descriptor is unknown;
31: from C, a \*-1 return indicates an error, 0 indicates success.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.