diff options
author | deraadt <> | 2021-12-13 16:56:48 +0000 |
---|---|---|
committer | deraadt <> | 2021-12-13 16:56:48 +0000 |
commit | 8d21fee22ec79324eef6e9a88c83bd6cf32315d6 (patch) | |
tree | 4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/mkstemp | |
parent | ff932a8c105e55b70f9248f6e57a9157c7969ef4 (diff) | |
download | openbsd-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/mkstemp')
-rw-r--r-- | src/regress/lib/libc/mkstemp/mkstemp_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libc/mkstemp/mkstemp_test.c b/src/regress/lib/libc/mkstemp/mkstemp_test.c index c1c05eae39..b92619cd36 100644 --- a/src/regress/lib/libc/mkstemp/mkstemp_test.c +++ b/src/regress/lib/libc/mkstemp/mkstemp_test.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * contain any X's | 8 | * contain any X's |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <sys/param.h> | 11 | #include <sys/types.h> |
12 | #include <sys/mman.h> | 12 | #include <sys/mman.h> |
13 | #include <sys/stat.h> | 13 | #include <sys/stat.h> |
14 | 14 | ||
@@ -17,6 +17,7 @@ | |||
17 | #include <stdio.h> | 17 | #include <stdio.h> |
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | #include <string.h> | 19 | #include <string.h> |
20 | #include <limits.h> | ||
20 | #include <unistd.h> | 21 | #include <unistd.h> |
21 | 22 | ||
22 | #define MAX_TEMPLATE_LEN 10 | 23 | #define MAX_TEMPLATE_LEN 10 |
@@ -110,7 +111,7 @@ int | |||
110 | main(void) | 111 | main(void) |
111 | { | 112 | { |
112 | struct stat sb, fsb; | 113 | struct stat sb, fsb; |
113 | char cwd[MAXPATHLEN + 1]; | 114 | char cwd[PATH_MAX + 1]; |
114 | char *p; | 115 | char *p; |
115 | size_t clen; | 116 | size_t clen; |
116 | int i; | 117 | int i; |