summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_mmap.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_mmap.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_mmap.c')
-rw-r--r--src/regress/lib/libc/sys/t_mmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/regress/lib/libc/sys/t_mmap.c b/src/regress/lib/libc/sys/t_mmap.c
index 8d167cd5ec..59c74296e3 100644
--- a/src/regress/lib/libc/sys/t_mmap.c
+++ b/src/regress/lib/libc/sys/t_mmap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_mmap.c,v 1.3 2020/12/06 18:46:07 bluhm Exp $ */ 1/* $OpenBSD: t_mmap.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */
2/* $NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 jruoho Exp $ */ 2/* $NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 jruoho Exp $ */
3 3
4/*- 4/*-
@@ -58,10 +58,6 @@
58 58
59#include "macros.h" 59#include "macros.h"
60 60
61#include <sys/cdefs.h>
62__RCSID("$NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 jruoho Exp $");
63
64#include <sys/param.h>
65#include <sys/disklabel.h> 61#include <sys/disklabel.h>
66#include <sys/mman.h> 62#include <sys/mman.h>
67#include <sys/stat.h> 63#include <sys/stat.h>
@@ -75,6 +71,7 @@ __RCSID("$NetBSD: t_mmap.c,v 1.14 2020/06/26 07:50:11 jruoho Exp $");
75#include <signal.h> 71#include <signal.h>
76#include <stdio.h> 72#include <stdio.h>
77#include <stdlib.h> 73#include <stdlib.h>
74#include <limits.h>
78#include <string.h> 75#include <string.h>
79#include <unistd.h> 76#include <unistd.h>
80#include <paths.h> 77#include <paths.h>