include <string.h>, <stdio.h> and <stdlib.h> as appropriate.
This commit is contained in:
parent
49b22a9fa1
commit
b141b31103
@ -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.
|
* Copyright (c) 2004 The NetBSD Foundation, Inc.
|
||||||
@ -39,6 +39,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
@ -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).
|
* Regression test for basename(3).
|
||||||
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
|
||||||
|
@ -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.
|
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||||
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This value is representable as an unsigned int, but not as an int.
|
* This value is representable as an unsigned int, but not as an int.
|
||||||
|
@ -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).
|
* Regression test for dirname(3).
|
||||||
@ -11,6 +11,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
const char *input;
|
const char *input;
|
||||||
|
@ -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.
|
* Copyright (c) 1995 The NetBSD Foundation, Inc.
|
||||||
@ -39,6 +39,7 @@
|
|||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
void sigfpe(int, siginfo_t *, void *);
|
void sigfpe(int, siginfo_t *, void *);
|
||||||
volatile sig_atomic_t signal_caught;
|
volatile sig_atomic_t signal_caught;
|
||||||
|
@ -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.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main()
|
||||||
|
@ -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,
|
* Copyright (c)2003 Citrus Project,
|
||||||
@ -31,6 +31,7 @@
|
|||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int ac, char **av)
|
main(int ac, char **av)
|
||||||
|
@ -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.
|
* Written by Jason R. Thorpe, August 1, 2004.
|
||||||
@ -12,6 +12,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
static const ns_src testsrc[] = {
|
static const ns_src testsrc[] = {
|
||||||
{ "test", NS_SUCCESS },
|
{ "test", NS_SUCCESS },
|
||||||
|
@ -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. */
|
/* If defined, abort at first short period and only test REGRESS times. */
|
||||||
#define REGRESS 10000000 /* should be enough... */
|
#define REGRESS 10000000 /* should be enough... */
|
||||||
@ -10,6 +10,7 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define PERIOD 30000
|
#define PERIOD 30000
|
||||||
|
|
||||||
|
@ -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
|
* Copyright (c) 2001 Ben Harris
|
||||||
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include <rpc/types.h>
|
#include <rpc/types.h>
|
||||||
#include <rpc/xdr.h>
|
#include <rpc/xdr.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "testbits.h"
|
#include "testbits.h"
|
||||||
|
|
||||||
|
@ -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 <assert.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/time.h>
|
#include <stdlib.h>
|
||||||
#include <sys/ucontext.h>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
sigalrm(int signo, siginfo_t *info, void *ptr)
|
sigalrm(int signo, siginfo_t *info, void *ptr)
|
||||||
|
@ -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 <assert.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/ucontext.h>
|
#include <stdlib.h>
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <sys/resource.h>
|
|
||||||
|
|
||||||
pid_t child;
|
pid_t child;
|
||||||
int code;
|
int code;
|
||||||
|
@ -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 <assert.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/ucontext.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
sigsegv(int signo, siginfo_t *info, void *ptr)
|
sigsegv(int signo, siginfo_t *info, void *ptr)
|
||||||
|
@ -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,
|
* Copyright (c)2004 YAMAMOTO Takashi,
|
||||||
@ -33,6 +33,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define BUFSIZE (32 * 1024) /* enough size to trigger sosend_loan */
|
#define BUFSIZE (32 * 1024) /* enough size to trigger sosend_loan */
|
||||||
|
Loading…
Reference in New Issue
Block a user