.\" @(#)exit.3f 1.3 86/01/02 SMI; from UCB 4.2 .TH EXIT 3F "98/09/16" .SH NAME exit \- terminate process with status .SH SYNOPSIS .\" .IX exit "" \fLexit\fP .IX "terminate with status" .IX status "at terminate" .\" .B subroutine exit (status) .br .B integer*4 status .SH DESCRIPTION .B exit flushes and closes all the files of the process, and notifies the parent process if it is executing a .BR wait . The low-order 8 bits of .I status are available to the parent process. These 8 bits are shifted left 8 bits, and all other bits are zero. Therefore, .B status should be in the range of 256 \- 65280. .PP This call never returns. .PP The C function .B exit may cause cleanup actions before the final .BR "`sys exit'" . .PP If you call .B exit without an argument, you get a warning message, and a zero is automatically provided as an argument. .SH FILES .B libF77.a .SH "SEE ALSO" .BR exit (2), .BR fork (2), .BR fork (3f), .BR wait (2), .BR wait (3f)