Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

tb(1)

exit(2)

kill(2)

signal(2)

raise(3C)

ABORT(3C)                            SysV                            ABORT(3C)



NAME
     abort - generate an IOT fault

SYNOPSIS
     #include <stdlib.h>
     void abort(void)

DESCRIPTION
     abort does the work of exit(2) but, instead of just exiting, abort causes
     SIGABRT to be sent to the calling process.  If SIGABRT is neither caught
     nor ignored, all stdio(3S) streams are flushed prior to the signal being
     sent, resulting in a process dump to `node_data/system_logs/proc_dump.

     Use tb(1) to examine the process dump.

     If the call to the abort function terminates the process, the abort will
     have the effect of the fclose function on every open stream.  The abort
     function then terminates the process with the same result as the _exit
     function, except that the status made available to the wait or waitpid
     function by abort will be that of a process terminated by the SIGABRT
     signal.

     If the call to abort terminates the process, all open message catalog
     descriptors will also be closed.

SEE ALSO
     cc(1), tb(1), exit(2), kill(2), signal(2), raise(3C).

DIAGNOSTICS
     abort does not return.  Use raise(SIGABRT) to signal unsuccessful
     termination to the calling program.

NOTES
     If compiling traditional C, with the

          -A nansi

     abort returns the result of the kill(2) system call.  If your program
     uses this result, insert the directive:

          #define _CLASSIC_TYPES

     before any #include directives in your program.

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