Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abort(3) — OPENSTEP 4.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigvec(2)

exit(2)

ABORT(3)  —  UNIX Programmer’s Manual

NAME

abort − generate a fault

SYNOPSIS

#include <stdlib.h>

void abort(void);

DESCRIPTION

Abort executes an instruction which is illegal in user mode.  This generates a SIGABRT signal that normally terminates the process with a core dump, which may be used for debugging. 

The abort() function flushes standard I/O buffers before process termination. 

SEE ALSO

sigvec(2), exit(2)

DIAGNOSTICS

Usually “Illegal instruction − core dumped” from the shell. 

BUGS

The BSD implementation of abort doesn’t flush standard I/O buffers. Use fflush(3S) before calling abort.

7th Edition  —  August 1, 1992

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