summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/lib/csu/dtors/dtors.c3
-rw-r--r--regress/lib/libc/alloca/alloca.c3
-rw-r--r--regress/lib/libc/atexit/atexit_test.c3
-rw-r--r--regress/lib/libc/getaddrinfo/gaitest.c3
-rw-r--r--regress/lib/libc/ieeefp/except/except.c3
-rw-r--r--regress/lib/libc/setjmp/jmptest.c3
-rw-r--r--regress/lib/libc/sprintf/sprintf_test.c3
-rw-r--r--regress/lib/libm/rint/rint.c4
-rw-r--r--regress/lib/libm/toint/toint.c4
-rw-r--r--regress/lib/libpthread/include/test.h3
-rw-r--r--regress/sys/arch/i386/ldt/testldt.c3
-rw-r--r--regress/sys/crypto/auth/md5.c3
-rw-r--r--regress/sys/kern/execve/doexec.c3
-rw-r--r--regress/sys/kern/execve/tests/goodaout.c3
-rw-r--r--regress/sys/kern/exit/exit.c3
-rw-r--r--regress/sys/kern/mmap/mmaptest.c3
-rw-r--r--regress/sys/kern/pwrite/pwrite.c3
-rw-r--r--regress/sys/kern/pwritev/pwritev.c3
-rw-r--r--regress/sys/kern/rcvtimeo/rcvtimeo.c3
19 files changed, 40 insertions, 19 deletions
diff --git a/regress/lib/csu/dtors/dtors.c b/regress/lib/csu/dtors/dtors.c
index 13593e160e8..f0787ac39b8 100644
--- a/regress/lib/csu/dtors/dtors.c
+++ b/regress/lib/csu/dtors/dtors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dtors.c,v 1.4 2003/08/02 01:24:35 david Exp $ */
+/* $OpenBSD: dtors.c,v 1.5 2003/09/02 23:52:16 david Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain.
*/
@@ -7,6 +7,7 @@
#include <sys/wait.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <unistd.h>
diff --git a/regress/lib/libc/alloca/alloca.c b/regress/lib/libc/alloca/alloca.c
index 14ef87b29ad..d9573e2f54d 100644
--- a/regress/lib/libc/alloca/alloca.c
+++ b/regress/lib/libc/alloca/alloca.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: alloca.c,v 1.5 2003/08/02 01:24:36 david Exp $ */
+/* $OpenBSD: alloca.c,v 1.6 2003/09/02 23:52:16 david Exp $ */
/* Written by Michael Shalayeff, 2003, Public Domain. */
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
int
diff --git a/regress/lib/libc/atexit/atexit_test.c b/regress/lib/libc/atexit/atexit_test.c
index c30b9dff77a..efa2274168b 100644
--- a/regress/lib/libc/atexit/atexit_test.c
+++ b/regress/lib/libc/atexit/atexit_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atexit_test.c,v 1.4 2003/07/31 21:48:02 deraadt Exp $ */
+/* $OpenBSD: atexit_test.c,v 1.5 2003/09/02 23:52:16 david Exp $ */
/*
* Copyright (c) 2002 Daniel Hartmeier
@@ -36,6 +36,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include "stdlib/atexit.h"
diff --git a/regress/lib/libc/getaddrinfo/gaitest.c b/regress/lib/libc/getaddrinfo/gaitest.c
index edd56288f5b..a54681b1573 100644
--- a/regress/lib/libc/getaddrinfo/gaitest.c
+++ b/regress/lib/libc/getaddrinfo/gaitest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gaitest.c,v 1.2 2002/08/09 20:26:44 jsyn Exp $ */
+/* $OpenBSD: gaitest.c,v 1.3 2003/09/02 23:52:16 david Exp $ */
/* $NetBSD: gaitest.c,v 1.3 2002/07/05 15:47:43 itojun Exp $ */
/*
@@ -37,6 +37,7 @@
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
struct addrinfo ai;
diff --git a/regress/lib/libc/ieeefp/except/except.c b/regress/lib/libc/ieeefp/except/except.c
index 7ab8fc4cb21..7df9abea070 100644
--- a/regress/lib/libc/ieeefp/except/except.c
+++ b/regress/lib/libc/ieeefp/except/except.c
@@ -1,6 +1,7 @@
-/* $OpenBSD: except.c,v 1.4 2003/07/31 21:48:03 deraadt Exp $ */
+/* $OpenBSD: except.c,v 1.5 2003/09/02 23:52:16 david Exp $ */
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
#include <assert.h>
#include <ieeefp.h>
diff --git a/regress/lib/libc/setjmp/jmptest.c b/regress/lib/libc/setjmp/jmptest.c
index 86b0e6ae938..9512c9ee341 100644
--- a/regress/lib/libc/setjmp/jmptest.c
+++ b/regress/lib/libc/setjmp/jmptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jmptest.c,v 1.6 2003/07/31 21:48:03 deraadt Exp $ */
+/* $OpenBSD: jmptest.c,v 1.7 2003/09/02 23:52:16 david Exp $ */
/* $NetBSD: jmptest.c,v 1.2 1995/01/01 20:55:35 jtc Exp $ */
/*
@@ -38,6 +38,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#if (TEST_SETJMP + TEST_U_SETJMP + TEST_SIGSETJMP) != 1
diff --git a/regress/lib/libc/sprintf/sprintf_test.c b/regress/lib/libc/sprintf/sprintf_test.c
index 1387b2970e4..76dd42c9299 100644
--- a/regress/lib/libc/sprintf/sprintf_test.c
+++ b/regress/lib/libc/sprintf/sprintf_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sprintf_test.c,v 1.1 2003/05/15 04:23:49 deraadt Exp $ */
+/* $OpenBSD: sprintf_test.c,v 1.2 2003/09/02 23:52:16 david Exp $ */
/*
* Copyright (c) 2003 Theo de Raadt
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
char correct[] =
diff --git a/regress/lib/libm/rint/rint.c b/regress/lib/libm/rint/rint.c
index e968426f778..70388a228a4 100644
--- a/regress/lib/libm/rint/rint.c
+++ b/regress/lib/libm/rint/rint.c
@@ -1,8 +1,10 @@
-/* $OpenBSD: rint.c,v 1.3 2003/07/31 21:48:04 deraadt Exp $ */
+/* $OpenBSD: rint.c,v 1.4 2003/09/02 23:52:17 david Exp $ */
/* Written by Michael Shalayeff, 2003, Public domain. */
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <math.h>
diff --git a/regress/lib/libm/toint/toint.c b/regress/lib/libm/toint/toint.c
index 7a4c60e7c2b..41f9c3a3cc1 100644
--- a/regress/lib/libm/toint/toint.c
+++ b/regress/lib/libm/toint/toint.c
@@ -1,8 +1,10 @@
-/* $OpenBSD: toint.c,v 1.3 2003/07/31 21:48:04 deraadt Exp $ */
+/* $OpenBSD: toint.c,v 1.4 2003/09/02 23:52:17 david Exp $ */
/* Written by Michael Shalayeff, 2003, Public domain. */
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <unistd.h>
diff --git a/regress/lib/libpthread/include/test.h b/regress/lib/libpthread/include/test.h
index 58fdc8fb554..61afc45be4b 100644
--- a/regress/lib/libpthread/include/test.h
+++ b/regress/lib/libpthread/include/test.h
@@ -1,9 +1,10 @@
-/* $OpenBSD: test.h,v 1.4 2002/02/17 19:42:27 millert Exp $ */
+/* $OpenBSD: test.h,v 1.5 2003/09/02 23:52:17 david Exp $ */
#ifndef _h_test_
#define _h_test_
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
diff --git a/regress/sys/arch/i386/ldt/testldt.c b/regress/sys/arch/i386/ldt/testldt.c
index c86c8a11384..7d5865eda2e 100644
--- a/regress/sys/arch/i386/ldt/testldt.c
+++ b/regress/sys/arch/i386/ldt/testldt.c
@@ -1,7 +1,8 @@
-/* $OpenBSD: testldt.c,v 1.7 2003/08/02 01:24:36 david Exp $ */
+/* $OpenBSD: testldt.c,v 1.8 2003/09/02 23:52:17 david Exp $ */
/* $NetBSD: testldt.c,v 1.4 1995/04/20 22:42:38 cgd Exp $ */
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/regress/sys/crypto/auth/md5.c b/regress/sys/crypto/auth/md5.c
index 83207b64d83..fa617cf17d9 100644
--- a/regress/sys/crypto/auth/md5.c
+++ b/regress/sys/crypto/auth/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.4 2003/07/31 21:48:07 deraadt Exp $ */
+/* $OpenBSD: md5.c,v 1.5 2003/09/02 23:52:17 david Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserverd.
@@ -32,6 +32,7 @@
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/regress/sys/kern/execve/doexec.c b/regress/sys/kern/execve/doexec.c
index a331ed52481..c22d49ae1bc 100644
--- a/regress/sys/kern/execve/doexec.c
+++ b/regress/sys/kern/execve/doexec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doexec.c,v 1.4 2003/07/31 21:48:08 deraadt Exp $ */
+/* $OpenBSD: doexec.c,v 1.5 2003/09/02 23:52:17 david Exp $ */
/* $NetBSD: doexec.c,v 1.3 1995/04/20 22:43:13 cgd Exp $ */
/*
@@ -33,6 +33,7 @@
#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/regress/sys/kern/execve/tests/goodaout.c b/regress/sys/kern/execve/tests/goodaout.c
index 644d8d36777..68bb56223e2 100644
--- a/regress/sys/kern/execve/tests/goodaout.c
+++ b/regress/sys/kern/execve/tests/goodaout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: goodaout.c,v 1.3 2003/07/31 21:48:08 deraadt Exp $ */
+/* $OpenBSD: goodaout.c,v 1.4 2003/09/02 23:52:17 david Exp $ */
/* $NetBSD: goodaout.c,v 1.3 1995/04/20 22:44:20 cgd Exp $ */
/*
@@ -32,6 +32,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
int
diff --git a/regress/sys/kern/exit/exit.c b/regress/sys/kern/exit/exit.c
index 485a8d6be47..79e52829125 100644
--- a/regress/sys/kern/exit/exit.c
+++ b/regress/sys/kern/exit/exit.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: exit.c,v 1.2 2003/07/31 21:48:08 deraadt Exp $ */
+/* $OpenBSD: exit.c,v 1.3 2003/09/02 23:52:17 david Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain.
*/
#include <stdlib.h>
+#include <unistd.h>
int
main(int argc, char *argv[])
diff --git a/regress/sys/kern/mmap/mmaptest.c b/regress/sys/kern/mmap/mmaptest.c
index 3ee8944ee9d..0fb8f6dc138 100644
--- a/regress/sys/kern/mmap/mmaptest.c
+++ b/regress/sys/kern/mmap/mmaptest.c
@@ -1,4 +1,4 @@
-/* $Id: mmaptest.c,v 1.2 2003/06/04 04:11:36 deraadt Exp $ */
+/* $Id: mmaptest.c,v 1.3 2003/09/02 23:52:17 david Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist. All rights reserverd.
@@ -31,6 +31,7 @@
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#define TEMPL "test-fileXXXXXXXXXX"
diff --git a/regress/sys/kern/pwrite/pwrite.c b/regress/sys/kern/pwrite/pwrite.c
index a27d0f75094..80ba0143ecf 100644
--- a/regress/sys/kern/pwrite/pwrite.c
+++ b/regress/sys/kern/pwrite/pwrite.c
@@ -1,9 +1,10 @@
-/* $OpenBSD: pwrite.c,v 1.2 2003/07/31 21:48:09 deraadt Exp $ */
+/* $OpenBSD: pwrite.c,v 1.3 2003/09/02 23:52:17 david Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain.
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <err.h>
#include <fcntl.h>
diff --git a/regress/sys/kern/pwritev/pwritev.c b/regress/sys/kern/pwritev/pwritev.c
index 31871565a46..6012869cc7d 100644
--- a/regress/sys/kern/pwritev/pwritev.c
+++ b/regress/sys/kern/pwritev/pwritev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwritev.c,v 1.2 2003/07/31 21:48:09 deraadt Exp $ */
+/* $OpenBSD: pwritev.c,v 1.3 2003/09/02 23:52:17 david Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain.
*/
@@ -6,6 +6,7 @@
#include <sys/uio.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <err.h>
#include <fcntl.h>
diff --git a/regress/sys/kern/rcvtimeo/rcvtimeo.c b/regress/sys/kern/rcvtimeo/rcvtimeo.c
index c8ddab4d4de..2dcb00fe947 100644
--- a/regress/sys/kern/rcvtimeo/rcvtimeo.c
+++ b/regress/sys/kern/rcvtimeo/rcvtimeo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcvtimeo.c,v 1.3 2003/07/31 21:48:09 deraadt Exp $ */
+/* $OpenBSD: rcvtimeo.c,v 1.4 2003/09/02 23:52:17 david Exp $ */
/* Written by Michael Shalayeff, 2002, Public Domain */
@@ -10,6 +10,7 @@
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <err.h>