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/sys | |
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/sys')
45 files changed, 57 insertions, 205 deletions
diff --git a/src/regress/lib/libc/sys/macros.h b/src/regress/lib/libc/sys/macros.h index ee7d77c31d..cb0789eb71 100644 --- a/src/regress/lib/libc/sys/macros.h +++ b/src/regress/lib/libc/sys/macros.h | |||
@@ -1,7 +1,6 @@ | |||
1 | /* $OpenBSD: macros.h,v 1.4 2021/09/02 15:28:41 mbuhl Exp $ */ | 1 | /* $OpenBSD: macros.h,v 1.5 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* Public domain - Moritz Buhl */ | 2 | /* Public domain - Moritz Buhl */ |
3 | 3 | ||
4 | #include <sys/param.h> | ||
5 | #include <sys/socket.h> | 4 | #include <sys/socket.h> |
6 | #include <sys/stdint.h> | 5 | #include <sys/stdint.h> |
7 | #include <sys/sysctl.h> | 6 | #include <sys/sysctl.h> |
@@ -11,8 +10,7 @@ | |||
11 | #include <string.h> | 10 | #include <string.h> |
12 | #include <stdio.h> | 11 | #include <stdio.h> |
13 | 12 | ||
14 | #define __RCSID(str) | 13 | #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) |
15 | #define __COPYRIGHT(str) | ||
16 | 14 | ||
17 | #define __arraycount(_a) nitems(_a) | 15 | #define __arraycount(_a) nitems(_a) |
18 | #define __unreachable() atf_tc_fail("unreachable") | 16 | #define __unreachable() atf_tc_fail("unreachable") |
diff --git a/src/regress/lib/libc/sys/t_access.c b/src/regress/lib/libc/sys/t_access.c index ed6410423b..531b17c46e 100644 --- a/src/regress/lib/libc/sys/t_access.c +++ b/src/regress/lib/libc/sys/t_access.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_access.c,v 1.2 2019/11/22 15:59:53 bluhm Exp $ */ | 1 | /* $OpenBSD: t_access.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_access.c,v 1.3 2019/07/16 17:29:18 martin Exp $ */ | 2 | /* $NetBSD: t_access.c,v 1.3 2019/07/16 17:29:18 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_access.c,v 1.3 2019/07/16 17:29:18 martin Exp $"); | ||
37 | |||
38 | #include "atf-c.h" | 35 | #include "atf-c.h" |
39 | 36 | ||
40 | #include <sys/stat.h> | 37 | #include <sys/stat.h> |
diff --git a/src/regress/lib/libc/sys/t_chroot.c b/src/regress/lib/libc/sys/t_chroot.c index b2bc16e49e..fb65bacebd 100644 --- a/src/regress/lib/libc/sys/t_chroot.c +++ b/src/regress/lib/libc/sys/t_chroot.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_chroot.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_chroot.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */ | 2 | /* $NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_clock_gettime.c b/src/regress/lib/libc/sys/t_clock_gettime.c index b75be63e4c..11105d2240 100644 --- a/src/regress/lib/libc/sys/t_clock_gettime.c +++ b/src/regress/lib/libc/sys/t_clock_gettime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_clock_gettime.c,v 1.2 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_clock_gettime.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_clock_gettime.c,v 1.3 2017/01/13 21:30:41 christos Exp $ */ | 2 | /* $NetBSD: t_clock_gettime.c,v 1.3 2017/01/13 21:30:41 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -58,12 +58,6 @@ | |||
58 | 58 | ||
59 | #include "macros.h" | 59 | #include "macros.h" |
60 | 60 | ||
61 | #include <sys/cdefs.h> | ||
62 | __COPYRIGHT("@(#) Copyright (c) 2008\ | ||
63 | The NetBSD Foundation, inc. All rights reserved."); | ||
64 | __RCSID("$NetBSD: t_clock_gettime.c,v 1.3 2017/01/13 21:30:41 christos Exp $"); | ||
65 | |||
66 | #include <sys/param.h> | ||
67 | #include <sys/sysctl.h> | 61 | #include <sys/sysctl.h> |
68 | 62 | ||
69 | 63 | ||
diff --git a/src/regress/lib/libc/sys/t_dup.c b/src/regress/lib/libc/sys/t_dup.c index c998c228b4..b461a5f7c8 100644 --- a/src/regress/lib/libc/sys/t_dup.c +++ b/src/regress/lib/libc/sys/t_dup.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_dup.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_dup.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_dup.c,v 1.9 2017/01/13 20:31:53 christos Exp $ */ | 2 | /* $NetBSD: t_dup.c,v 1.9 2017/01/13 20:31:53 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_dup.c,v 1.9 2017/01/13 20:31:53 christos Exp $"); | ||
37 | |||
38 | #include <sys/resource.h> | 35 | #include <sys/resource.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | #include <sys/wait.h> | 37 | #include <sys/wait.h> |
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> |
diff --git a/src/regress/lib/libc/sys/t_fsync.c b/src/regress/lib/libc/sys/t_fsync.c index bc3cd7939b..66653df633 100644 --- a/src/regress/lib/libc/sys/t_fsync.c +++ b/src/regress/lib/libc/sys/t_fsync.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_fsync.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_fsync.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_fsync.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $ */ | 2 | /* $NetBSD: t_fsync.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_fsync.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $"); | ||
37 | |||
38 | #include <errno.h> | 35 | #include <errno.h> |
39 | #include <fcntl.h> | 36 | #include <fcntl.h> |
40 | #include <stdio.h> | 37 | #include <stdio.h> |
diff --git a/src/regress/lib/libc/sys/t_getgroups.c b/src/regress/lib/libc/sys/t_getgroups.c index 5cecd3031f..a17c9c6778 100644 --- a/src/regress/lib/libc/sys/t_getgroups.c +++ b/src/regress/lib/libc/sys/t_getgroups.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getgroups.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getgroups.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getgroups.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_getitimer.c b/src/regress/lib/libc/sys/t_getitimer.c index 9e5bd792ed..b18bc75cd0 100644 --- a/src/regress/lib/libc/sys/t_getitimer.c +++ b/src/regress/lib/libc/sys/t_getitimer.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getitimer.c,v 1.3 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getitimer.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getitimer.c,v 1.3 2019/07/13 12:44:02 gson Exp $ */ | 2 | /* $NetBSD: t_getitimer.c,v 1.3 2019/07/13 12:44:02 gson Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getitimer.c,v 1.3 2019/07/13 12:44:02 gson Exp $"); | ||
37 | |||
38 | #include <sys/time.h> | 35 | #include <sys/time.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_getlogin.c b/src/regress/lib/libc/sys/t_getlogin.c index 3c98cd7de8..b4f06fdee6 100644 --- a/src/regress/lib/libc/sys/t_getlogin.c +++ b/src/regress/lib/libc/sys/t_getlogin.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getlogin.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getlogin.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getlogin.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_getlogin.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,16 +32,13 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getlogin.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/param.h> | ||
39 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
40 | 36 | ||
41 | #include "atf-c.h" | 37 | #include "atf-c.h" |
42 | #include <errno.h> | 38 | #include <errno.h> |
43 | #include <stdlib.h> | 39 | #include <stdlib.h> |
44 | #include <string.h> | 40 | #include <string.h> |
41 | #include <limits.h> | ||
45 | #include <unistd.h> | 42 | #include <unistd.h> |
46 | 43 | ||
47 | ATF_TC(getlogin_r_err); | 44 | ATF_TC(getlogin_r_err); |
@@ -65,7 +62,7 @@ ATF_TC_HEAD(getlogin_same, tc) | |||
65 | 62 | ||
66 | ATF_TC_BODY(getlogin_same, tc) | 63 | ATF_TC_BODY(getlogin_same, tc) |
67 | { | 64 | { |
68 | char buf[MAXLOGNAME]; | 65 | char buf[LOGIN_NAME_MAX]; |
69 | char *str; | 66 | char *str; |
70 | 67 | ||
71 | str = getlogin(); | 68 | str = getlogin(); |
@@ -128,7 +125,7 @@ ATF_TC_HEAD(setlogin_err, tc) | |||
128 | 125 | ||
129 | ATF_TC_BODY(setlogin_err, tc) | 126 | ATF_TC_BODY(setlogin_err, tc) |
130 | { | 127 | { |
131 | char buf[MAXLOGNAME + 1]; | 128 | char buf[LOGIN_NAME_MAX + 1]; |
132 | char *name; | 129 | char *name; |
133 | pid_t pid; | 130 | pid_t pid; |
134 | int sta; | 131 | int sta; |
diff --git a/src/regress/lib/libc/sys/t_getpid.c b/src/regress/lib/libc/sys/t_getpid.c index 0dbf7f43fe..db9f8c8746 100644 --- a/src/regress/lib/libc/sys/t_getpid.c +++ b/src/regress/lib/libc/sys/t_getpid.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getpid.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getpid.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getpid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_getpid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getpid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | 36 | ||
40 | #include <stdlib.h> | 37 | #include <stdlib.h> |
diff --git a/src/regress/lib/libc/sys/t_getrusage.c b/src/regress/lib/libc/sys/t_getrusage.c index 316377f8ce..1a9e3d139c 100644 --- a/src/regress/lib/libc/sys/t_getrusage.c +++ b/src/regress/lib/libc/sys/t_getrusage.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getrusage.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getrusage.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getrusage.c,v 1.8 2018/05/09 08:45:03 mrg Exp $ */ | 2 | /* $NetBSD: t_getrusage.c,v 1.8 2018/05/09 08:45:03 mrg Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getrusage.c,v 1.8 2018/05/09 08:45:03 mrg Exp $"); | ||
37 | |||
38 | #include <sys/resource.h> | 35 | #include <sys/resource.h> |
39 | #include <sys/time.h> | 36 | #include <sys/time.h> |
40 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_getsid.c b/src/regress/lib/libc/sys/t_getsid.c index 5ccc2ca1a1..9bd82cd2ba 100644 --- a/src/regress/lib/libc/sys/t_getsid.c +++ b/src/regress/lib/libc/sys/t_getsid.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_getsid.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_getsid.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_getsid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_getsid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_getsid.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | 36 | ||
40 | #include <errno.h> | 37 | #include <errno.h> |
diff --git a/src/regress/lib/libc/sys/t_gettimeofday.c b/src/regress/lib/libc/sys/t_gettimeofday.c index 015204b1fc..7a7d319be1 100644 --- a/src/regress/lib/libc/sys/t_gettimeofday.c +++ b/src/regress/lib/libc/sys/t_gettimeofday.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_gettimeofday.c,v 1.4 2021/09/27 14:07:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_gettimeofday.c,v 1.5 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_gettimeofday.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_gettimeofday.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,13 +32,11 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_gettimeofday.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/time.h> | 35 | #include <sys/time.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
41 | #include <errno.h> | 38 | #include <errno.h> |
39 | #include <signal.h> | ||
42 | #include <string.h> | 40 | #include <string.h> |
43 | 41 | ||
44 | #ifdef __OpenBSD__ | 42 | #ifdef __OpenBSD__ |
diff --git a/src/regress/lib/libc/sys/t_kevent.c b/src/regress/lib/libc/sys/t_kevent.c index 171e1f3dc9..917ab7f1dd 100644 --- a/src/regress/lib/libc/sys/t_kevent.c +++ b/src/regress/lib/libc/sys/t_kevent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_kevent.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_kevent.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_kevent.c,v 1.9 2020/10/31 01:08:32 christos Exp $ */ | 2 | /* $NetBSD: t_kevent.c,v 1.9 2020/10/31 01:08:32 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -31,9 +31,6 @@ | |||
31 | */ | 31 | */ |
32 | #include "macros.h" | 32 | #include "macros.h" |
33 | 33 | ||
34 | #include <sys/cdefs.h> | ||
35 | __RCSID("$NetBSD: t_kevent.c,v 1.9 2020/10/31 01:08:32 christos Exp $"); | ||
36 | |||
37 | #include <sys/types.h> | 34 | #include <sys/types.h> |
38 | #include <sys/event.h> | 35 | #include <sys/event.h> |
39 | 36 | ||
diff --git a/src/regress/lib/libc/sys/t_kill.c b/src/regress/lib/libc/sys/t_kill.c index bce0f2f111..0c55dfa41b 100644 --- a/src/regress/lib/libc/sys/t_kill.c +++ b/src/regress/lib/libc/sys/t_kill.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_kill.c,v 1.3 2021/09/28 05:39:24 anton Exp $ */ | 1 | /* $OpenBSD: t_kill.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_kill.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ | 2 | /* $NetBSD: t_kill.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_kill.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | 36 | ||
40 | #include <errno.h> | 37 | #include <errno.h> |
diff --git a/src/regress/lib/libc/sys/t_link.c b/src/regress/lib/libc/sys/t_link.c index 291fd9cda4..12dbd8b595 100644 --- a/src/regress/lib/libc/sys/t_link.c +++ b/src/regress/lib/libc/sys/t_link.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_link.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_link.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $ */ | 2 | /* $NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,10 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_link.c,v 1.3 2017/01/13 20:42:36 christos Exp $"); | ||
37 | |||
38 | #include <sys/param.h> | ||
39 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
40 | 36 | ||
41 | #include "atf-c.h" | 37 | #include "atf-c.h" |
@@ -112,7 +108,7 @@ ATF_TC_HEAD(link_err, tc) | |||
112 | 108 | ||
113 | ATF_TC_BODY(link_err, tc) | 109 | ATF_TC_BODY(link_err, tc) |
114 | { | 110 | { |
115 | char buf[MAXPATHLEN + 1]; | 111 | char buf[PATH_MAX + 1]; |
116 | int fd; | 112 | int fd; |
117 | 113 | ||
118 | (void)memset(buf, 'x', sizeof(buf)); | 114 | (void)memset(buf, 'x', sizeof(buf)); |
diff --git a/src/regress/lib/libc/sys/t_minherit.c b/src/regress/lib/libc/sys/t_minherit.c index dd9ddf1d1e..578092352c 100644 --- a/src/regress/lib/libc/sys/t_minherit.c +++ b/src/regress/lib/libc/sys/t_minherit.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_minherit.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_minherit.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_minherit.c,v 1.1 2014/07/18 12:34:52 christos Exp $ */ | 2 | /* $NetBSD: t_minherit.c,v 1.1 2014/07/18 12:34:52 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -31,10 +31,6 @@ | |||
31 | */ | 31 | */ |
32 | #include "macros.h" | 32 | #include "macros.h" |
33 | 33 | ||
34 | #include <sys/cdefs.h> | ||
35 | __RCSID("$NetBSD: t_minherit.c,v 1.1 2014/07/18 12:34:52 christos Exp $"); | ||
36 | |||
37 | #include <sys/param.h> | ||
38 | #include <sys/mman.h> | 34 | #include <sys/mman.h> |
39 | #include <sys/sysctl.h> | 35 | #include <sys/sysctl.h> |
40 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
@@ -43,6 +39,7 @@ __RCSID("$NetBSD: t_minherit.c,v 1.1 2014/07/18 12:34:52 christos Exp $"); | |||
43 | #include <fcntl.h> | 39 | #include <fcntl.h> |
44 | #include <stdlib.h> | 40 | #include <stdlib.h> |
45 | #include <string.h> | 41 | #include <string.h> |
42 | #include <signal.h> | ||
46 | #include <unistd.h> | 43 | #include <unistd.h> |
47 | 44 | ||
48 | #include "atf-c.h" | 45 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_mkdir.c b/src/regress/lib/libc/sys/t_mkdir.c index 41df34ace9..5052bd3988 100644 --- a/src/regress/lib/libc/sys/t_mkdir.c +++ b/src/regress/lib/libc/sys/t_mkdir.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_mkdir.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_mkdir.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_mkdir.c,v 1.2 2011/10/15 07:38:31 jruoho Exp $ */ | 2 | /* $NetBSD: t_mkdir.c,v 1.2 2011/10/15 07:38:31 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,11 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __COPYRIGHT("@(#) Copyright (c) 2008\ | ||
37 | The NetBSD Foundation, inc. All rights reserved."); | ||
38 | __RCSID("$NetBSD: t_mkdir.c,v 1.2 2011/10/15 07:38:31 jruoho Exp $"); | ||
39 | |||
40 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
41 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
42 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_mkfifo.c b/src/regress/lib/libc/sys/t_mkfifo.c index 1c2fe60e3a..13cd2d1922 100644 --- a/src/regress/lib/libc/sys/t_mkfifo.c +++ b/src/regress/lib/libc/sys/t_mkfifo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_mkfifo.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ | 1 | /* $OpenBSD: t_mkfifo.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_mkfifo.c,v 1.3 2019/06/20 03:31:54 kamil Exp $ */ | 2 | /* $NetBSD: t_mkfifo.c,v 1.3 2019/06/20 03:31:54 kamil Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_mkfifo.c,v 1.3 2019/06/20 03:31:54 kamil Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
40 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_mknod.c b/src/regress/lib/libc/sys/t_mknod.c index b1e412cb68..0c8b54f85f 100644 --- a/src/regress/lib/libc/sys/t_mknod.c +++ b/src/regress/lib/libc/sys/t_mknod.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_mknod.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_mknod.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_mknod.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $ */ | 2 | /* $NetBSD: t_mknod.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_mknod.c,v 1.2 2012/03/18 07:00:52 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_mlock.c b/src/regress/lib/libc/sys/t_mlock.c index e41f52443c..865bd9e36b 100644 --- a/src/regress/lib/libc/sys/t_mlock.c +++ b/src/regress/lib/libc/sys/t_mlock.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_mlock.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_mlock.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_mlock.c,v 1.8 2020/01/24 08:45:16 skrll Exp $ */ | 2 | /* $NetBSD: t_mlock.c,v 1.8 2020/01/24 08:45:16 skrll Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_mlock.c,v 1.8 2020/01/24 08:45:16 skrll Exp $"); | ||
37 | |||
38 | #include <sys/mman.h> | 35 | #include <sys/mman.h> |
39 | #include <sys/resource.h> | 36 | #include <sys/resource.h> |
40 | #include <sys/sysctl.h> | 37 | #include <sys/sysctl.h> |
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> |
diff --git a/src/regress/lib/libc/sys/t_msgctl.c b/src/regress/lib/libc/sys/t_msgctl.c index 980f11ee0b..91c0eaaeaf 100644 --- a/src/regress/lib/libc/sys/t_msgctl.c +++ b/src/regress/lib/libc/sys/t_msgctl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_msgctl.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_msgctl.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_msgctl.c,v 1.7 2017/10/07 17:15:44 kre Exp $ */ | 2 | /* $NetBSD: t_msgctl.c,v 1.7 2017/10/07 17:15:44 kre Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_msgctl.c,v 1.7 2017/10/07 17:15:44 kre Exp $"); | ||
37 | |||
38 | #include <sys/msg.h> | 35 | #include <sys/msg.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | #include <sys/sysctl.h> | 37 | #include <sys/sysctl.h> |
diff --git a/src/regress/lib/libc/sys/t_msgget.c b/src/regress/lib/libc/sys/t_msgget.c index c5b7d97e15..f4d3013b6f 100644 --- a/src/regress/lib/libc/sys/t_msgget.c +++ b/src/regress/lib/libc/sys/t_msgget.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_msgget.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_msgget.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_msgget.c,v 1.3 2017/10/08 08:31:05 kre Exp $ */ | 2 | /* $NetBSD: t_msgget.c,v 1.3 2017/10/08 08:31:05 kre Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_msgget.c,v 1.3 2017/10/08 08:31:05 kre Exp $"); | ||
37 | |||
38 | #include <sys/msg.h> | 35 | #include <sys/msg.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | #include <sys/sysctl.h> | 37 | #include <sys/sysctl.h> |
@@ -45,6 +42,7 @@ __RCSID("$NetBSD: t_msgget.c,v 1.3 2017/10/08 08:31:05 kre Exp $"); | |||
45 | #include <pwd.h> | 42 | #include <pwd.h> |
46 | #include <stdio.h> | 43 | #include <stdio.h> |
47 | #include <stdlib.h> | 44 | #include <stdlib.h> |
45 | #include <signal.h> | ||
48 | #include <string.h> | 46 | #include <string.h> |
49 | #include <sysexits.h> | 47 | #include <sysexits.h> |
50 | #include <time.h> | 48 | #include <time.h> |
diff --git a/src/regress/lib/libc/sys/t_msgrcv.c b/src/regress/lib/libc/sys/t_msgrcv.c index 1fbcd41695..2e73b3d5ba 100644 --- a/src/regress/lib/libc/sys/t_msgrcv.c +++ b/src/regress/lib/libc/sys/t_msgrcv.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_msgrcv.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_msgrcv.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_msgrcv.c,v 1.5 2017/10/08 08:31:05 kre Exp $ */ | 2 | /* $NetBSD: t_msgrcv.c,v 1.5 2017/10/08 08:31:05 kre Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_msgrcv.c,v 1.5 2017/10/08 08:31:05 kre Exp $"); | ||
37 | |||
38 | #include <sys/msg.h> | 35 | #include <sys/msg.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | #include <sys/sysctl.h> | 37 | #include <sys/sysctl.h> |
diff --git a/src/regress/lib/libc/sys/t_msgsnd.c b/src/regress/lib/libc/sys/t_msgsnd.c index ab0cc87e6f..4ea2aa485e 100644 --- a/src/regress/lib/libc/sys/t_msgsnd.c +++ b/src/regress/lib/libc/sys/t_msgsnd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_msgsnd.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_msgsnd.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_msgsnd.c,v 1.4 2017/10/08 08:31:05 kre Exp $ */ | 2 | /* $NetBSD: t_msgsnd.c,v 1.4 2017/10/08 08:31:05 kre Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_msgsnd.c,v 1.4 2017/10/08 08:31:05 kre Exp $"); | ||
37 | |||
38 | #include <sys/msg.h> | 35 | #include <sys/msg.h> |
39 | #include <sys/stat.h> | 36 | #include <sys/stat.h> |
40 | #include <sys/sysctl.h> | 37 | #include <sys/sysctl.h> |
diff --git a/src/regress/lib/libc/sys/t_msync.c b/src/regress/lib/libc/sys/t_msync.c index 8e06d79d9a..acce0f664e 100644 --- a/src/regress/lib/libc/sys/t_msync.c +++ b/src/regress/lib/libc/sys/t_msync.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_msync.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_msync.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_msync.c,v 1.3 2017/01/14 20:52:42 christos Exp $ */ | 2 | /* $NetBSD: t_msync.c,v 1.3 2017/01/14 20:52:42 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_msync.c,v 1.3 2017/01/14 20:52:42 christos Exp $"); | ||
37 | |||
38 | #include <sys/mman.h> | 35 | #include <sys/mman.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_pipe.c b/src/regress/lib/libc/sys/t_pipe.c index 2fcb6d4b13..7640cc2944 100644 --- a/src/regress/lib/libc/sys/t_pipe.c +++ b/src/regress/lib/libc/sys/t_pipe.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_pipe.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_pipe.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $ */ | 2 | /* $NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -29,12 +29,6 @@ | |||
29 | 29 | ||
30 | #include "macros.h" | 30 | #include "macros.h" |
31 | 31 | ||
32 | #include <sys/cdefs.h> | ||
33 | #include <sys/cdefs.h> | ||
34 | __COPYRIGHT("@(#) Copyright (c) 2008\ | ||
35 | The NetBSD Foundation, inc. All rights reserved."); | ||
36 | __RCSID("$NetBSD: t_pipe.c,v 1.7 2020/06/26 07:50:11 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/types.h> | 32 | #include <sys/types.h> |
39 | #include <sys/wait.h> | 33 | #include <sys/wait.h> |
40 | 34 | ||
diff --git a/src/regress/lib/libc/sys/t_pipe2.c b/src/regress/lib/libc/sys/t_pipe2.c index 07991de455..173d467c38 100644 --- a/src/regress/lib/libc/sys/t_pipe2.c +++ b/src/regress/lib/libc/sys/t_pipe2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_pipe2.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_pipe2.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $ */ | 2 | /* $NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -39,9 +39,6 @@ | |||
39 | 39 | ||
40 | #include "macros.h" | 40 | #include "macros.h" |
41 | 41 | ||
42 | #include <sys/cdefs.h> | ||
43 | __RCSID("$NetBSD: t_pipe2.c,v 1.9 2017/01/13 21:19:45 christos Exp $"); | ||
44 | |||
45 | #include "atf-c.h" | 42 | #include "atf-c.h" |
46 | #include <fcntl.h> | 43 | #include <fcntl.h> |
47 | #include <unistd.h> | 44 | #include <unistd.h> |
diff --git a/src/regress/lib/libc/sys/t_ptrace.c b/src/regress/lib/libc/sys/t_ptrace.c index a48616efb2..4b87acfdd2 100644 --- a/src/regress/lib/libc/sys/t_ptrace.c +++ b/src/regress/lib/libc/sys/t_ptrace.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_ptrace.c,v 1.4 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_ptrace.c,v 1.5 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $ */ | 2 | /* $NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -29,16 +29,13 @@ | |||
29 | 29 | ||
30 | #include "macros.h" | 30 | #include "macros.h" |
31 | 31 | ||
32 | #include <sys/cdefs.h> | ||
33 | __RCSID("$NetBSD: t_ptrace.c,v 1.4 2018/05/14 12:44:40 kamil Exp $"); | ||
34 | |||
35 | #include <sys/param.h> | ||
36 | #include <sys/types.h> | 32 | #include <sys/types.h> |
37 | #include <sys/ptrace.h> | 33 | #include <sys/ptrace.h> |
38 | #include <sys/stat.h> | 34 | #include <sys/stat.h> |
39 | #include <sys/sysctl.h> | 35 | #include <sys/sysctl.h> |
40 | #include <err.h> | 36 | #include <err.h> |
41 | #include <errno.h> | 37 | #include <errno.h> |
38 | #include <limits.h> | ||
42 | #include <unistd.h> | 39 | #include <unistd.h> |
43 | 40 | ||
44 | #include "atf-c.h" | 41 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_revoke.c b/src/regress/lib/libc/sys/t_revoke.c index 7640c2d871..d330b8832a 100644 --- a/src/regress/lib/libc/sys/t_revoke.c +++ b/src/regress/lib/libc/sys/t_revoke.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_revoke.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_revoke.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_revoke.c,v 1.2 2017/01/13 21:15:57 christos Exp $ */ | 2 | /* $NetBSD: t_revoke.c,v 1.2 2017/01/13 21:15:57 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_revoke.c,v 1.2 2017/01/13 21:15:57 christos Exp $"); | ||
37 | |||
38 | #include <sys/resource.h> | 35 | #include <sys/resource.h> |
39 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
40 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_sendrecv.c b/src/regress/lib/libc/sys/t_sendrecv.c index 4b62505c28..ae6425f40d 100644 --- a/src/regress/lib/libc/sys/t_sendrecv.c +++ b/src/regress/lib/libc/sys/t_sendrecv.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_sendrecv.c,v 1.2 2021/05/31 16:56:27 bluhm Exp $ */ | 1 | /* $OpenBSD: t_sendrecv.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_sendrecv.c,v 1.8 2021/03/28 17:30:01 christos Exp $ */ | 2 | /* $NetBSD: t_sendrecv.c,v 1.8 2021/03/28 17:30:01 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_sendrecv.c,v 1.8 2021/03/28 17:30:01 christos Exp $"); | ||
37 | |||
38 | #include "atf-c.h" | 35 | #include "atf-c.h" |
39 | #include <sys/types.h> | 36 | #include <sys/types.h> |
40 | #include <sys/socket.h> | 37 | #include <sys/socket.h> |
diff --git a/src/regress/lib/libc/sys/t_setrlimit.c b/src/regress/lib/libc/sys/t_setrlimit.c index d72ec5216d..c9c64d42f0 100644 --- a/src/regress/lib/libc/sys/t_setrlimit.c +++ b/src/regress/lib/libc/sys/t_setrlimit.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_setrlimit.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_setrlimit.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $ */ | 2 | /* $NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -31,9 +31,6 @@ | |||
31 | */ | 31 | */ |
32 | #include "macros.h" | 32 | #include "macros.h" |
33 | 33 | ||
34 | #include <sys/cdefs.h> | ||
35 | __RCSID("$NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $"); | ||
36 | |||
37 | #include <sys/resource.h> | 34 | #include <sys/resource.h> |
38 | #include <sys/mman.h> | 35 | #include <sys/mman.h> |
39 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
diff --git a/src/regress/lib/libc/sys/t_setuid.c b/src/regress/lib/libc/sys/t_setuid.c index 7d3bd1986b..6924041390 100644 --- a/src/regress/lib/libc/sys/t_setuid.c +++ b/src/regress/lib/libc/sys/t_setuid.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_setuid.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_setuid.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_setuid.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $ */ | 2 | /* $NetBSD: t_setuid.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_setuid.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $"); | ||
37 | |||
38 | #include <sys/wait.h> | 35 | #include <sys/wait.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_sigaction.c b/src/regress/lib/libc/sys/t_sigaction.c index 21c793d74a..4254e1fece 100644 --- a/src/regress/lib/libc/sys/t_sigaction.c +++ b/src/regress/lib/libc/sys/t_sigaction.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_sigaction.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_sigaction.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_sigaction.c,v 1.5 2017/01/13 21:30:41 christos Exp $ */ | 2 | /* $NetBSD: t_sigaction.c,v 1.5 2017/01/13 21:30:41 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -29,11 +29,6 @@ | |||
29 | 29 | ||
30 | #include "macros.h" | 30 | #include "macros.h" |
31 | 31 | ||
32 | #include <sys/cdefs.h> | ||
33 | __COPYRIGHT("@(#) Copyright (c) 2010\ | ||
34 | The NetBSD Foundation, inc. All rights reserved."); | ||
35 | __RCSID("$NetBSD: t_sigaction.c,v 1.5 2017/01/13 21:30:41 christos Exp $"); | ||
36 | |||
37 | #include <sys/wait.h> | 32 | #include <sys/wait.h> |
38 | 33 | ||
39 | #include <signal.h> | 34 | #include <signal.h> |
diff --git a/src/regress/lib/libc/sys/t_sigaltstack.c b/src/regress/lib/libc/sys/t_sigaltstack.c index ac02650296..b02063bf2d 100644 --- a/src/regress/lib/libc/sys/t_sigaltstack.c +++ b/src/regress/lib/libc/sys/t_sigaltstack.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_sigaltstack.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_sigaltstack.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_sigaltstack.c,v 1.2 2020/05/01 21:35:30 christos Exp $ */ | 2 | /* $NetBSD: t_sigaltstack.c,v 1.2 2020/05/01 21:35:30 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -28,9 +28,6 @@ | |||
28 | */ | 28 | */ |
29 | #include "macros.h" | 29 | #include "macros.h" |
30 | 30 | ||
31 | #include <sys/cdefs.h> | ||
32 | __RCSID("$NetBSD: t_sigaltstack.c,v 1.2 2020/05/01 21:35:30 christos Exp $"); | ||
33 | |||
34 | #include <signal.h> | 31 | #include <signal.h> |
35 | #include <stdbool.h> | 32 | #include <stdbool.h> |
36 | 33 | ||
diff --git a/src/regress/lib/libc/sys/t_socketpair.c b/src/regress/lib/libc/sys/t_socketpair.c index 076d2fa057..e24a166161 100644 --- a/src/regress/lib/libc/sys/t_socketpair.c +++ b/src/regress/lib/libc/sys/t_socketpair.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_socketpair.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_socketpair.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_socketpair.c,v 1.2 2017/01/13 20:04:52 christos Exp $ */ | 2 | /* $NetBSD: t_socketpair.c,v 1.2 2017/01/13 20:04:52 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -39,9 +39,6 @@ | |||
39 | 39 | ||
40 | #include "macros.h" | 40 | #include "macros.h" |
41 | 41 | ||
42 | #include <sys/cdefs.h> | ||
43 | __RCSID("$NetBSD: t_socketpair.c,v 1.2 2017/01/13 20:04:52 christos Exp $"); | ||
44 | |||
45 | #include "atf-c.h" | 42 | #include "atf-c.h" |
46 | #include <fcntl.h> | 43 | #include <fcntl.h> |
47 | #include <unistd.h> | 44 | #include <unistd.h> |
diff --git a/src/regress/lib/libc/sys/t_stat.c b/src/regress/lib/libc/sys/t_stat.c index 5aadf39b99..eca93f83bd 100644 --- a/src/regress/lib/libc/sys/t_stat.c +++ b/src/regress/lib/libc/sys/t_stat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_stat.c,v 1.3 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_stat.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */ | 2 | /* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | #include <sys/socket.h> | 36 | #include <sys/socket.h> |
40 | #include <sys/types.h> | 37 | #include <sys/types.h> |
diff --git a/src/regress/lib/libc/sys/t_syscall.c b/src/regress/lib/libc/sys/t_syscall.c index 454905837f..a8e3cd1288 100644 --- a/src/regress/lib/libc/sys/t_syscall.c +++ b/src/regress/lib/libc/sys/t_syscall.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_syscall.c,v 1.3 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_syscall.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_syscall.c,v 1.4 2021/01/18 05:44:20 simonb Exp $ */ | 2 | /* $NetBSD: t_syscall.c,v 1.4 2021/01/18 05:44:20 simonb Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,10 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_syscall.c,v 1.4 2021/01/18 05:44:20 simonb Exp $"); | ||
37 | |||
38 | |||
39 | #include "atf-c.h" | 35 | #include "atf-c.h" |
40 | #include <stdio.h> | 36 | #include <stdio.h> |
41 | #include <unistd.h> | 37 | #include <unistd.h> |
diff --git a/src/regress/lib/libc/sys/t_truncate.c b/src/regress/lib/libc/sys/t_truncate.c index 7d3dedb7b8..f952efc35e 100644 --- a/src/regress/lib/libc/sys/t_truncate.c +++ b/src/regress/lib/libc/sys/t_truncate.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_truncate.c,v 1.2 2021/10/24 21:24:20 deraadt Exp $ */ | 1 | /* $OpenBSD: t_truncate.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_truncate.c,v 1.3 2017/01/13 20:03:51 christos Exp $ */ | 2 | /* $NetBSD: t_truncate.c,v 1.3 2017/01/13 20:03:51 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_truncate.c,v 1.3 2017/01/13 20:03:51 christos Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_umask.c b/src/regress/lib/libc/sys/t_umask.c index b312e8183b..53837b654e 100644 --- a/src/regress/lib/libc/sys/t_umask.c +++ b/src/regress/lib/libc/sys/t_umask.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_umask.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_umask.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_umask.c,v 1.2 2017/01/13 19:34:19 christos Exp $ */ | 2 | /* $NetBSD: t_umask.c,v 1.2 2017/01/13 19:34:19 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_umask.c,v 1.2 2017/01/13 19:34:19 christos Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | #include <sys/wait.h> | 36 | #include <sys/wait.h> |
40 | 37 | ||
diff --git a/src/regress/lib/libc/sys/t_unlink.c b/src/regress/lib/libc/sys/t_unlink.c index 9736d77593..2b1170ead7 100644 --- a/src/regress/lib/libc/sys/t_unlink.c +++ b/src/regress/lib/libc/sys/t_unlink.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_unlink.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_unlink.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_unlink.c,v 1.4 2017/01/14 20:55:26 christos Exp $ */ | 2 | /* $NetBSD: t_unlink.c,v 1.4 2017/01/14 20:55:26 christos Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "macros.h" | 33 | #include "macros.h" |
34 | 34 | ||
35 | #include <sys/cdefs.h> | ||
36 | __RCSID("$NetBSD: t_unlink.c,v 1.4 2017/01/14 20:55:26 christos Exp $"); | ||
37 | |||
38 | #include <sys/stat.h> | 35 | #include <sys/stat.h> |
39 | 36 | ||
40 | #include "atf-c.h" | 37 | #include "atf-c.h" |
diff --git a/src/regress/lib/libc/sys/t_wait_noproc.c b/src/regress/lib/libc/sys/t_wait_noproc.c index 73fc7ae035..ee3454eb70 100644 --- a/src/regress/lib/libc/sys/t_wait_noproc.c +++ b/src/regress/lib/libc/sys/t_wait_noproc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_wait_noproc.c,v 1.1 2021/09/02 12:40:44 mbuhl Exp $ */ | 1 | /* $OpenBSD: t_wait_noproc.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_wait_noproc.c,v 1.5 2016/11/09 17:50:19 kamil Exp $ */ | 2 | /* $NetBSD: t_wait_noproc.c,v 1.5 2016/11/09 17:50:19 kamil Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -29,9 +29,6 @@ | |||
29 | 29 | ||
30 | #include "macros.h" | 30 | #include "macros.h" |
31 | 31 | ||
32 | #include <sys/cdefs.h> | ||
33 | __RCSID("$NetBSD: t_wait_noproc.c,v 1.5 2016/11/09 17:50:19 kamil Exp $"); | ||
34 | |||
35 | #include <sys/wait.h> | 32 | #include <sys/wait.h> |
36 | #include <sys/resource.h> | 33 | #include <sys/resource.h> |
37 | 34 | ||
diff --git a/src/regress/lib/libc/sys/t_write.c b/src/regress/lib/libc/sys/t_write.c index 326032db71..8d01ebfba8 100644 --- a/src/regress/lib/libc/sys/t_write.c +++ b/src/regress/lib/libc/sys/t_write.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_write.c,v 1.3 2020/11/09 23:18:51 bluhm Exp $ */ | 1 | /* $OpenBSD: t_write.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $ */ | 2 | /* $NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -29,11 +29,6 @@ | |||
29 | 29 | ||
30 | #include "macros.h" | 30 | #include "macros.h" |
31 | 31 | ||
32 | #include <sys/cdefs.h> | ||
33 | __COPYRIGHT("@(#) Copyright (c) 2008\ | ||
34 | The NetBSD Foundation, inc. All rights reserved."); | ||
35 | __RCSID("$NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $"); | ||
36 | |||
37 | #include <sys/uio.h> | 32 | #include <sys/uio.h> |
38 | #include <sys/mman.h> | 33 | #include <sys/mman.h> |
39 | 34 | ||