The Open Group Base Specifications Issue 6
IEEE Std 1003.1-2001
Copyright © 2001 The IEEE and The Open Group, All Rights reserved.

NAME

abort - generate an abnormal process abort

SYNOPSIS

#include <stdlib.h>

void abort(void);

DESCRIPTION

[CX] [Option Start] The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 defers to the ISO C standard. [Option End]

The abort() function shall cause abnormal process termination to occur, unless the signal SIGABRT is being caught and the signal handler does not return.

[CX] [Option Start] The abnormal termination processing shall include at least the effect of fclose() on all open streams and the default actions defined for SIGABRT. [Option End]

[XSI] [Option Start] On XSI-conformant systems, in addition the abnormal termination processing shall include the effect of fclose() on message catalog descriptors. [Option End]

The SIGABRT signal shall be sent to the calling process as if by means of raise() with the argument SIGABRT.

[CX] [Option Start] The status made available to wait() or waitpid() by abort() shall be that of a process terminated by the SIGABRT signal. [Option End] The abort() function shall override blocking or ignoring the SIGABRT signal.

RETURN VALUE

The abort() function shall not return.

ERRORS

No errors are defined.


The following sections are informative.

EXAMPLES

None.

APPLICATION USAGE

Catching the signal is intended to provide the application writer with a portable means to abort processing, free from possible interference from any implementation-defined functions.

RATIONALE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

exit() , kill() , raise() , signal() , wait() , waitpid() , the Base Definitions volume of IEEE Std 1003.1-2001, <stdlib.h>

CHANGE HISTORY

First released in Issue 1. Derived from Issue 1 of the SVID.

Issue 6

Extensions beyond the ISO C standard are marked.

End of informative text.


UNIX ® is a registered Trademark of The Open Group.
POSIX ® is a registered Trademark of The IEEE.
[ Main Index | XBD | XCU | XSH | XRAT ]