summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-07-02 21:19:33 +0000
committerderaadt <deraadt@openbsd.org>2003-07-02 21:19:33 +0000
commita12b0823d6b86b49cafb6a015d1e061be140f59d (patch)
treeded8376d732422fa1ef4392f79322b8e924f69e9
parentprotos (diff)
downloadwireguard-openbsd-a12b0823d6b86b49cafb6a015d1e061be140f59d.tar.xz
wireguard-openbsd-a12b0823d6b86b49cafb6a015d1e061be140f59d.zip
missing protos
-rw-r--r--bin/df/df.c6
-rw-r--r--bin/ls/ls.h4
-rw-r--r--bin/pax/getoldopt.c8
-rw-r--r--bin/ps/fmt.c13
-rw-r--r--bin/stty/modes.c5
-rw-r--r--sbin/disklabel/disklabel.c5
-rw-r--r--sbin/disklabel/dkcksum.c5
-rw-r--r--sbin/disklabel/extern.h18
8 files changed, 52 insertions, 12 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 1927e7c2163..339f7ed80d9 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.35 2003/06/02 23:32:07 millert Exp $ */
+/* $OpenBSD: df.c,v 1.36 2003/07/02 21:19:33 deraadt Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: df.c,v 1.35 2003/06/02 23:32:07 millert Exp $";
+static char rcsid[] = "$OpenBSD: df.c,v 1.36 2003/07/02 21:19:33 deraadt Exp $";
#endif
#endif /* not lint */
@@ -74,6 +74,8 @@ void prtstat(struct statfs *, int, int, int);
void posixprint(struct statfs *, long, int);
int bread(int, off_t, void *, int);
void usage(void);
+void prthumanval(long long);
+void prthuman(struct statfs *sfsp, long);
int raw_df(char *, struct statfs *);
extern int ffs_df(int, char *, struct statfs *);
diff --git a/bin/ls/ls.h b/bin/ls/ls.h
index b1b7053b5aa..a68a66f1833 100644
--- a/bin/ls/ls.h
+++ b/bin/ls/ls.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ls.h,v 1.5 2003/06/02 23:32:08 millert Exp $ */
+/* $OpenBSD: ls.h,v 1.6 2003/07/02 21:19:33 deraadt Exp $ */
/* $NetBSD: ls.h,v 1.7 1995/03/21 09:06:33 cgd Exp $ */
/*
@@ -71,3 +71,5 @@ typedef struct {
char *flags;
char data[1];
} NAMES;
+
+int ls_main(int, char *[]);
diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c
index 4de13cd0d82..45fdbf29fbc 100644
--- a/bin/pax/getoldopt.c
+++ b/bin/pax/getoldopt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getoldopt.c,v 1.7 2002/10/16 19:20:02 millert Exp $ */
+/* $OpenBSD: getoldopt.c,v 1.8 2003/07/02 21:19:33 deraadt Exp $ */
/* $NetBSD: getoldopt.c,v 1.3 1995/03/21 09:07:28 cgd Exp $ */
/*
@@ -11,12 +11,16 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: getoldopt.c,v 1.7 2002/10/16 19:20:02 millert Exp $";
+static const char rcsid[] = "$OpenBSD: getoldopt.c,v 1.8 2003/07/02 21:19:33 deraadt Exp $";
#endif /* not lint */
+#include <sys/types.h>
+#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "pax.h"
+#include "extern.h"
int
getoldopt(int argc, char **argv, const char *optstring)
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 4fd82385392..c9a8677b5ef 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fmt.c,v 1.3 2003/06/11 06:50:24 deraadt Exp $ */
+/* $OpenBSD: fmt.c,v 1.4 2003/07/02 21:19:33 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -29,11 +29,22 @@
* SUCH DAMAGE.
*/
+#include <sys/param.h>
+#include <sys/user.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/proc.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <sys/sysctl.h>
+#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <vis.h>
+#include "ps.h"
+#include "extern.h"
void
fmt_puts(char *s, int *leftp)
diff --git a/bin/stty/modes.c b/bin/stty/modes.c
index a79953c1d3d..1a06d47927a 100644
--- a/bin/stty/modes.c
+++ b/bin/stty/modes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modes.c,v 1.7 2003/06/11 23:42:12 deraadt Exp $ */
+/* $OpenBSD: modes.c,v 1.8 2003/07/02 21:19:33 deraadt Exp $ */
/* $NetBSD: modes.c,v 1.9 1996/05/07 18:20:09 jtc Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: modes.c,v 1.7 2003/06/11 23:42:12 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: modes.c,v 1.8 2003/07/02 21:19:33 deraadt Exp $";
#endif
#endif /* not lint */
@@ -42,6 +42,7 @@ static char rcsid[] = "$OpenBSD: modes.c,v 1.7 2003/06/11 23:42:12 deraadt Exp $
#include <stddef.h>
#include <string.h>
#include "stty.h"
+#include "extern.h"
struct modes {
const char *name;
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 8733160d628..3139ecc39d9 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 deraadt Exp $ */
+/* $OpenBSD: disklabel.c,v 1.83 2003/07/02 21:22:10 deraadt Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -39,7 +39,7 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.83 2003/07/02 21:22:10 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -62,6 +62,7 @@ static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 de
#include <unistd.h>
#include <util.h>
#include "pathnames.h"
+#include "extern.h"
/*
* Disklabel: read and write disklabels.
diff --git a/sbin/disklabel/dkcksum.c b/sbin/disklabel/dkcksum.c
index 952504098a9..f55e5c66bd3 100644
--- a/sbin/disklabel/dkcksum.c
+++ b/sbin/disklabel/dkcksum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkcksum.c,v 1.5 2003/06/11 06:22:12 deraadt Exp $ */
+/* $OpenBSD: dkcksum.c,v 1.6 2003/07/02 21:22:10 deraadt Exp $ */
/* $NetBSD: dkcksum.c,v 1.6 1995/03/18 14:54:42 cgd Exp $ */
/*-
@@ -34,12 +34,13 @@
#if 0
static char sccsid[] = "@(#)dkcksum.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: dkcksum.c,v 1.5 2003/06/11 06:22:12 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: dkcksum.c,v 1.6 2003/07/02 21:22:10 deraadt Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <sys/disklabel.h>
+#include "extern.h"
u_short
dkcksum(struct disklabel *lp)
diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h
new file mode 100644
index 00000000000..6fe05e7a94a
--- /dev/null
+++ b/sbin/disklabel/extern.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+u_short dkcksum(struct disklabel *);
+