2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
20 .Nd terminate a running process with minimal teardown
25 .Fa "void (*func)(void)"
36 functions provide a veneer around
38 that allows for registered functions to be called before terminating.
41 standard library termination is not done.
43 functions are not called and various standard termination that occurs
48 Functions that are registered with
50 will be called in reverse order upon calling
52 Functions registered with
54 will not be called at any other time.
55 Functions that are registered with
57 should not make use of
59 and related functions.
61 After calling all registered functions, the
63 function will terminate the calling program and its exit status will be
68 function does not return.
75 Otherwise, a non-zero error value is returned to indicate failure.
82 Insufficient storage space is available.
84 .Sh INTERFACE STABILITY