Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (a - d) 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 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 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 file 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 file has the saveabend flag 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).
527187-017 Hewlett-Packard Company 1−3