diff options
Diffstat (limited to 'src')
50 files changed, 77 insertions, 227 deletions
diff --git a/src/regress/lib/libc/basename/basename_test.c b/src/regress/lib/libc/basename/basename_test.c index 34e138c726..7272c46b1d 100644 --- a/src/regress/lib/libc/basename/basename_test.c +++ b/src/regress/lib/libc/basename/basename_test.c | |||
@@ -4,8 +4,6 @@ | |||
4 | * Public domain. | 4 | * Public domain. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <sys/param.h> | ||
8 | |||
9 | #include <libgen.h> | 7 | #include <libgen.h> |
10 | #include <stdio.h> | 8 | #include <stdio.h> |
11 | #include <string.h> | 9 | #include <string.h> |
@@ -15,7 +13,7 @@ | |||
15 | int | 13 | int |
16 | main(void) | 14 | main(void) |
17 | { | 15 | { |
18 | char path[2 * MAXPATHLEN]; | 16 | char path[2 * PATH_MAX]; |
19 | const char *dir = "junk/"; | 17 | const char *dir = "junk/"; |
20 | const char *fname = "file.name.ext"; | 18 | const char *fname = "file.name.ext"; |
21 | char *str; | 19 | char *str; |
@@ -35,7 +33,7 @@ main(void) | |||
35 | * 1) path is NULL | 33 | * 1) path is NULL |
36 | * 2) path is the empty string | 34 | * 2) path is the empty string |
37 | * 3) path is composed entirely of slashes | 35 | * 3) path is composed entirely of slashes |
38 | * 4) the resulting name is larger than MAXPATHLEN | 36 | * 4) the resulting name is larger than PATH_MAX |
39 | * | 37 | * |
40 | * The first two cases require that a pointer | 38 | * The first two cases require that a pointer |
41 | * to the string "." be returned. | 39 | * to the string "." be returned. |
@@ -58,7 +56,7 @@ main(void) | |||
58 | goto fail; | 56 | goto fail; |
59 | 57 | ||
60 | /* Case 3 */ | 58 | /* Case 3 */ |
61 | for (i = 0; i < MAXPATHLEN - 1; i++) | 59 | for (i = 0; i < PATH_MAX - 1; i++) |
62 | strlcat(path, "/", sizeof(path)); /* path cleared above */ | 60 | strlcat(path, "/", sizeof(path)); /* path cleared above */ |
63 | str = basename(path); | 61 | str = basename(path); |
64 | if (strcmp(str, "/") != 0) | 62 | if (strcmp(str, "/") != 0) |
@@ -67,7 +65,7 @@ main(void) | |||
67 | /* Case 4 */ | 65 | /* Case 4 */ |
68 | strlcpy(path, "/", sizeof(path)); | 66 | strlcpy(path, "/", sizeof(path)); |
69 | strlcat(path, dir, sizeof(path)); | 67 | strlcat(path, dir, sizeof(path)); |
70 | for (i = 0; i <= MAXPATHLEN; i += sizeof(fname)) | 68 | for (i = 0; i <= PATH_MAX; i += sizeof(fname)) |
71 | strlcat(path, fname, sizeof(path)); | 69 | strlcat(path, fname, sizeof(path)); |
72 | str = basename(path); | 70 | str = basename(path); |
73 | if (str != NULL || errno != ENAMETOOLONG) | 71 | if (str != NULL || errno != ENAMETOOLONG) |
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index b520d8db72..a3375511b0 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/regress/lib/libc/db/dbtest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dbtest.c,v 1.18 2021/10/24 21:24:20 deraadt Exp $ */ | 1 | /* $OpenBSD: dbtest.c,v 1.19 2021/12/13 16:56:48 deraadt Exp $ */ |
2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ | 2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,7 +30,6 @@ | |||
30 | * SUCH DAMAGE. | 30 | * SUCH DAMAGE. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <sys/param.h> | ||
34 | #include <sys/stat.h> | 33 | #include <sys/stat.h> |
35 | 34 | ||
36 | #include <ctype.h> | 35 | #include <ctype.h> |
@@ -45,6 +44,8 @@ | |||
45 | 44 | ||
46 | #include <db.h> | 45 | #include <db.h> |
47 | 46 | ||
47 | #define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) | ||
48 | |||
48 | enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; | 49 | enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; |
49 | 50 | ||
50 | void compare(DBT *, DBT *); | 51 | void compare(DBT *, DBT *); |
@@ -340,7 +341,7 @@ compare(db1, db2) | |||
340 | printf("compare failed: key->data len %lu != data len %lu\n", | 341 | printf("compare failed: key->data len %lu != data len %lu\n", |
341 | db1->size, db2->size); | 342 | db1->size, db2->size); |
342 | 343 | ||
343 | len = MIN(db1->size, db2->size); | 344 | len = MINIMUM(db1->size, db2->size); |
344 | for (p1 = db1->data, p2 = db2->data; len--;) | 345 | for (p1 = db1->data, p2 = db2->data; len--;) |
345 | if (*p1++ != *p2++) { | 346 | if (*p1++ != *p2++) { |
346 | printf("compare failed at offset %ld\n", | 347 | printf("compare failed at offset %ld\n", |
@@ -371,7 +372,7 @@ get(dbp, kp) | |||
371 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); | 372 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); |
372 | else | 373 | else |
373 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, | 374 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, |
374 | MIN((int)kp->size, 20), kp->data, NOSUCHKEY); | 375 | MINIMUM((int)kp->size, 20), kp->data, NOSUCHKEY); |
375 | #undef NOSUCHKEY | 376 | #undef NOSUCHKEY |
376 | break; | 377 | break; |
377 | } | 378 | } |
@@ -428,7 +429,7 @@ rem(dbp, kp) | |||
428 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); | 429 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); |
429 | else if (flags != R_CURSOR) | 430 | else if (flags != R_CURSOR) |
430 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, | 431 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, |
431 | MIN((int)kp->size, 20), kp->data, NOSUCHKEY); | 432 | MINIMUM((int)kp->size, 20), kp->data, NOSUCHKEY); |
432 | else | 433 | else |
433 | (void)fprintf(stderr, | 434 | (void)fprintf(stderr, |
434 | "%lu: rem of cursor failed\n", lineno); | 435 | "%lu: rem of cursor failed\n", lineno); |
@@ -472,7 +473,7 @@ seq(dbp, kp) | |||
472 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); | 473 | (void)write(ofd, NOSUCHKEY, sizeof(NOSUCHKEY) - 1); |
473 | else if (flags == R_CURSOR) | 474 | else if (flags == R_CURSOR) |
474 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, | 475 | (void)fprintf(stderr, "%lu: %.*s: %s", lineno, |
475 | MIN((int)kp->size, 20), kp->data, NOSUCHKEY); | 476 | MINIMUM((int)kp->size, 20), kp->data, NOSUCHKEY); |
476 | else | 477 | else |
477 | (void)fprintf(stderr, | 478 | (void)fprintf(stderr, |
478 | "%lu: seq (%s) failed\n", lineno, sflags(flags)); | 479 | "%lu: seq (%s) failed\n", lineno, sflags(flags)); |
diff --git a/src/regress/lib/libc/dirname/dirname_test.c b/src/regress/lib/libc/dirname/dirname_test.c index 27d32b6eda..250b4def66 100644 --- a/src/regress/lib/libc/dirname/dirname_test.c +++ b/src/regress/lib/libc/dirname/dirname_test.c | |||
@@ -4,8 +4,6 @@ | |||
4 | * Public domain. | 4 | * Public domain. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <sys/param.h> | ||
8 | |||
9 | #include <libgen.h> | 7 | #include <libgen.h> |
10 | #include <stdio.h> | 8 | #include <stdio.h> |
11 | #include <string.h> | 9 | #include <string.h> |
@@ -16,7 +14,7 @@ | |||
16 | int | 14 | int |
17 | main(void) | 15 | main(void) |
18 | { | 16 | { |
19 | char path[2 * MAXPATHLEN]; | 17 | char path[2 * PATH_MAX]; |
20 | char dname[128]; | 18 | char dname[128]; |
21 | const char *dir = "junk"; | 19 | const char *dir = "junk"; |
22 | const char *fname = "/file.name.ext"; | 20 | const char *fname = "/file.name.ext"; |
@@ -39,7 +37,7 @@ main(void) | |||
39 | * 1) path is NULL | 37 | * 1) path is NULL |
40 | * 2) path is the empty string | 38 | * 2) path is the empty string |
41 | * 3) path is composed entirely of slashes | 39 | * 3) path is composed entirely of slashes |
42 | * 4) the resulting name is larger than MAXPATHLEN | 40 | * 4) the resulting name is larger than PATH_MAX |
43 | * | 41 | * |
44 | * The first two cases require that a pointer | 42 | * The first two cases require that a pointer |
45 | * to the string "." be returned. | 43 | * to the string "." be returned. |
@@ -62,7 +60,7 @@ main(void) | |||
62 | errx(1, "2: dirname(%s) = %s != .", path, str); | 60 | errx(1, "2: dirname(%s) = %s != .", path, str); |
63 | 61 | ||
64 | /* Case 3 */ | 62 | /* Case 3 */ |
65 | for (i = 0; i < MAXPATHLEN - 1; i++) | 63 | for (i = 0; i < PATH_MAX - 1; i++) |
66 | strlcat(path, "/", sizeof(path)); /* path cleared above */ | 64 | strlcat(path, "/", sizeof(path)); /* path cleared above */ |
67 | str = dirname(path); | 65 | str = dirname(path); |
68 | if (strcmp(str, "/") != 0) | 66 | if (strcmp(str, "/") != 0) |
@@ -70,7 +68,7 @@ main(void) | |||
70 | 68 | ||
71 | /* Case 4 */ | 69 | /* Case 4 */ |
72 | strlcpy(path, "/", sizeof(path)); /* reset path */ | 70 | strlcpy(path, "/", sizeof(path)); /* reset path */ |
73 | for (i = 0; i <= MAXPATHLEN; i += strlen(dir)) | 71 | for (i = 0; i <= PATH_MAX; i += strlen(dir)) |
74 | strlcat(path, dir, sizeof(path)); | 72 | strlcat(path, dir, sizeof(path)); |
75 | strlcat(path, fname, sizeof(path)); | 73 | strlcat(path, fname, sizeof(path)); |
76 | str = dirname(path); | 74 | str = dirname(path); |
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; |
diff --git a/src/regress/lib/libc/popen/popen.c b/src/regress/lib/libc/popen/popen.c index 916cb71b03..2e081de584 100644 --- a/src/regress/lib/libc/popen/popen.c +++ b/src/regress/lib/libc/popen/popen.c | |||
@@ -29,13 +29,13 @@ | |||
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include <sys/param.h> | ||
33 | 32 | ||
34 | #include <err.h> | 33 | #include <err.h> |
35 | #include <errno.h> | 34 | #include <errno.h> |
36 | #include <paths.h> | 35 | #include <paths.h> |
37 | #include <stdio.h> | 36 | #include <stdio.h> |
38 | #include <stdlib.h> | 37 | #include <stdlib.h> |
38 | #include <limits.h> | ||
39 | #include <time.h> | 39 | #include <time.h> |
40 | #include <unistd.h> | 40 | #include <unistd.h> |
41 | 41 | ||
@@ -47,7 +47,7 @@ | |||
47 | int | 47 | int |
48 | main(int argc, char **argv) | 48 | main(int argc, char **argv) |
49 | { | 49 | { |
50 | char *buffer, command[MAXPATHLEN]; | 50 | char *buffer, command[PATH_MAX]; |
51 | int index, in; | 51 | int index, in; |
52 | FILE *pipe; | 52 | FILE *pipe; |
53 | 53 | ||
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 | ||