diff options
author | David Krause <david@cvs.openbsd.org> | 2003-08-02 01:24:38 +0000 |
---|---|---|
committer | David Krause <david@cvs.openbsd.org> | 2003-08-02 01:24:38 +0000 |
commit | bb9c508606ec678987fdff045b51692b9a94fff4 (patch) | |
tree | dfb3b2df3f049059ee009ffa0ffcaa281ffa8b7b /regress | |
parent | 23c48bb9313c4f573d08c508b80f786d2436fa3f (diff) |
add missing includes
ok deraadt@ tedu@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/csu/dtors/dtors.c | 3 | ||||
-rw-r--r-- | regress/lib/libc/alloca/alloca.c | 3 | ||||
-rw-r--r-- | regress/lib/libc/popen/popen.c | 1 | ||||
-rw-r--r-- | regress/sys/arch/i386/ldt/testldt.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/minherit/minherit.c | 5 | ||||
-rw-r--r-- | regress/sys/kern/mmap3/mmaptest.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/nanosleep/nanosleep.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/rfork/madness/madness.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/rfork/rfmem-stack/rfmem-stack.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/rfork/rfmem/rfmem.c | 3 | ||||
-rw-r--r-- | regress/sys/kern/signal/siginfo_addr/siginfo_addr.c | 1 |
11 files changed, 21 insertions, 10 deletions
diff --git a/regress/lib/csu/dtors/dtors.c b/regress/lib/csu/dtors/dtors.c index 99b0ef86193..13593e160e8 100644 --- a/regress/lib/csu/dtors/dtors.c +++ b/regress/lib/csu/dtors/dtors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dtors.c,v 1.3 2002/02/18 11:09:48 art Exp $ */ +/* $OpenBSD: dtors.c,v 1.4 2003/08/02 01:24:35 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain. */ @@ -9,6 +9,7 @@ #include <stdio.h> #include <string.h> #include <err.h> +#include <unistd.h> void zap(void) __attribute__((destructor)); diff --git a/regress/lib/libc/alloca/alloca.c b/regress/lib/libc/alloca/alloca.c index 1c264292933..14ef87b29ad 100644 --- a/regress/lib/libc/alloca/alloca.c +++ b/regress/lib/libc/alloca/alloca.c @@ -1,8 +1,9 @@ -/* $OpenBSD: alloca.c,v 1.4 2003/07/31 21:48:02 deraadt Exp $ */ +/* $OpenBSD: alloca.c,v 1.5 2003/08/02 01:24:36 david Exp $ */ /* Written by Michael Shalayeff, 2003, Public Domain. */ #include <stdio.h> +#include <string.h> int main(int argc, char *argv[]) diff --git a/regress/lib/libc/popen/popen.c b/regress/lib/libc/popen/popen.c index 491c5becea1..95ea67f31bf 100644 --- a/regress/lib/libc/popen/popen.c +++ b/regress/lib/libc/popen/popen.c @@ -38,6 +38,7 @@ #include <sys/param.h> +#include <err.h> #include <errno.h> #include <paths.h> #include <stdio.h> diff --git a/regress/sys/arch/i386/ldt/testldt.c b/regress/sys/arch/i386/ldt/testldt.c index 6e8da7ed7a9..c86c8a11384 100644 --- a/regress/sys/arch/i386/ldt/testldt.c +++ b/regress/sys/arch/i386/ldt/testldt.c @@ -1,8 +1,9 @@ -/* $OpenBSD: testldt.c,v 1.6 2003/07/31 21:48:07 deraadt Exp $ */ +/* $OpenBSD: testldt.c,v 1.7 2003/08/02 01:24:36 david Exp $ */ /* $NetBSD: testldt.c,v 1.4 1995/04/20 22:42:38 cgd Exp $ */ #include <stdio.h> #include <signal.h> +#include <unistd.h> #include <sys/types.h> #include <sys/mman.h> #include <machine/segments.h> diff --git a/regress/sys/kern/minherit/minherit.c b/regress/sys/kern/minherit/minherit.c index 644a99988bc..7dd257c4d3b 100644 --- a/regress/sys/kern/minherit/minherit.c +++ b/regress/sys/kern/minherit/minherit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: minherit.c,v 1.2 2003/07/31 21:48:08 deraadt Exp $ */ +/* $OpenBSD: minherit.c,v 1.3 2003/08/02 01:24:36 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> Public Domain. */ @@ -10,6 +10,7 @@ #include <stdlib.h> #include <string.h> #include <err.h> +#include <unistd.h> #define MAGIC "inherited" @@ -60,4 +61,4 @@ main(int argc, char *argv[]) return 1; return WEXITSTATUS(status) != 0; -}
\ No newline at end of file +} diff --git a/regress/sys/kern/mmap3/mmaptest.c b/regress/sys/kern/mmap3/mmaptest.c index 0a2526e8004..19506736b72 100644 --- a/regress/sys/kern/mmap3/mmaptest.c +++ b/regress/sys/kern/mmap3/mmaptest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmaptest.c,v 1.3 2003/07/31 21:48:08 deraadt Exp $ */ +/* $OpenBSD: mmaptest.c,v 1.4 2003/08/02 01:24:36 david Exp $ */ /* * Copyright (c) 2002 Marc Espie. * @@ -30,6 +30,7 @@ #include <stdlib.h> #include <stdio.h> #include <err.h> +#include <unistd.h> /* * Check for mmap/ftruncate interaction. Specifically, ftruncate on diff --git a/regress/sys/kern/nanosleep/nanosleep.c b/regress/sys/kern/nanosleep/nanosleep.c index 2507f29c35d..d44100ab090 100644 --- a/regress/sys/kern/nanosleep/nanosleep.c +++ b/regress/sys/kern/nanosleep/nanosleep.c @@ -1,9 +1,10 @@ -/* $OpenBSD: nanosleep.c,v 1.4 2002/02/17 05:39:49 art Exp $ */ +/* $OpenBSD: nanosleep.c,v 1.5 2003/08/02 01:24:36 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain. */ #include <sys/types.h> #include <sys/time.h> +#include <sys/wait.h> #include <stdlib.h> #include <stdio.h> diff --git a/regress/sys/kern/rfork/madness/madness.c b/regress/sys/kern/rfork/madness/madness.c index d6add455644..7b1006bffa5 100644 --- a/regress/sys/kern/rfork/madness/madness.c +++ b/regress/sys/kern/rfork/madness/madness.c @@ -1,10 +1,11 @@ -/* $OpenBSD: madness.c,v 1.2 2003/07/31 21:48:09 deraadt Exp $ */ +/* $OpenBSD: madness.c,v 1.3 2003/08/02 01:24:36 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain. */ #include <sys/param.h> #include <stdio.h> #include <unistd.h> +#include <signal.h> #include <stdlib.h> #include <err.h> diff --git a/regress/sys/kern/rfork/rfmem-stack/rfmem-stack.c b/regress/sys/kern/rfork/rfmem-stack/rfmem-stack.c index a40fa871f06..29dbf7e11b4 100644 --- a/regress/sys/kern/rfork/rfmem-stack/rfmem-stack.c +++ b/regress/sys/kern/rfork/rfmem-stack/rfmem-stack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfmem-stack.c,v 1.4 2003/07/31 21:48:09 deraadt Exp $ */ +/* $OpenBSD: rfmem-stack.c,v 1.5 2003/08/02 01:24:37 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain. */ @@ -9,6 +9,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <err.h> #define MAGIC "inherited" diff --git a/regress/sys/kern/rfork/rfmem/rfmem.c b/regress/sys/kern/rfork/rfmem/rfmem.c index b6b38fc2861..84ae38d1f62 100644 --- a/regress/sys/kern/rfork/rfmem/rfmem.c +++ b/regress/sys/kern/rfork/rfmem/rfmem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfmem.c,v 1.3 2003/07/31 21:48:09 deraadt Exp $ */ +/* $OpenBSD: rfmem.c,v 1.4 2003/08/02 01:24:37 david Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain. */ @@ -10,6 +10,7 @@ #include <stdlib.h> #include <string.h> #include <err.h> +#include <unistd.h> #define MAGIC "inherited" diff --git a/regress/sys/kern/signal/siginfo_addr/siginfo_addr.c b/regress/sys/kern/signal/siginfo_addr/siginfo_addr.c index fed4d868751..473d22cb0dd 100644 --- a/regress/sys/kern/signal/siginfo_addr/siginfo_addr.c +++ b/regress/sys/kern/signal/siginfo_addr/siginfo_addr.c @@ -1,5 +1,6 @@ #include <sys/types.h> #include <sys/signal.h> +#include <signal.h> #include <stdio.h> #include <unistd.h> #include <string.h> |