mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Include proper header files for system functions that are used and
that gcc complains about this code changing from the built-in versions.
This commit is contained in:
parent
21fc9f2bcc
commit
b3ba0b1ed2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188828
@ -47,6 +47,7 @@ static char rcsid[] =
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <strings.h>
|
||||
int cc_trace = 0;
|
||||
FILE *cc_trace_fp;
|
||||
|
||||
|
@ -44,6 +44,7 @@ static char rcsid[] =
|
||||
#include "mystring.h"
|
||||
#include "context.h"
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
* Context push/pop for nested command files.
|
||||
|
@ -46,6 +46,7 @@ static char rcsid[] =
|
||||
#include "value.h"
|
||||
#include "lcmd.h"
|
||||
#include "var.h"
|
||||
#include <stdio.h>
|
||||
|
||||
struct lcmd_arg arg_window[] = {
|
||||
{ "row", 1, ARG_NUM },
|
||||
|
@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "var.h"
|
||||
#include "lcmd.h"
|
||||
#include "alias.h"
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
|
@ -46,6 +46,7 @@ static char rcsid[] =
|
||||
#include "context.h"
|
||||
#include "string.h"
|
||||
#include "mystring.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
s_getc()
|
||||
{
|
||||
|
@ -45,6 +45,7 @@ static char rcsid[] =
|
||||
#include "var.h"
|
||||
#include "char.h"
|
||||
#include "local.h"
|
||||
#include <stdio.h>
|
||||
|
||||
doconfig()
|
||||
{
|
||||
|
@ -42,6 +42,8 @@ static char rcsid[] =
|
||||
|
||||
#include <string.h> /* System string definitions. */
|
||||
#include "mystring.h" /* Local string definitions. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char *
|
||||
str_cpy(s)
|
||||
|
@ -43,6 +43,8 @@ static char rcsid[] =
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
#include <errno.h>
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/*
|
||||
|
@ -41,6 +41,7 @@ static char rcsid[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tt.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
char *tgetstr();
|
||||
char *tgoto();
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
#include "char.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
zz|zapple|perfect apple:\
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include "value.h"
|
||||
#include "var.h"
|
||||
#include "mystring.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
struct var *
|
||||
var_set1(head, name, v)
|
||||
|
@ -40,6 +40,7 @@ static char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include <signal.h>
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
|
@ -46,6 +46,7 @@ static char rcsid[] =
|
||||
#endif
|
||||
#include <paths.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
* Set up the environment of this process to run in window 'wp'.
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
#include <signal.h>
|
||||
#include <strings.h>
|
||||
|
||||
wwflush()
|
||||
{
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include "ww.h"
|
||||
#include "tt.h"
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <termcap.h>
|
||||
#include "char.h"
|
||||
|
@ -43,6 +43,7 @@ static char rcsid[] =
|
||||
#include "ww.h"
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(OLD_TTY) && !defined(TIOCPKT)
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
@ -42,6 +42,7 @@ static char rcsid[] =
|
||||
|
||||
#include "ww.h"
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/*
|
||||
* There is a dead lock with vfork and closing of pseudo-ports.
|
||||
|
@ -44,6 +44,7 @@ static char rcsid[] =
|
||||
#include "xx.h"
|
||||
#include "tt.h"
|
||||
#include <stdlib.h>
|
||||
#include <strings.h>
|
||||
|
||||
xxinit()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user