File:  [Research Unix] / researchv10dc / dist / man / v4 / man2 / close.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 CLOSE II 8/5/73
.sh NAME
close  \*-  close a file
.sh SYNOPSIS
(close = 6.)
.br
(file descriptor in r0)
.br
.ft B
sys close
.s3
close(fildes)
.s3
.ft R
.sh DESCRIPTION
Given
a file descriptor such as returned from an
.it open,
.it creat,
or
.it pipe
call,
.it close
closes the associated file.
A close of all files is automatic on
.it exit,
but since
processes are limited to 10 simultaneously open files,
.it close
is necessary for programs which deal with many files.
.sh "SEE ALSO"
creat(II), open(II), pipe(II)
.sh DIAGNOSTICS
The error bit
(c-bit) is set for an unknown file descriptor.
From C a \*-1 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.