|
NAMEabort2 —
abort process with diagnostics
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <stdlib.h>
void
DESCRIPTIONTheabort2 () system call causes the process to be killed
and the specified diagnostic message (with arguments) to be delivered by the
kernel to the
syslogd(8)
daemon.
The why argument points to a
The RETURN VALUESTheabort2 () function never returns.
The process is killed with EXAMPLES#include <stdlib.h> if (weight_kg > max_load) { void *ptrs[3]; ptrs[0] = (void *)(intptr_t)weight_kg; ptrs[1] = (void *)(intptr_t)max_load; ptrs[2] = haystack; abort2("Camel overloaded", 3, ptrs); } SEE ALSOabort(3), exit(3)HISTORYTheabort2 () system call first appeared in
FreeBSD 7.0.
AUTHORSTheabort2 () system call was designed by
Poul-Henning Kamp
<phk@FreeBSD.org>. It
was implemented by Wojciech A. Koszek
<dunstan@freebsd.czest.pl>.
Visit the GSP FreeBSD Man Page Interface. |