Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
exit(3) OSS Library Calls Reference Manual
NAME
exit - Terminates a process
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <stdlib.h>
void exit(
int status);
PARAMETERS
status Indicates the status of the process.
DESCRIPTION
The exit( ) function terminates the calling process after it calls any functions registered previ-
ously for the process by the atexit( ) function, in the reverse order to that in which they were
registered. In addition, the exit() function flushes all open output streams, closes all open
streams, and removes all files created by the tmpfile( ) function. Finally, it completes process
termination and does not return.
For Guardian active backup process pairs, if the primary process calls exit( ) and specifies normal
termination (the status is zero), both the primary and backup processes terminate.
RETURN VALUES
The exit( ) function does not return.
RELATED INFORMATION
Functions: atexit(3), _exit(2), sigaction(2), times(3), wait(2).
2−24 Hewlett-Packard Company 527187-017