summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_fork.c
diff options
context:
space:
mode:
authorderaadt <>2021-12-13 16:56:48 +0000
committerderaadt <>2021-12-13 16:56:48 +0000
commit8d21fee22ec79324eef6e9a88c83bd6cf32315d6 (patch)
tree4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/sys/t_fork.c
parentff932a8c105e55b70f9248f6e57a9157c7969ef4 (diff)
downloadopenbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.gz
openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.bz2
openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.zip
remove a couple hundred sys/param.h includes in userland code, and
also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl
Diffstat (limited to 'src/regress/lib/libc/sys/t_fork.c')
-rw-r--r--src/regress/lib/libc/sys/t_fork.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/regress/lib/libc/sys/t_fork.c b/src/regress/lib/libc/sys/t_fork.c
index 8fbc502d1f..b55b557824 100644
--- a/src/regress/lib/libc/sys/t_fork.c
+++ b/src/regress/lib/libc/sys/t_fork.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_fork.c,v 1.4 2021/09/28 05:39:24 anton Exp $ */ 1/* $OpenBSD: t_fork.c,v 1.5 2021/12/13 16:56:48 deraadt Exp $ */
2/* $NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $ */ 2/* $NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $ */
3 3
4/*- 4/*-
@@ -28,16 +28,11 @@
28 */ 28 */
29#include "macros.h" 29#include "macros.h"
30 30
31#include <sys/cdefs.h> 31#include <sys/types.h>
32__COPYRIGHT("@(#) Copyright (c) 2018, 2019\ 32#include <sys/signal.h>
33 The NetBSD Foundation, inc. All rights reserved.");
34__RCSID("$NetBSD: t_fork.c,v 1.4 2019/04/06 15:41:54 kamil Exp $");
35
36#include <sys/param.h>
37#ifdef __OpenBSD__ 33#ifdef __OpenBSD__
38#include <sys/proc.h> 34#include <sys/proc.h>
39#endif 35#endif
40#include <sys/types.h>
41#include <sys/sysctl.h> 36#include <sys/sysctl.h>
42#include <sys/wait.h> 37#include <sys/wait.h>
43#include <sched.h> 38#include <sched.h>