Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat (II)

FSTAT(II)  −  PWB/UNIX 8/5/73

NAME

fstat  −  get status of open file

SYNOPSIS

(fstat = 28.) 
(file descriptor in r0)
sys fstat; buf fstat(fildes, buf)
struct inode *buf;

DESCRIPTION

This call is identical to 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. 

SEE ALSO

stat (II)

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. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026