|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 866 (0x362)
Types: TextFile
Notes: UNIX file
Names: »close.2«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »usr/man/man2/close.2«
.ig @(#)close.2 2.1 7/1/84 @(#)Copyright (C) 1983 by National Semiconductor Corp. .. .TH CLOSE 2 .UC 4 .SH NAME close \- close a file .SH SYNOPSIS .B close(fildes) .SH DESCRIPTION Given a file descriptor such as returned from an .I open, .I creat, .I dup or .IR pipe (2) call, .I close closes the associated file. A close of all files is automatic on .I exit, but since there is a limit on the number of open files per process, .I close is necessary for programs which deal with many files. .PP Files are closed upon termination of a process, and certain high-numbered file descriptors are closed by .IR exec (2), and it is possible to arrange for others to be closed (see FIOCLEX in .IR ioctl (2)). .SH "SEE ALSO" creat(2), open(2), pipe(2), exec(2), ioctl(2) .SH DIAGNOSTICS Zero is returned if a file is closed; \-1 is returned for an unknown file descriptor.