diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2001-09-20 16:43:17 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2001-09-20 16:43:17 +0000 |
commit | 6f37323ba7b6bb6a6b9ec40c4c94eb3706bb16a7 (patch) | |
tree | 2e8240ce28e38ebfbd56fba15360eb491d7b9af6 /regress/lib | |
parent | bc86ffda7a6a90b9c49f5428131dac2e1fe2f0b1 (diff) |
per man page and gcc 3.0.1, exit requires prototype from stdlib.h
Diffstat (limited to 'regress/lib')
36 files changed, 72 insertions, 36 deletions
diff --git a/regress/lib/libc_r/cancel/cancel.c b/regress/lib/libc_r/cancel/cancel.c index be344ba7731..13db747e45d 100644 --- a/regress/lib/libc_r/cancel/cancel.c +++ b/regress/lib/libc_r/cancel/cancel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cancel.c,v 1.2 2001/08/23 04:26:05 fgsch Exp $ */ +/* $OpenBSD: cancel.c,v 1.3 2001/09/20 16:43:15 todd Exp $ */ /* David Leonard <d@openbsd.org>, 1999. Public Domain. */ #include <pthread.h> @@ -6,6 +6,7 @@ #include <unistd.h> #include <stdio.h> #include <fcntl.h> +#include <stdlib.h> #include "test.h" static pthread_cond_t cond; diff --git a/regress/lib/libc_r/close/close.c b/regress/lib/libc_r/close/close.c index 18b64b64f0e..2e21ecf1e47 100644 --- a/regress/lib/libc_r/close/close.c +++ b/regress/lib/libc_r/close/close.c @@ -1,4 +1,4 @@ -/* $OpenBSD: close.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: close.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -41,6 +41,7 @@ #include <pthread.h> #include <stdio.h> #include <unistd.h> +#include <stdlib.h> #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> diff --git a/regress/lib/libc_r/cwd/cwd.c b/regress/lib/libc_r/cwd/cwd.c index 2480a825ef4..925e337a728 100644 --- a/regress/lib/libc_r/cwd/cwd.c +++ b/regress/lib/libc_r/cwd/cwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cwd.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: cwd.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -38,6 +38,7 @@ #include <stdio.h> #include <sys/param.h> +#include <stdlib.h> #include <unistd.h> #include "test.h" diff --git a/regress/lib/libc_r/fork/fork.c b/regress/lib/libc_r/fork/fork.c index cd227a70ce8..b560cf20fa8 100644 --- a/regress/lib/libc_r/fork/fork.c +++ b/regress/lib/libc_r/fork/fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fork.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */ +/* $OpenBSD: fork.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <fcntl.h> #include <sys/types.h> #include <unistd.h> +#include <stdlib.h> #include <signal.h> #include <sys/wait.h> #include "test.h" diff --git a/regress/lib/libc_r/netdb/netdb.c b/regress/lib/libc_r/netdb/netdb.c index cf4d59e0560..9f764d87827 100644 --- a/regress/lib/libc_r/netdb/netdb.c +++ b/regress/lib/libc_r/netdb/netdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */ +/* $OpenBSD: netdb.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -46,6 +46,7 @@ #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" static void test_serv() diff --git a/regress/lib/libc_r/poll/poll.c b/regress/lib/libc_r/poll/poll.c index fc0d9422cce..3ed5b52d01f 100644 --- a/regress/lib/libc_r/poll/poll.c +++ b/regress/lib/libc_r/poll/poll.c @@ -1,4 +1,4 @@ -/* $OpenBSD: poll.c,v 1.2 2001/08/23 04:26:05 fgsch Exp $ */ +/* $OpenBSD: poll.c,v 1.3 2001/09/20 16:43:15 todd Exp $ */ /* David Leonard <d@openbsd.org>, 2001. Public Domain. */ #include <pthread.h> @@ -6,6 +6,7 @@ #include <poll.h> #include <paths.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" diff --git a/regress/lib/libc_r/preemption/preemption.c b/regress/lib/libc_r/preemption/preemption.c index ef0829ce4f5..5224630a918 100644 --- a/regress/lib/libc_r/preemption/preemption.c +++ b/regress/lib/libc_r/preemption/preemption.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preemption.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: preemption.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -43,6 +43,7 @@ #include <pthread.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" void * diff --git a/regress/lib/libc_r/pthread_cond_timedwait/pthread_cond_timedwait.c b/regress/lib/libc_r/pthread_cond_timedwait/pthread_cond_timedwait.c index 3f34eb44c40..ffe3f5f63a1 100644 --- a/regress/lib/libc_r/pthread_cond_timedwait/pthread_cond_timedwait.c +++ b/regress/lib/libc_r/pthread_cond_timedwait/pthread_cond_timedwait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_cond_timedwait.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_cond_timedwait.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -45,6 +45,7 @@ #include <stdio.h> #include <errno.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; diff --git a/regress/lib/libc_r/pthread_create/pthread_create.c b/regress/lib/libc_r/pthread_create/pthread_create.c index ccc2a6c4292..9b82d0945f5 100644 --- a/regress/lib/libc_r/pthread_create/pthread_create.c +++ b/regress/lib/libc_r/pthread_create/pthread_create.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_create.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */ +/* $OpenBSD: pthread_create.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -40,6 +40,7 @@ #include <pthread.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" void* new_thread(void* arg) diff --git a/regress/lib/libc_r/pthread_join/pthread_join.c b/regress/lib/libc_r/pthread_join/pthread_join.c index a8637caa887..2bda5a4045b 100644 --- a/regress/lib/libc_r/pthread_join/pthread_join.c +++ b/regress/lib/libc_r/pthread_join/pthread_join.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_join.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_join.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <unistd.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" /* This thread yields so the creator has a live thread to wait on */ diff --git a/regress/lib/libc_r/pthread_mutex/pthread_mutex.c b/regress/lib/libc_r/pthread_mutex/pthread_mutex.c index 1375231bca2..3dd62129035 100644 --- a/regress/lib/libc_r/pthread_mutex/pthread_mutex.c +++ b/regress/lib/libc_r/pthread_mutex/pthread_mutex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_mutex.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_mutex.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <pthread_np.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" int contention_variable; diff --git a/regress/lib/libc_r/readdir/readdir.c b/regress/lib/libc_r/readdir/readdir.c index 7d2c6ce26d4..c3eea4d4379 100644 --- a/regress/lib/libc_r/readdir/readdir.c +++ b/regress/lib/libc_r/readdir/readdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readdir.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: readdir.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -45,6 +45,7 @@ #include <sys/types.h> #include <dirent.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" int diff --git a/regress/lib/libc_r/select/select.c b/regress/lib/libc_r/select/select.c index 666ed9ef083..e7ab6b86792 100644 --- a/regress/lib/libc_r/select/select.c +++ b/regress/lib/libc_r/select/select.c @@ -1,4 +1,4 @@ -/* $OpenBSD: select.c,v 1.1 2001/08/15 14:37:13 fgsch Exp $ */ +/* $OpenBSD: select.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <sys/time.h> #include <errno.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" #define NLOOPS 10000 diff --git a/regress/lib/libc_r/setjmp/setjmp.c b/regress/lib/libc_r/setjmp/setjmp.c index 45f6feca99d..fa3f4867b8e 100644 --- a/regress/lib/libc_r/setjmp/setjmp.c +++ b/regress/lib/libc_r/setjmp/setjmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setjmp.c,v 1.1 2001/08/15 14:37:13 fgsch Exp $ */ +/* $OpenBSD: setjmp.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -33,6 +33,7 @@ */ #include <setjmp.h> +#include <stdlib.h> #include "test.h" int reached; diff --git a/regress/lib/libc_r/sleep/sleep.c b/regress/lib/libc_r/sleep/sleep.c index ec5ddd1bb66..7819c136c3f 100644 --- a/regress/lib/libc_r/sleep/sleep.c +++ b/regress/lib/libc_r/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */ +/* $OpenBSD: sleep.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <stdio.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" const char buf[] = "abcdefghijklimnopqrstuvwxyz"; diff --git a/regress/lib/libc_r/socket/2/socket2.c b/regress/lib/libc_r/socket/2/socket2.c index 5b3b51fda57..70747544a65 100644 --- a/regress/lib/libc_r/socket/2/socket2.c +++ b/regress/lib/libc_r/socket/2/socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: socket2.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -51,6 +51,7 @@ #include <netinet/in.h> #include <unistd.h> #include <string.h> +#include <stdlib.h> #include "test.h" struct sockaddr_in a_sout; diff --git a/regress/lib/libc_r/socket/2a/socket2a.c b/regress/lib/libc_r/socket/2a/socket2a.c index 551b925065d..96278cd981c 100644 --- a/regress/lib/libc_r/socket/2a/socket2a.c +++ b/regress/lib/libc_r/socket/2a/socket2a.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2a.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: socket2a.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -49,6 +49,7 @@ #include <netinet/in.h> #include <unistd.h> #include <string.h> +#include <stdlib.h> #include "test.h" struct sockaddr_in a_sout; diff --git a/regress/lib/libc_r/stdarg/stdarg.c b/regress/lib/libc_r/stdarg/stdarg.c index 5e10f6d3cd8..d1820bdd080 100644 --- a/regress/lib/libc_r/stdarg/stdarg.c +++ b/regress/lib/libc_r/stdarg/stdarg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stdarg.c,v 1.2 2001/08/15 14:48:31 fgsch Exp $ */ +/* $OpenBSD: stdarg.c,v 1.3 2001/09/20 16:43:16 todd Exp $ */ /* David Leonard <d@openbsd.org>, 2001. Public Domain. */ /* @@ -8,6 +8,7 @@ #include <pthread.h> #include <stdio.h> #include <stdarg.h> +#include <stdlib.h> #include "test.h" #define EQ(v,exp) _CHECK(v, == exp, NULL) diff --git a/regress/lib/libpthread/cancel/cancel.c b/regress/lib/libpthread/cancel/cancel.c index be344ba7731..13db747e45d 100644 --- a/regress/lib/libpthread/cancel/cancel.c +++ b/regress/lib/libpthread/cancel/cancel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cancel.c,v 1.2 2001/08/23 04:26:05 fgsch Exp $ */ +/* $OpenBSD: cancel.c,v 1.3 2001/09/20 16:43:15 todd Exp $ */ /* David Leonard <d@openbsd.org>, 1999. Public Domain. */ #include <pthread.h> @@ -6,6 +6,7 @@ #include <unistd.h> #include <stdio.h> #include <fcntl.h> +#include <stdlib.h> #include "test.h" static pthread_cond_t cond; diff --git a/regress/lib/libpthread/close/close.c b/regress/lib/libpthread/close/close.c index 18b64b64f0e..2e21ecf1e47 100644 --- a/regress/lib/libpthread/close/close.c +++ b/regress/lib/libpthread/close/close.c @@ -1,4 +1,4 @@ -/* $OpenBSD: close.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: close.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -41,6 +41,7 @@ #include <pthread.h> #include <stdio.h> #include <unistd.h> +#include <stdlib.h> #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> diff --git a/regress/lib/libpthread/cwd/cwd.c b/regress/lib/libpthread/cwd/cwd.c index 2480a825ef4..925e337a728 100644 --- a/regress/lib/libpthread/cwd/cwd.c +++ b/regress/lib/libpthread/cwd/cwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cwd.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: cwd.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -38,6 +38,7 @@ #include <stdio.h> #include <sys/param.h> +#include <stdlib.h> #include <unistd.h> #include "test.h" diff --git a/regress/lib/libpthread/fork/fork.c b/regress/lib/libpthread/fork/fork.c index cd227a70ce8..b560cf20fa8 100644 --- a/regress/lib/libpthread/fork/fork.c +++ b/regress/lib/libpthread/fork/fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fork.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */ +/* $OpenBSD: fork.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <fcntl.h> #include <sys/types.h> #include <unistd.h> +#include <stdlib.h> #include <signal.h> #include <sys/wait.h> #include "test.h" diff --git a/regress/lib/libpthread/netdb/netdb.c b/regress/lib/libpthread/netdb/netdb.c index cf4d59e0560..9f764d87827 100644 --- a/regress/lib/libpthread/netdb/netdb.c +++ b/regress/lib/libpthread/netdb/netdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */ +/* $OpenBSD: netdb.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -46,6 +46,7 @@ #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" static void test_serv() diff --git a/regress/lib/libpthread/poll/poll.c b/regress/lib/libpthread/poll/poll.c index fc0d9422cce..3ed5b52d01f 100644 --- a/regress/lib/libpthread/poll/poll.c +++ b/regress/lib/libpthread/poll/poll.c @@ -1,4 +1,4 @@ -/* $OpenBSD: poll.c,v 1.2 2001/08/23 04:26:05 fgsch Exp $ */ +/* $OpenBSD: poll.c,v 1.3 2001/09/20 16:43:15 todd Exp $ */ /* David Leonard <d@openbsd.org>, 2001. Public Domain. */ #include <pthread.h> @@ -6,6 +6,7 @@ #include <poll.h> #include <paths.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" diff --git a/regress/lib/libpthread/preemption/preemption.c b/regress/lib/libpthread/preemption/preemption.c index ef0829ce4f5..5224630a918 100644 --- a/regress/lib/libpthread/preemption/preemption.c +++ b/regress/lib/libpthread/preemption/preemption.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preemption.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: preemption.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -43,6 +43,7 @@ #include <pthread.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" void * diff --git a/regress/lib/libpthread/pthread_cond_timedwait/pthread_cond_timedwait.c b/regress/lib/libpthread/pthread_cond_timedwait/pthread_cond_timedwait.c index 3f34eb44c40..ffe3f5f63a1 100644 --- a/regress/lib/libpthread/pthread_cond_timedwait/pthread_cond_timedwait.c +++ b/regress/lib/libpthread/pthread_cond_timedwait/pthread_cond_timedwait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_cond_timedwait.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_cond_timedwait.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -45,6 +45,7 @@ #include <stdio.h> #include <errno.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; diff --git a/regress/lib/libpthread/pthread_create/pthread_create.c b/regress/lib/libpthread/pthread_create/pthread_create.c index ccc2a6c4292..9b82d0945f5 100644 --- a/regress/lib/libpthread/pthread_create/pthread_create.c +++ b/regress/lib/libpthread/pthread_create/pthread_create.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_create.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */ +/* $OpenBSD: pthread_create.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -40,6 +40,7 @@ #include <pthread.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" void* new_thread(void* arg) diff --git a/regress/lib/libpthread/pthread_join/pthread_join.c b/regress/lib/libpthread/pthread_join/pthread_join.c index a8637caa887..2bda5a4045b 100644 --- a/regress/lib/libpthread/pthread_join/pthread_join.c +++ b/regress/lib/libpthread/pthread_join/pthread_join.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_join.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_join.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <unistd.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" /* This thread yields so the creator has a live thread to wait on */ diff --git a/regress/lib/libpthread/pthread_mutex/pthread_mutex.c b/regress/lib/libpthread/pthread_mutex/pthread_mutex.c index 1375231bca2..3dd62129035 100644 --- a/regress/lib/libpthread/pthread_mutex/pthread_mutex.c +++ b/regress/lib/libpthread/pthread_mutex/pthread_mutex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_mutex.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: pthread_mutex.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <pthread_np.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" int contention_variable; diff --git a/regress/lib/libpthread/readdir/readdir.c b/regress/lib/libpthread/readdir/readdir.c index 7d2c6ce26d4..c3eea4d4379 100644 --- a/regress/lib/libpthread/readdir/readdir.c +++ b/regress/lib/libpthread/readdir/readdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readdir.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */ +/* $OpenBSD: readdir.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -45,6 +45,7 @@ #include <sys/types.h> #include <dirent.h> #include <stdio.h> +#include <stdlib.h> #include "test.h" int diff --git a/regress/lib/libpthread/select/select.c b/regress/lib/libpthread/select/select.c index 666ed9ef083..e7ab6b86792 100644 --- a/regress/lib/libpthread/select/select.c +++ b/regress/lib/libpthread/select/select.c @@ -1,4 +1,4 @@ -/* $OpenBSD: select.c,v 1.1 2001/08/15 14:37:13 fgsch Exp $ */ +/* $OpenBSD: select.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <sys/time.h> #include <errno.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" #define NLOOPS 10000 diff --git a/regress/lib/libpthread/setjmp/setjmp.c b/regress/lib/libpthread/setjmp/setjmp.c index 45f6feca99d..fa3f4867b8e 100644 --- a/regress/lib/libpthread/setjmp/setjmp.c +++ b/regress/lib/libpthread/setjmp/setjmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setjmp.c,v 1.1 2001/08/15 14:37:13 fgsch Exp $ */ +/* $OpenBSD: setjmp.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -33,6 +33,7 @@ */ #include <setjmp.h> +#include <stdlib.h> #include "test.h" int reached; diff --git a/regress/lib/libpthread/sleep/sleep.c b/regress/lib/libpthread/sleep/sleep.c index ec5ddd1bb66..7819c136c3f 100644 --- a/regress/lib/libpthread/sleep/sleep.c +++ b/regress/lib/libpthread/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */ +/* $OpenBSD: sleep.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -44,6 +44,7 @@ #include <pthread.h> #include <stdio.h> #include <unistd.h> +#include <stdlib.h> #include "test.h" const char buf[] = "abcdefghijklimnopqrstuvwxyz"; diff --git a/regress/lib/libpthread/socket/2/socket2.c b/regress/lib/libpthread/socket/2/socket2.c index 5b3b51fda57..70747544a65 100644 --- a/regress/lib/libpthread/socket/2/socket2.c +++ b/regress/lib/libpthread/socket/2/socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: socket2.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -51,6 +51,7 @@ #include <netinet/in.h> #include <unistd.h> #include <string.h> +#include <stdlib.h> #include "test.h" struct sockaddr_in a_sout; diff --git a/regress/lib/libpthread/socket/2a/socket2a.c b/regress/lib/libpthread/socket/2a/socket2a.c index 551b925065d..96278cd981c 100644 --- a/regress/lib/libpthread/socket/2a/socket2a.c +++ b/regress/lib/libpthread/socket/2a/socket2a.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2a.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */ +/* $OpenBSD: socket2a.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -49,6 +49,7 @@ #include <netinet/in.h> #include <unistd.h> #include <string.h> +#include <stdlib.h> #include "test.h" struct sockaddr_in a_sout; diff --git a/regress/lib/libpthread/stdarg/stdarg.c b/regress/lib/libpthread/stdarg/stdarg.c index 5e10f6d3cd8..d1820bdd080 100644 --- a/regress/lib/libpthread/stdarg/stdarg.c +++ b/regress/lib/libpthread/stdarg/stdarg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stdarg.c,v 1.2 2001/08/15 14:48:31 fgsch Exp $ */ +/* $OpenBSD: stdarg.c,v 1.3 2001/09/20 16:43:16 todd Exp $ */ /* David Leonard <d@openbsd.org>, 2001. Public Domain. */ /* @@ -8,6 +8,7 @@ #include <pthread.h> #include <stdio.h> #include <stdarg.h> +#include <stdlib.h> #include "test.h" #define EQ(v,exp) _CHECK(v, == exp, NULL) |