xref: /freebsd/lib/libc/stdlib/atexit.h (revision dc36d6f9bb1753f3808552f3afd30eda9a7b206a)
1662909a7SPeter Wemm /*-
2*8a16b7a1SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
3*8a16b7a1SPedro F. Giffuni  *
4662909a7SPeter Wemm  * Copyright (c) 1990, 1993
5662909a7SPeter Wemm  *	The Regents of the University of California.  All rights reserved.
6662909a7SPeter Wemm  *
7662909a7SPeter Wemm  * Redistribution and use in source and binary forms, with or without
8662909a7SPeter Wemm  * modification, are permitted provided that the following conditions
9662909a7SPeter Wemm  * are met:
10662909a7SPeter Wemm  * 1. Redistributions of source code must retain the above copyright
11662909a7SPeter Wemm  *    notice, this list of conditions and the following disclaimer.
12662909a7SPeter Wemm  * 2. Redistributions in binary form must reproduce the above copyright
13662909a7SPeter Wemm  *    notice, this list of conditions and the following disclaimer in the
14662909a7SPeter Wemm  *    documentation and/or other materials provided with the distribution.
153fb3b97cSEd Maste  * 3. Neither the name of the University nor the names of its contributors
16662909a7SPeter Wemm  *    may be used to endorse or promote products derived from this software
17662909a7SPeter Wemm  *    without specific prior written permission.
18662909a7SPeter Wemm  *
19662909a7SPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20662909a7SPeter Wemm  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21662909a7SPeter Wemm  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22662909a7SPeter Wemm  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23662909a7SPeter Wemm  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24662909a7SPeter Wemm  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25662909a7SPeter Wemm  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26662909a7SPeter Wemm  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27662909a7SPeter Wemm  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28662909a7SPeter Wemm  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29662909a7SPeter Wemm  * SUCH DAMAGE.
30662909a7SPeter Wemm  */
31662909a7SPeter Wemm 
32662909a7SPeter Wemm /* must be at least 32 to guarantee ANSI conformance */
33662909a7SPeter Wemm #define	ATEXIT_SIZE	32
34662909a7SPeter Wemm 
3550bcce79SAlexander Kabaev void __cxa_finalize(void *dso);
36