PGM_$EXIT Domain/OS PGM_$EXIT
NAME
pgm_$exit - exit a program
SYNOPSIS (C)
#include <apollo/base.h>
#include <apollo/pgm.h>
void pgm_$exit(void)
SYNOPSIS (Pascal)
%include '/sys/ins/base.ins.pas';
%include '/sys/ins/pgm.ins.pas';
procedure pgm_$exit;
SYNOPSIS (FORTRAN)
%include '/sys/ins/base.ins.ftn'
%include '/sys/ins/pgm.ins.ftn'
call pgm_$exit
DESCRIPTION
Pgm_$exit exits from the calling program and returns control to the pro-
cess that invoked it. When pgm_$exit is called any files left open by
the program are closed, any storage acquired is released, and asynchro-
nous faults are re-enabled if they were inhibited by the calling program.
NOTES
Pgm_$exit calls pfm_$signal with a fault code equal to the last severity
level set by pgm_$set_severity, or pgm_$ok (the default) if
pgm_$set_severity was not called.