.th close IV 4/21/86
.sh NAME
close  -  close a file
.sh SYNOPSIS
close(fildes)
.s3
int fildes;
.s3
.ft R
.sh DESCRIPTION
Given a file descriptor such as returned from an open, creat, or pipe
call, close closes the associated file.  A close of all files is
automatic on exit, but since processes are limited to 15 simultaneously
open files, close is necessary for programs which deal with many files.
.sh "SEE ALSO"
creat (IV), open (IV), pipe (IV)
.sh DIAGNOSTICS
The error bit (c-bit) is set for an unknown file descriptor.  From C, a
-1 indicates an error, 0 indicates success.

