Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

exit(3F)

Name

exit - terminate process with status

Synopsis

subroutine exit (status)
integer*4 status

Description

exit flushes and closes all the files of the process, and notifies the parent process if it is executing a wait. The low-order 8 bits of status are available to the parent process. These 8 bits are shifted left 8 bits, and all other bits are zero. Therefore, status should be in the range of 256 - 65280.

This call never returns.

The C function exit may cause cleanup actions before the final `sys exit'.

If you call exit without an argument, you get a warning message, and a zero is automatically provided as an argument.

Files

libfsu.a

See Also

exit(2), fork(2), fork(3F), wait(2), wait(3F)