Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

adb(1)

exit(2)

kill(2)

signal(2)

signal(5)

abort(3C)

NAME

abort() − generate a software abort fault

SYNOPSIS

#include <stdlib.h>

void abort(void);

DESCRIPTION

abort() first closes all open files, streams, directory streams, and message catalogue descriptors, if possible, then causes the signal SIGABRT to be sent to the calling process.  This may cause a core dump to be generated (see signal(2)).

If the signal SIGABRT is caught, the handling function is executed.  If the handling function returns, the action for SIGABRT is then reset to IG_DFL, and the signal SIGABRT is sent again to the process to ensure that it terminates. 

RETURN VALUE

abort() does not return. 

ERRORS

No errors are defined. 

APPLICATION USAGE

SIGABRT is not intended to be caught. 

DIAGNOSTICS

If SIGABRT is neither caught nor ignored, and the current directory is writable, a core dump is produced and the message abort - core dumped is written by the shell. 

SEE ALSO

adb(1), exit(2), kill(2), signal(2).  signal(5). 

STANDARDS CONFORMANCE

abort(): AES, SVID2, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026