v7 man page for close

Query: close

OS: v7

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CLOSE(2)							System Calls Manual							  CLOSE(2)

NAME
close - close a file
SYNOPSIS
close(fildes)
DESCRIPTION
Given a file descriptor such as returned from an open, creat, dup or pipe(2) call, close closes the associated file. A close of all files is automatic on exit, but since there is a limit on the number of open files per process, close is necessary for programs which deal with many files. Files are closed upon termination of a process, and certain file descriptors may be closed by exec(2) (see ioctl(2)).
SEE ALSO
creat(2), open(2), pipe(2), exec(2), ioctl(2)
DIAGNOSTICS
Zero is returned if a file is closed; -1 is returned for an unknown file descriptor.
ASSEMBLER
(close = 6.) (file descriptor in r0) sys close CLOSE(2)
Related Man Pages
close(2) - linux
dup(2) - hpux
close(2) - hpux
close(2) - minix
close(2) - suse
Similar Topics in the Unix Linux Community
Bash menu opens and closes
New bash menu printing errors but closes too quickly
Keep only the closet match of timestamped row (include headers) from file1 to precede file2 row/s
Split file by column value, each with header
Terminal running bash/rsync script does not close with exit (MacOS High SIerra)