summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2003-07-18 23:11:44 +0000
committerDavid Krause <david@cvs.openbsd.org>2003-07-18 23:11:44 +0000
commit7da37264d9626a821731a590b0e20fb530348aab (patch)
tree0983d2f5b1663c92353d7607e5aeb7dc1823c46c /usr.bin
parent0470d3c1e67d8bcfa4897e2df4090e4651fc61fd (diff)
add missing includes
ok tedu@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tn3270/api/api_exch.c7
-rw-r--r--usr.bin/tn3270/sys_curses/termout.c5
-rw-r--r--usr.bin/vi/cl/cl_funcs.c3
-rw-r--r--usr.bin/vi/cl/cl_main.c3
-rw-r--r--usr.bin/vi/cl/cl_screen.c3
-rw-r--r--usr.bin/window/cmd.c7
-rw-r--r--usr.bin/window/cmd7.c7
-rw-r--r--usr.bin/window/context.c5
-rw-r--r--usr.bin/window/lcmd1.c7
-rw-r--r--usr.bin/window/mloop.c6
-rw-r--r--usr.bin/window/ttgeneric.c7
-rw-r--r--usr.bin/window/ttoutput.c7
-rw-r--r--usr.bin/window/wwclose.c5
-rw-r--r--usr.bin/window/xx.c5
14 files changed, 52 insertions, 25 deletions
diff --git a/usr.bin/tn3270/api/api_exch.c b/usr.bin/tn3270/api/api_exch.c
index 4fbb0d751ea..f5fbc611b26 100644
--- a/usr.bin/tn3270/api/api_exch.c
+++ b/usr.bin/tn3270/api/api_exch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: api_exch.c,v 1.5 2003/06/03 02:56:18 millert Exp $ */
+/* $OpenBSD: api_exch.c,v 1.6 2003/07/18 23:11:43 david Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -31,10 +31,13 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)api_exch.c 4.2 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: api_exch.c,v 1.5 2003/06/03 02:56:18 millert Exp $";
+static char rcsid[] = "$OpenBSD: api_exch.c,v 1.6 2003/07/18 23:11:43 david Exp $";
#endif /* not lint */
+#include <sys/types.h>
+
#include <stdio.h>
+#include <unistd.h>
#include "../general/general.h"
diff --git a/usr.bin/tn3270/sys_curses/termout.c b/usr.bin/tn3270/sys_curses/termout.c
index 264fb276a72..674234128b1 100644
--- a/usr.bin/tn3270/sys_curses/termout.c
+++ b/usr.bin/tn3270/sys_curses/termout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: termout.c,v 1.11 2003/06/03 02:56:19 millert Exp $ */
+/* $OpenBSD: termout.c,v 1.12 2003/07/18 23:11:43 david Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -31,7 +31,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)termout.c 4.3 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: termout.c,v 1.11 2003/06/03 02:56:19 millert Exp $";
+static char rcsid[] = "$OpenBSD: termout.c,v 1.12 2003/07/18 23:11:43 david Exp $";
#endif /* not lint */
#if defined(unix)
@@ -41,6 +41,7 @@ static char rcsid[] = "$OpenBSD: termout.c,v 1.11 2003/06/03 02:56:19 millert Ex
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <curses.h>
#include <term.h>
#if defined(ultrix)
diff --git a/usr.bin/vi/cl/cl_funcs.c b/usr.bin/vi/cl/cl_funcs.c
index 43d33e99667..2346627fae5 100644
--- a/usr.bin/vi/cl/cl_funcs.c
+++ b/usr.bin/vi/cl/cl_funcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_funcs.c,v 1.9 2002/02/16 21:27:56 millert Exp $ */
+/* $OpenBSD: cl_funcs.c,v 1.10 2003/07/18 23:11:43 david Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -26,6 +26,7 @@ static const char sccsid[] = "@(#)cl_funcs.c 10.50 (Berkeley) 9/24/96";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <term.h>
#include <termios.h>
#include <unistd.h>
diff --git a/usr.bin/vi/cl/cl_main.c b/usr.bin/vi/cl/cl_main.c
index 1be43e2bea7..a33ecaadc94 100644
--- a/usr.bin/vi/cl/cl_main.c
+++ b/usr.bin/vi/cl/cl_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_main.c,v 1.13 2002/02/17 19:42:33 millert Exp $ */
+/* $OpenBSD: cl_main.c,v 1.14 2003/07/18 23:11:43 david Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -26,6 +26,7 @@ static const char sccsid[] = "@(#)cl_main.c 10.36 (Berkeley) 10/14/96";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <term.h>
#include <termios.h>
#include <unistd.h>
diff --git a/usr.bin/vi/cl/cl_screen.c b/usr.bin/vi/cl/cl_screen.c
index 6a475f07415..aeb5b00b81d 100644
--- a/usr.bin/vi/cl/cl_screen.c
+++ b/usr.bin/vi/cl/cl_screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl_screen.c,v 1.13 2002/02/16 21:27:56 millert Exp $ */
+/* $OpenBSD: cl_screen.c,v 1.14 2003/07/18 23:11:43 david Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -25,6 +25,7 @@ static const char sccsid[] = "@(#)cl_screen.c 10.49 (Berkeley) 9/24/96";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <term.h>
#include <termios.h>
#include <unistd.h>
diff --git a/usr.bin/window/cmd.c b/usr.bin/window/cmd.c
index 136ff62f37d..7eb13d42a18 100644
--- a/usr.bin/window/cmd.c
+++ b/usr.bin/window/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.7 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: cmd.c,v 1.8 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: cmd.c,v 1.4 1996/02/08 20:44:57 mycroft Exp $ */
/*
@@ -37,13 +37,16 @@
#if 0
static char sccsid[] = "@(#)cmd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd.c,v 1.7 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd.c,v 1.8 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include "defs.h"
#include "char.h"
+#include <sys/types.h>
+#include <unistd.h>
+
docmd()
{
int c;
diff --git a/usr.bin/window/cmd7.c b/usr.bin/window/cmd7.c
index 935b24e3fdb..f1d19572451 100644
--- a/usr.bin/window/cmd7.c
+++ b/usr.bin/window/cmd7.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd7.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: cmd7.c,v 1.6 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: cmd7.c,v 1.3 1995/09/28 10:34:12 tls Exp $ */
/*
@@ -37,13 +37,16 @@
#if 0
static char sccsid[] = "@(#)cmd7.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd7.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd7.c,v 1.6 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include "defs.h"
#include "string.h"
+#include <sys/types.h>
+#include <unistd.h>
+
/*
* Window size.
*/
diff --git a/usr.bin/window/context.c b/usr.bin/window/context.c
index 409219677a6..ca4d31eb1e0 100644
--- a/usr.bin/window/context.c
+++ b/usr.bin/window/context.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: context.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: context.c,v 1.6 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: context.c,v 1.3 1995/09/28 10:34:15 tls Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)context.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: context.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: context.c,v 1.6 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
@@ -45,6 +45,7 @@ static char rcsid[] = "$OpenBSD: context.c,v 1.5 2003/06/03 02:56:23 millert Exp
#include "string.h"
#include "context.h"
#include <fcntl.h>
+#include <stdlib.h>
/*
* Context push/pop for nested command files.
diff --git a/usr.bin/window/lcmd1.c b/usr.bin/window/lcmd1.c
index 376c6d98ef4..da097a58845 100644
--- a/usr.bin/window/lcmd1.c
+++ b/usr.bin/window/lcmd1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcmd1.c,v 1.8 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: lcmd1.c,v 1.9 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)lcmd1.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.8 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.9 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
@@ -46,7 +46,10 @@ static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.8 2003/06/03 02:56:23 millert Exp $
#include "value.h"
#include "lcmd.h"
#include "var.h"
+#include <sys/types.h>
+#include <stdio.h>
#include <string.h>
+#include <unistd.h>
struct lcmd_arg arg_window[] = {
{ "row", 1, ARG_NUM },
diff --git a/usr.bin/window/mloop.c b/usr.bin/window/mloop.c
index 4549b141ad3..2d5d9e91a03 100644
--- a/usr.bin/window/mloop.c
+++ b/usr.bin/window/mloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mloop.c,v 1.7 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: mloop.c,v 1.8 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: mloop.c,v 1.5 1996/02/08 20:45:03 mycroft Exp $ */
/*
@@ -37,11 +37,13 @@
#if 0
static char sccsid[] = "@(#)mloop.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mloop.c,v 1.7 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: mloop.c,v 1.8 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include <sys/param.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "defs.h"
mloop()
diff --git a/usr.bin/window/ttgeneric.c b/usr.bin/window/ttgeneric.c
index 9df0390dbf3..8812ecfb391 100644
--- a/usr.bin/window/ttgeneric.c
+++ b/usr.bin/window/ttgeneric.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttgeneric.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: ttgeneric.c,v 1.6 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: ttgeneric.c,v 1.3 1995/09/28 10:34:45 tls Exp $ */
/*
@@ -37,12 +37,15 @@
#if 0
static char sccsid[] = "@(#)ttgeneric.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttgeneric.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: ttgeneric.c,v 1.6 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include "tt.h"
+#include <curses.h>
+#include <stdlib.h>
+#include <term.h>
char PC, *BC, *UP;
short ospeed;
diff --git a/usr.bin/window/ttoutput.c b/usr.bin/window/ttoutput.c
index 58db1f05ba3..9b6569e541a 100644
--- a/usr.bin/window/ttoutput.c
+++ b/usr.bin/window/ttoutput.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttoutput.c,v 1.5 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: ttoutput.c,v 1.6 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: ttoutput.c,v 1.3 1995/09/28 10:34:51 tls Exp $ */
/*
@@ -37,13 +37,16 @@
#if 0
static char sccsid[] = "@(#)ttoutput.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.5 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.6 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include "tt.h"
#include <sys/errno.h>
+#include <sys/types.h>
+#include <string.h>
+#include <unistd.h>
/*
* Buffered output package.
diff --git a/usr.bin/window/wwclose.c b/usr.bin/window/wwclose.c
index 2b7dc8efb3b..1f11e3448c7 100644
--- a/usr.bin/window/wwclose.c
+++ b/usr.bin/window/wwclose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwclose.c,v 1.6 2003/07/10 00:06:52 david Exp $ */
+/* $OpenBSD: wwclose.c,v 1.7 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: wwclose.c,v 1.3 1995/09/28 10:35:14 tls Exp $ */
/*
@@ -37,10 +37,11 @@
#if 0
static char sccsid[] = "@(#)wwclose.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwclose.c,v 1.6 2003/07/10 00:06:52 david Exp $";
+static char rcsid[] = "$OpenBSD: wwclose.c,v 1.7 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
#include <unistd.h>
#include "ww.h"
diff --git a/usr.bin/window/xx.c b/usr.bin/window/xx.c
index b6e7a85393b..c6037991772 100644
--- a/usr.bin/window/xx.c
+++ b/usr.bin/window/xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xx.c,v 1.6 2003/06/03 02:56:23 millert Exp $ */
+/* $OpenBSD: xx.c,v 1.7 2003/07/18 23:11:43 david Exp $ */
/* $NetBSD: xx.c,v 1.3 1995/09/28 10:36:03 tls Exp $ */
/*
@@ -37,11 +37,12 @@
#if 0
static char sccsid[] = "@(#)xx.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: xx.c,v 1.6 2003/06/03 02:56:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: xx.c,v 1.7 2003/07/18 23:11:43 david Exp $";
#endif
#endif /* not lint */
#include <stdlib.h>
+#include <string.h>
#include "ww.h"
#include "xx.h"
#include "tt.h"