summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguenther <>2017-08-12 22:59:52 +0000
committerguenther <>2017-08-12 22:59:52 +0000
commit5ba659ad744cb6a4bab19f260e7ae9033a468660 (patch)
tree43c68c562838d3d722c3c99e754c184941d5d496
parent4f5399c5c0671a2e79afef156ad57c0d29cb3e9f (diff)
downloadopenbsd-5ba659ad744cb6a4bab19f260e7ae9033a468660.tar.gz
openbsd-5ba659ad744cb6a4bab19f260e7ae9033a468660.tar.bz2
openbsd-5ba659ad744cb6a4bab19f260e7ae9033a468660.zip
Minimize #includes, particularly to avoid thread_private.h
ok tedu@
-rw-r--r--src/lib/libc/stdlib/abort.c5
-rw-r--r--src/lib/libc/stdlib/exit.c5
2 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/abort.c b/src/lib/libc/stdlib/abort.c
index 129a1735f3..6c22ecd2b0 100644
--- a/src/lib/libc/stdlib/abort.c
+++ b/src/lib/libc/stdlib/abort.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: abort.c,v 1.20 2015/10/25 04:13:59 guenther Exp $ */ 1/* $OpenBSD: abort.c,v 1.21 2017/08/12 22:59:52 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 1985 Regents of the University of California. 3 * Copyright (c) 1985 Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -30,9 +30,8 @@
30 30
31#include <signal.h> 31#include <signal.h>
32#include <stdlib.h> 32#include <stdlib.h>
33#include <string.h>
33#include <unistd.h> 34#include <unistd.h>
34#include "thread_private.h"
35#include "atexit.h"
36 35
37 36
38void 37void
diff --git a/src/lib/libc/stdlib/exit.c b/src/lib/libc/stdlib/exit.c
index d30b91ed46..e93d4313e3 100644
--- a/src/lib/libc/stdlib/exit.c
+++ b/src/lib/libc/stdlib/exit.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: exit.c,v 1.13 2015/09/13 08:31:47 guenther Exp $ */ 1/* $OpenBSD: exit.c,v 1.14 2017/08/12 22:59:52 guenther Exp $ */
2/*- 2/*-
3 * Copyright (c) 1990 The Regents of the University of California. 3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -28,12 +28,9 @@
28 * SUCH DAMAGE. 28 * SUCH DAMAGE.
29 */ 29 */
30 30
31#include <sys/types.h>
32#include <sys/mman.h>
33#include <stdlib.h> 31#include <stdlib.h>
34#include <unistd.h> 32#include <unistd.h>
35#include "atexit.h" 33#include "atexit.h"
36#include "thread_private.h"
37 34
38/* 35/*
39 * This variable is zero until a process has created a thread. 36 * This variable is zero until a process has created a thread.