Man Page 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  pro-
     cess.   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 mes-
     sage, and a zero is automatically provided as an argument.


FILES

     libfui.a


SEE ALSO

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