Deleted Added
full compact
abort.c (118988) abort.c (150040)
1/*
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)abort.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)abort.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/lib/libc/stdlib/abort.c 118988 2003-08-16 11:43:57Z davidxu $");
38__FBSDID("$FreeBSD: head/lib/libc/stdlib/abort.c 150040 2005-09-12 13:46:32Z stefanf $");
39
40#include "namespace.h"
41#include <signal.h>
42#include <stdlib.h>
43#include <stddef.h>
44#include <unistd.h>
45#include <pthread.h>
46#include "un-namespace.h"
47
39
40#include "namespace.h"
41#include <signal.h>
42#include <stdlib.h>
43#include <stddef.h>
44#include <unistd.h>
45#include <pthread.h>
46#include "un-namespace.h"
47
48void (*__cleanup)();
48#include "libc_private.h"
49
50void
51abort()
52{
53 struct sigaction act;
54
55 /*
56 * POSIX requires we flush stdio buffers on abort.

--- 27 unchanged lines hidden ---
49
50void
51abort()
52{
53 struct sigaction act;
54
55 /*
56 * POSIX requires we flush stdio buffers on abort.

--- 27 unchanged lines hidden ---