include <string.h>, <stdio.h> and <stdlib.h> as appropriate.

This commit is contained in:
mrg 2006-05-10 19:07:22 +00:00
parent 49b22a9fa1
commit b141b31103
14 changed files with 37 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootblock_test.c,v 1.1 2004/03/23 00:00:49 lukem Exp $ */
/* $NetBSD: bootblock_test.c,v 1.2 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -39,6 +39,7 @@
#include <assert.h>
#include <stddef.h>
#include <unistd.h>
#include <stdlib.h>
int
main(int argc, char *argv[])

View File

@ -1,4 +1,4 @@
/* $NetBSD: test.c,v 1.2 2003/07/26 19:38:45 salo Exp $ */
/* $NetBSD: test.c,v 1.3 2006/05/10 19:07:22 mrg Exp $ */
/*
* Regression test for basename(3).
@ -9,6 +9,7 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: convfp.c,v 1.4 2004/05/01 18:00:19 martin Exp $ */
/* $NetBSD: convfp.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -35,6 +35,7 @@
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
/*
* This value is representable as an unsigned int, but not as an int.

View File

@ -1,4 +1,4 @@
/* $NetBSD: test.c,v 1.4 2003/07/26 19:38:46 salo Exp $ */
/* $NetBSD: test.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/*
* Regression test for dirname(3).
@ -11,6 +11,7 @@
#include <stdio.h>
#include <string.h>
#include <libgen.h>
#include <stdlib.h>
struct {
const char *input;

View File

@ -1,4 +1,4 @@
/* $NetBSD: except.c,v 1.9 2004/03/25 15:12:42 drochner Exp $ */
/* $NetBSD: except.c,v 1.10 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@ -39,6 +39,7 @@
#include <ieeefp.h>
#include <float.h>
#include <setjmp.h>
#include <stdlib.h>
void sigfpe(int, siginfo_t *, void *);
volatile sig_atomic_t signal_caught;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ldexp.c,v 1.2 2002/02/21 07:38:17 itojun Exp $ */
/* $NetBSD: ldexp.c,v 1.3 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -35,6 +35,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int
main()

View File

@ -1,4 +1,4 @@
/* $NetBSD: ctype1.c,v 1.4 2004/06/21 21:20:05 itojun Exp $ */
/* $NetBSD: ctype1.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@ -31,6 +31,7 @@
#include <err.h>
#include <locale.h>
#include <wchar.h>
#include <string.h>
int
main(int ac, char **av)

View File

@ -1,4 +1,4 @@
/* $NetBSD: recurse.c,v 1.2 2004/08/02 00:17:21 thorpej Exp $ */
/* $NetBSD: recurse.c,v 1.3 2006/05/10 19:07:22 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 1, 2004.
@ -12,6 +12,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>
static const ns_src testsrc[] = {
{ "test", NS_SUCCESS },

View File

@ -1,4 +1,4 @@
/* $NetBSD: idtest.c,v 1.4 2003/12/10 05:22:18 itojun Exp $ */
/* $NetBSD: idtest.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/* If defined, abort at first short period and only test REGRESS times. */
#define REGRESS 10000000 /* should be enough... */
@ -10,6 +10,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define PERIOD 30000

View File

@ -1,4 +1,4 @@
/* $NetBSD: xdrtest.c,v 1.4 2002/03/09 01:34:18 pk Exp $ */
/* $NetBSD: xdrtest.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c) 2001 Ben Harris
@ -32,6 +32,7 @@
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <stdlib.h>
#include "testbits.h"

View File

@ -1,10 +1,12 @@
/* $NetBSD: sigalrm.c,v 1.3 2003/11/13 06:48:31 simonb Exp $ */
/* $NetBSD: sigalrm.c,v 1.4 2006/05/10 19:07:22 mrg Exp $ */
#include <sys/time.h>
#include <sys/ucontext.h>
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/ucontext.h>
#include <stdlib.h>
void
sigalrm(int signo, siginfo_t *info, void *ptr)

View File

@ -1,11 +1,13 @@
/* $NetBSD: sigchld.c,v 1.5 2003/11/27 01:03:13 simonb Exp $ */
/* $NetBSD: sigchld.c,v 1.6 2006/05/10 19:07:22 mrg Exp $ */
#include <sys/ucontext.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <sys/ucontext.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <stdlib.h>
pid_t child;
int code;

View File

@ -1,9 +1,11 @@
/* $NetBSD: sigsegv.c,v 1.4 2003/11/13 06:48:31 simonb Exp $ */
/* $NetBSD: sigsegv.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
#include <sys/ucontext.h>
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <sys/ucontext.h>
#include <stdlib.h>
void
sigsegv(int signo, siginfo_t *info, void *ptr)

View File

@ -1,4 +1,4 @@
/* $Id: loan1.c,v 1.4 2004/03/02 10:13:13 yamt Exp $ */
/* $Id: loan1.c,v 1.5 2006/05/10 19:07:22 mrg Exp $ */
/*-
* Copyright (c)2004 YAMAMOTO Takashi,
@ -33,6 +33,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define BUFSIZE (32 * 1024) /* enough size to trigger sosend_loan */