Include appropriate header files to bring function prototypes into scope.

This commit is contained in:
jtc 1994-05-12 17:03:32 +00:00
parent df81ab8248
commit a81e412494
15 changed files with 18 additions and 1 deletions

View File

@ -53,6 +53,7 @@ static char sccsid[] = "@(#)cd.c 8.1 (Berkeley) 5/31/93";
#include "mystring.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>

View File

@ -53,6 +53,7 @@ static char sccsid[] = "@(#)error.c 8.1 (Berkeley) 5/31/93";
#else
#include <varargs.h>
#endif
#include <unistd.h>
#include <errno.h>

View File

@ -62,6 +62,7 @@ static char sccsid[] = "@(#)eval.c 8.1 (Berkeley) 5/31/93";
#include "mystring.h"
#include "myhistedit.h"
#include <signal.h>
#include <unistd.h>
/* flags in argument to evaltree */

View File

@ -67,6 +67,7 @@ static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 5/31/93";
#include "jobs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

View File

@ -63,6 +63,7 @@ static char sccsid[] = "@(#)expand.c 8.2 (Berkeley) 10/22/93";
#include <sys/stat.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <pwd.h>
/*

View File

@ -44,6 +44,8 @@ static char sccsid[] = "@(#)histedit.c 8.1 (Berkeley) 5/31/93";
#include <sys/param.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "shell.h"
#include "parser.h"
#include "var.h"

View File

@ -43,9 +43,10 @@ static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
*/
#include <stdio.h> /* defines BUFSIZ */
#include "shell.h"
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include "shell.h"
#include "syntax.h"
#include "input.h"
#include "output.h"

View File

@ -47,6 +47,7 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#include <stdio.h>
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include "shell.h"
#include "main.h"

View File

@ -44,6 +44,7 @@ static char sccsid[] = "@(#)memalloc.c 8.1 (Berkeley) 5/31/93";
#include "error.h"
#include "machdep.h"
#include "mystring.h"
#include <unistd.h>
/*
* Like malloc, but returns an error when out of space.

View File

@ -44,6 +44,8 @@ static char sccsid[] = "@(#)miscbltin.c 8.2 (Berkeley) 4/16/94";
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>
#include "shell.h"
#include "options.h"
#include "var.h"

View File

@ -48,6 +48,7 @@ static char sccsid[] = "@(#)mystring.c 8.1 (Berkeley) 5/31/93";
* is_number(s) Return true if s is a string of digits.
*/
#include <stdlib.h>
#include "shell.h"
#include "syntax.h"
#include "error.h"

View File

@ -52,6 +52,7 @@ static char sccsid[] = "@(#)options.c 8.1 (Berkeley) 5/31/93";
#include "memalloc.h"
#include "error.h"
#include "mystring.h"
#include <unistd.h>
char *arg0; /* value of $0 */
struct shparam shellparam; /* current positional parameters */

View File

@ -61,6 +61,7 @@ static char sccsid[] = "@(#)output.c 8.1 (Berkeley) 5/31/93";
#include <varargs.h>
#endif
#include <errno.h>
#include <unistd.h>
#define OUTBUFSIZ BUFSIZ

View File

@ -52,6 +52,7 @@ static char sccsid[] = "@(#)trap.c 8.1 (Berkeley) 5/31/93";
#include "trap.h"
#include "mystring.h"
#include <signal.h>
#include <unistd.h>
/*

View File

@ -55,6 +55,7 @@ static char sccsid[] = "@(#)var.c 8.1 (Berkeley) 5/31/93";
#include "memalloc.h"
#include "error.h"
#include "mystring.h"
#include <unistd.h>
#define VTABSIZE 39