Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > A

abort(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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 SIG_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.

STANDARDS CONFORMANCE

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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.