xref: /csrg-svn/lib/libc/stdlib/atexit.h (revision 42096)
1*42096Sbostic /*-
2*42096Sbostic  * Copyright (c) 1990 The Regents of the University of California.
3*42096Sbostic  * All rights reserved.
4*42096Sbostic  *
5*42096Sbostic  * %sccs.include.redist.c%
6*42096Sbostic  *
7*42096Sbostic  *	@(#)atexit.h	5.1 (Berkeley) 05/15/90
8*42096Sbostic  */
9*42096Sbostic 
10*42096Sbostic /* must be at least 32 to guarantee ANSI conformance */
11*42096Sbostic #define	ATEXIT_SIZE	32
12*42096Sbostic 
13*42096Sbostic struct atexit {
14*42096Sbostic 	struct atexit *next;		/* next in list */
15*42096Sbostic 	int ind;			/* next index in this table */
16*42096Sbostic 	void (*fns[ATEXIT_SIZE])();	/* the table itself */
17*42096Sbostic };
18*42096Sbostic 
19*42096Sbostic struct atexit *__atexit;	/* points to head of LIFO stack */
20