xref: /original-bsd/lib/libc/stdlib/abort.3 (revision c3e32dec)
1.\" Copyright (c) 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)abort.3	8.1 (Berkeley) 06/04/93
11.\"
12.Dd
13.Dt ABORT 3
14.Os
15.Sh NAME
16.Nm abort
17.Nd cause abnormal program termination
18.Sh SYNOPSIS
19.Fd #include <stdlib.h>
20.Ft void
21.Fn abort void
22.Sh DESCRIPTION
23The
24.Fn abort
25function causes abnormal program termination to occur, unless the
26signal
27.Dv SIGABRT
28is being caught and the signal handler does not return.
29.Pp
30No open streams are closed or flushed.
31.Sh RETURN VALUES
32The
33.Nm abort
34function
35never returns.
36.Sh SEE ALSO
37.Xr sigaction 2 ,
38.Xr exit 2
39.Sh STANDARDS
40The
41.Fn abort
42function
43conforms to
44.St -ansiC .
45