CLOSE(II) 8/5/73 CLOSE(II) NAME close - close a file SYNOPSIS (close = 6.) (file descriptor in r0) sys close close(fildes) 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 10 simultaneously open files, close is necessary for programs which deal with many files. SEE ALSO creat(II), open(II), pipe(II) DIAGNOSTICS The error bit (c-bit) is set for an unknown file descriptor. From C a -1 indicates an error, 0 indicates success.