File:  [Research Unix] / researchv10dc / dist / man / v4 / man2 / fstat.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.th FSTAT II 8/5/73
.sh NAME
fstat  \*-  get status of open file
.s3
.sh SYNOPSIS
(fstat = 28.)
.br
(file descriptor in r0)
.ft B
.br
sys fstat; buf
.s3
fstat(fildes, buf)
.br
struct inode buf;
.ft R
.sh DESCRIPTION
This
call is identical to
.it stat,
except that it operates
on open files instead of files given by name.
It is most often used to get the status
of the standard input and output files, whose names
are unknown.
.sh "SEE ALSO"
stat(II)
.sh DIAGNOSTICS
The error bit
(c-bit) is set if the file descriptor is unknown;
from C, a \*-1 return indicates an error, 0 indicates success.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.