Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

Guardian Native C Library Calls (a - e) abort(3)
NAME
abort - Generates a software signal to end the current process
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdlib.h>
void abort(void);
DESCRIPTION
The abort() function sends a SIGABRT signal to the current process, which terminates unless
the signal is caught and the signal-catching function does not return. If the signal is caught but
the signal is currently blocked, the process is still terminated.
The system produces a saveabend le in the current directory (for OSS processes) or the current
subvolume (for Guardian processes) and prints an error message if the following conditions are
all true:
The SIGABRT signal is neither caught nor ignored.
The current directory or subvolume is writable.
The program le has the saveabend ag turned on.
The abort() function terminates the process with the same result as the _exit() function, except
that the status made available to the wait() or waitpid( ) function is that of a process terminated
by the SIGABRT signal.
Use From the Guardian Environment
If the abort() function is called from a Guardian process, the Guardian PROCESS_STOP_ pro-
cedure with the ABEND option is called. Refer to the Guardian Procedure Calls Reference
Manual for details.
RETURN VALUES
The abort() function never returns.
ERRORS
The abort() function does not return any errors.
RELATED INFORMATION
Functions: _exit(2), kill(2), raise(3), sigaction(2).
Files: signal(4).
527192-005 Hewlett-Packard Company 13