Deleted Added
full compact
atexit.c (18516) atexit.c (23662)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] = "@(#)atexit.c 8.1 (Berkeley) 6/4/93";
38static char sccsid[] = "@(#)atexit.c 8.2 (Berkeley) 7/3/94";
39#endif /* LIBC_SCCS and not lint */
40
41#include <stddef.h>
42#include <stdlib.h>
43#include <unistd.h>
44#include "atexit.h"
45
39#endif /* LIBC_SCCS and not lint */
40
41#include <stddef.h>
42#include <stdlib.h>
43#include <unistd.h>
44#include "atexit.h"
45
46struct atexit *__atexit; /* points to head of LIFO stack */
47
46/*
47 * Register a function to be performed at exit.
48 */
49int
50atexit(fn)
51 void (*fn)();
52{
53 static struct atexit __atexit0; /* one guaranteed table */

--- 14 unchanged lines hidden ---
48/*
49 * Register a function to be performed at exit.
50 */
51int
52atexit(fn)
53 void (*fn)();
54{
55 static struct atexit __atexit0; /* one guaranteed table */

--- 14 unchanged lines hidden ---