v7 man page for exit

Query: exit

OS: v7

Section: 2

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

EXIT(2) 							System Calls Manual							   EXIT(2)

NAME
exit - terminate process
SYNOPSIS
exit(status) int status; _exit(status) int status;
DESCRIPTION
Exit is the normal means of terminating a process. Exit closes all the process's files and notifies the parent process if it is executing a wait. The low-order 8 bits of status are available to the parent process. This call can never return. The C function exit may cause cleanup actions before the final `sys exit'. The function _exit circumvents all cleanup.
SEE ALSO
wait(2)
ASSEMBLER
(exit = 1.) (status in r0) sys exit EXIT(2)
Related Man Pages
_exit(2) - freebsd
exit(3) - mojave
exit(3) - osx
_exit(2) - ultrix
_exit(2) - osx
Similar Topics in the Unix Linux Community
confusion in use of exit 0
To search the pattern on the basis of date and exit code
Need output of script on screen and file with correct return status of the called script.
Returning an exit code from a bash function
Script Works But Need It to Exit Upon Closing Program