summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>1999-02-11 09:10:43 +0000
committerpk <pk@NetBSD.org>1999-02-11 09:10:43 +0000
commiteee0165e87475372d51044eb4600a830c146ab3f (patch)
tree0466eb304ec2fd2c9aaff0d584fae9b88abd70a8 /sys
parent08f1cf64082c055dc6c2449543ee6d45f30c8a49 (diff)
Add missing prototypes.
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libsa/bootp.h4
-rw-r--r--sys/lib/libsa/cd9660.c6
-rw-r--r--sys/lib/libsa/in_cksum.c16
-rw-r--r--sys/lib/libsa/net.c6
-rw-r--r--sys/lib/libsa/net.h4
-rw-r--r--sys/lib/libsa/netif.c4
-rw-r--r--sys/lib/libsa/nfs.c6
-rw-r--r--sys/lib/libsa/stand.h5
-rw-r--r--sys/lib/libsa/ufs.c3
9 files changed, 45 insertions, 9 deletions
diff --git a/sys/lib/libsa/bootp.h b/sys/lib/libsa/bootp.h
index 7435e3cdbbb..62febb98f74 100644
--- a/sys/lib/libsa/bootp.h
+++ b/sys/lib/libsa/bootp.h
@@ -1,4 +1,4 @@
-/* $NetBSD: bootp.h,v 1.4 1997/09/06 13:55:57 drochner Exp $ */
+/* $NetBSD: bootp.h,v 1.5 1999/02/11 09:10:43 pk Exp $ */
/*
* Bootstrap Protocol (BOOTP). RFC951 and RFC1048.
@@ -135,3 +135,5 @@ struct cmu_vend {
/* v_flags values */
#define VF_SMASK 1 /* Subnet mask field contains valid data */
+
+extern void bootp __P((int));
diff --git a/sys/lib/libsa/cd9660.c b/sys/lib/libsa/cd9660.c
index 5cc99da1d15..57dfb854b33 100644
--- a/sys/lib/libsa/cd9660.c
+++ b/sys/lib/libsa/cd9660.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660.c,v 1.5 1997/06/26 19:11:33 drochner Exp $ */
+/* $NetBSD: cd9660.c,v 1.6 1999/02/11 09:10:44 pk Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -66,6 +66,10 @@ struct ptable_ent {
#define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE)
+static int toupper __P((int));
+static int pnmatch __P((char *, struct ptable_ent *));
+static int dirmatch __P((char *, struct iso_directory_record *));
+
static int
toupper(c)
int c;
diff --git a/sys/lib/libsa/in_cksum.c b/sys/lib/libsa/in_cksum.c
index d9b8964c62c..426f8e5b79f 100644
--- a/sys/lib/libsa/in_cksum.c
+++ b/sys/lib/libsa/in_cksum.c
@@ -1,4 +1,4 @@
-/* $NetBSD: in_cksum.c,v 1.3 1995/04/22 13:53:48 cgd Exp $ */
+/* $NetBSD: in_cksum.c,v 1.4 1999/02/11 09:10:44 pk Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@@ -40,6 +40,20 @@
*/
#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <net/if.h>
+#include <net/if_ether.h>
+
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+#include <netinet/ip_var.h>
+#include <netinet/udp.h>
+#include <netinet/udp_var.h>
+
+#include "stand.h"
+#include "net.h"
/*
* Checksum routine for Internet Protocol family headers.
diff --git a/sys/lib/libsa/net.c b/sys/lib/libsa/net.c
index aedf2c35ab5..ea6fc519896 100644
--- a/sys/lib/libsa/net.c
+++ b/sys/lib/libsa/net.c
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.20 1997/12/26 22:41:30 scottr Exp $ */
+/* $NetBSD: net.c,v 1.21 1999/02/11 09:10:44 pk Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@@ -61,6 +61,9 @@
#include "stand.h"
#include "net.h"
+
+static char *number __P((char *, int *));
+
/* Caller must leave room for ethernet, ip and udp headers in front!! */
ssize_t
sendudp(d, pkt, len)
@@ -467,6 +470,7 @@ intoa(addr)
return (cp+1);
}
+
static char *
number(s, n)
char *s;
diff --git a/sys/lib/libsa/net.h b/sys/lib/libsa/net.h
index 4f979087a0a..c9af5a9eb94 100644
--- a/sys/lib/libsa/net.h
+++ b/sys/lib/libsa/net.h
@@ -1,4 +1,4 @@
-/* $NetBSD: net.h,v 1.10 1995/10/20 00:46:30 cgd Exp $ */
+/* $NetBSD: net.h,v 1.11 1999/02/11 09:10:44 pk Exp $ */
/*
* Copyright (c) 1993 Adam Glass
@@ -115,6 +115,8 @@ int in_cksum __P((void *, int));
char *inet_ntoa __P((struct in_addr));
char *intoa __P((n_long)); /* similar to inet_ntoa */
n_long inet_addr __P((char *));
+int in_cksum __P((void *, int));
+n_long ip_convertaddr __P((char *));
/* Machine-dependent functions: */
time_t getsecs __P((void));
diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c
index b8253a1c443..2d8a4936d92 100644
--- a/sys/lib/libsa/netif.c
+++ b/sys/lib/libsa/netif.c
@@ -1,4 +1,4 @@
-/* $NetBSD: netif.c,v 1.10 1997/09/06 13:57:14 drochner Exp $ */
+/* $NetBSD: netif.c,v 1.11 1999/02/11 09:10:44 pk Exp $ */
/*
* Copyright (c) 1993 Adam Glass
@@ -76,6 +76,8 @@ netif_init()
}
}
+int netif_match __P((struct netif *, void *));
+
int
netif_match(nif, machdep_hint)
struct netif *nif;
diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c
index 09a6953a39e..2b24ef4483a 100644
--- a/sys/lib/libsa/nfs.c
+++ b/sys/lib/libsa/nfs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs.c,v 1.23 1998/01/23 19:27:44 thorpej Exp $ */
+/* $NetBSD: nfs.c,v 1.24 1999/02/11 09:10:44 pk Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@@ -102,6 +102,10 @@ struct nfs_iodesc {
struct nfs_iodesc nfs_root_node;
+int nfs_getrootfh __P((struct iodesc *, char *, u_char *));
+int nfs_lookupfh __P((struct nfs_iodesc *, char *, struct nfs_iodesc *));
+int nfs_readlink __P((struct nfs_iodesc *, char *));
+ssize_t nfs_readdata __P((struct nfs_iodesc *, off_t, void *, size_t));
/*
* Fetch the root file handle (call mount daemon)
diff --git a/sys/lib/libsa/stand.h b/sys/lib/libsa/stand.h
index 8a5ddc7f825..a666a76c176 100644
--- a/sys/lib/libsa/stand.h
+++ b/sys/lib/libsa/stand.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stand.h,v 1.26 1998/09/22 20:29:03 ross Exp $ */
+/* $NetBSD: stand.h,v 1.27 1999/02/11 09:10:45 pk Exp $ */
/*-
* Copyright (c) 1993
@@ -122,9 +122,11 @@ void sprintf __P((char *, const char *, ...));
void vprintf __P((const char *, _BSD_VA_LIST_));
void twiddle __P((void));
void gets __P((char *));
+int getfile __P((char *prompt, int mode));
char *strerror __P((int));
__dead void panic __P((const char *, ...)) __attribute__((noreturn));
__dead void _rtt __P((void)) __attribute__((noreturn));
+__dead void exit __P((void)) __attribute__((noreturn));
void bcopy __P((const void *, void *, size_t));
void *memcpy __P((void *, const void *, size_t));
int memcmp __P((const void *, const void *, size_t));
@@ -135,6 +137,7 @@ void closeall __P((void));
ssize_t read __P((int, void *, size_t));
ssize_t write __P((int, void *, size_t));
off_t lseek __P((int, off_t, int));
+int ioctl __P((int, u_long, char *));
int nodev __P((void));
int noioctl __P((struct open_file *, u_long, void *));
diff --git a/sys/lib/libsa/ufs.c b/sys/lib/libsa/ufs.c
index cf881cf62fe..a631baa76a7 100644
--- a/sys/lib/libsa/ufs.c
+++ b/sys/lib/libsa/ufs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs.c,v 1.20 1998/03/01 07:15:39 ross Exp $ */
+/* $NetBSD: ufs.c,v 1.21 1999/02/11 09:10:45 pk Exp $ */
/*-
* Copyright (c) 1993
@@ -84,6 +84,7 @@ max(a, b)
#endif
#include "stand.h"
+#include "ufs.h"
/*
* In-core open file.