diff options
author | millert <> | 2002-02-16 21:27:50 +0000 |
---|---|---|
committer | millert <> | 2002-02-16 21:27:50 +0000 |
commit | 052e020be6be85be6238c44b8386a61f8db7b6a4 (patch) | |
tree | 4cf8f905bd37027527533678516a258fa89e2696 /src | |
parent | ee0af55ed65515812050f3b9a8d431c941b73eb8 (diff) | |
download | openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.gz openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.bz2 openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.zip |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'src')
33 files changed, 145 insertions, 145 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index be049baa74..f3ea849f00 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bcrypt.c,v 1.14 2001/01/04 21:45:30 todd Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.15 2002/02/16 21:27:21 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
@@ -66,11 +66,11 @@ | |||
66 | #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ | 66 | #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ |
67 | #define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */ | 67 | #define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */ |
68 | 68 | ||
69 | char *bcrypt_gensalt __P((u_int8_t)); | 69 | char *bcrypt_gensalt(u_int8_t); |
70 | 70 | ||
71 | static void encode_salt __P((char *, u_int8_t *, u_int16_t, u_int8_t)); | 71 | static void encode_salt(char *, u_int8_t *, u_int16_t, u_int8_t); |
72 | static void encode_base64 __P((u_int8_t *, u_int8_t *, u_int16_t)); | 72 | static void encode_base64(u_int8_t *, u_int8_t *, u_int16_t); |
73 | static void decode_base64 __P((u_int8_t *, u_int16_t, u_int8_t *)); | 73 | static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *); |
74 | 74 | ||
75 | static char encrypted[_PASSWORD_LEN]; | 75 | static char encrypted[_PASSWORD_LEN]; |
76 | static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; | 76 | static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; |
diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index d1a342c178..6a0b6243fe 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypt.c,v 1.14 2001/06/27 00:58:53 lebel Exp $ */ | 1 | /* $OpenBSD: crypt.c,v 1.15 2002/02/16 21:27:21 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * FreeSec: libcrypt | 4 | * FreeSec: libcrypt |
@@ -52,7 +52,7 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.14 2001/06/27 00:58:53 lebel Exp $"; | 55 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.15 2002/02/16 21:27:21 millert Exp $"; |
56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ |
57 | 57 | ||
58 | #include <sys/types.h> | 58 | #include <sys/types.h> |
@@ -594,8 +594,8 @@ crypt(key, setting) | |||
594 | u_int32_t count, salt, l, r0, r1, keybuf[2]; | 594 | u_int32_t count, salt, l, r0, r1, keybuf[2]; |
595 | u_char *p, *q; | 595 | u_char *p, *q; |
596 | static u_char output[21]; | 596 | static u_char output[21]; |
597 | extern char *md5crypt __P((const char *, const char *)); | 597 | extern char *md5crypt(const char *, const char *); |
598 | extern char *bcrypt __P((const char *, const char *)); | 598 | extern char *bcrypt(const char *, const char *); |
599 | 599 | ||
600 | if (setting[0] == '$') { | 600 | if (setting[0] == '$') { |
601 | switch (setting[1]) { | 601 | switch (setting[1]) { |
diff --git a/src/lib/libc/crypt/md5crypt.c b/src/lib/libc/crypt/md5crypt.c index 7ec60f38e0..56ab66fbb5 100644 --- a/src/lib/libc/crypt/md5crypt.c +++ b/src/lib/libc/crypt/md5crypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5crypt.c,v 1.9 1997/07/23 20:58:27 kstailey Exp $ */ | 1 | /* $OpenBSD: md5crypt.c,v 1.10 2002/02/16 21:27:22 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ---------------------------------------------------------------------------- | 4 | * ---------------------------------------------------------------------------- |
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #if defined(LIBC_SCCS) && !defined(lint) | 15 | #if defined(LIBC_SCCS) && !defined(lint) |
16 | static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.9 1997/07/23 20:58:27 kstailey Exp $"; | 16 | static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.10 2002/02/16 21:27:22 millert Exp $"; |
17 | #endif /* LIBC_SCCS and not lint */ | 17 | #endif /* LIBC_SCCS and not lint */ |
18 | 18 | ||
19 | #include <unistd.h> | 19 | #include <unistd.h> |
@@ -25,7 +25,7 @@ static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.9 1997/07/23 20:58:27 kstailey E | |||
25 | static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ | 25 | static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ |
26 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | 26 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
27 | 27 | ||
28 | static void to64 __P((char *, u_int32_t, int)); | 28 | static void to64(char *, u_int32_t, int); |
29 | 29 | ||
30 | static void | 30 | static void |
31 | to64(s, v, n) | 31 | to64(s, v, n) |
diff --git a/src/lib/libc/include/thread_private.h b/src/lib/libc/include/thread_private.h index 723bed5f51..8cf06a86c4 100644 --- a/src/lib/libc/include/thread_private.h +++ b/src/lib/libc/include/thread_private.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: thread_private.h,v 1.10 2001/09/04 22:17:45 fgsch Exp $ */ | 1 | /* $OpenBSD: thread_private.h,v 1.11 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | #ifndef _THREAD_PRIVATE_H_ | 3 | #ifndef _THREAD_PRIVATE_H_ |
4 | #define _THREAD_PRIVATE_H_ | 4 | #define _THREAD_PRIVATE_H_ |
@@ -55,7 +55,7 @@ extern int __isthreaded; | |||
55 | 55 | ||
56 | struct _thread_private_key_struct { | 56 | struct _thread_private_key_struct { |
57 | pthread_once_t once; | 57 | pthread_once_t once; |
58 | void (*cleanfn)__P((void *)); | 58 | void (*cleanfn)(void *); |
59 | pthread_key_t key; | 59 | pthread_key_t key; |
60 | }; | 60 | }; |
61 | 61 | ||
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c index 2c8328a9ba..e7781438c1 100644 --- a/src/lib/libc/net/ethers.c +++ b/src/lib/libc/net/ethers.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $ */ | 1 | /* $OpenBSD: ethers.c,v 1.13 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
37 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $"; | 37 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.13 2002/02/16 21:27:23 millert Exp $"; |
38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
39 | 39 | ||
40 | #include <sys/types.h> | 40 | #include <sys/types.h> |
@@ -57,7 +57,7 @@ static char rcsid[] = "$OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $ | |||
57 | #define _PATH_ETHERS "/etc/ethers" | 57 | #define _PATH_ETHERS "/etc/ethers" |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | static char * _ether_aton __P((char *, struct ether_addr *)); | 60 | static char * _ether_aton(char *, struct ether_addr *); |
61 | 61 | ||
62 | char * | 62 | char * |
63 | ether_ntoa(e) | 63 | ether_ntoa(e) |
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 5b36626ceb..72183d260b 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getaddrinfo.c,v 1.31 2002/01/02 23:00:10 deraadt Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.32 2002/02/16 21:27:23 millert Exp $ */ |
2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -199,7 +199,7 @@ struct res_target { | |||
199 | int n; /* result length */ | 199 | int n; /* result length */ |
200 | }; | 200 | }; |
201 | 201 | ||
202 | static int str_isnumber __P((const char *)); | 202 | static int str_isnumber(const char *); |
203 | static int explore_fqdn __P((const struct addrinfo *, const char *, | 203 | static int explore_fqdn __P((const struct addrinfo *, const char *, |
204 | const char *, struct addrinfo **)); | 204 | const char *, struct addrinfo **)); |
205 | static int explore_null __P((const struct addrinfo *, | 205 | static int explore_null __P((const struct addrinfo *, |
@@ -212,32 +212,32 @@ static int get_canonname __P((const struct addrinfo *, | |||
212 | struct addrinfo *, const char *)); | 212 | struct addrinfo *, const char *)); |
213 | static struct addrinfo *get_ai __P((const struct addrinfo *, | 213 | static struct addrinfo *get_ai __P((const struct addrinfo *, |
214 | const struct afd *, const char *)); | 214 | const struct afd *, const char *)); |
215 | static int get_portmatch __P((const struct addrinfo *, const char *)); | 215 | static int get_portmatch(const struct addrinfo *, const char *); |
216 | static int get_port __P((struct addrinfo *, const char *, int)); | 216 | static int get_port(struct addrinfo *, const char *, int); |
217 | static const struct afd *find_afd __P((int)); | 217 | static const struct afd *find_afd(int); |
218 | #if 0 | 218 | #if 0 |
219 | static int addrconfig __P((const struct addrinfo *)); | 219 | static int addrconfig(const struct addrinfo *); |
220 | #endif | 220 | #endif |
221 | #ifdef INET6 | 221 | #ifdef INET6 |
222 | static int ip6_str2scopeid __P((char *, struct sockaddr_in6 *)); | 222 | static int ip6_str2scopeid(char *, struct sockaddr_in6 *); |
223 | #endif | 223 | #endif |
224 | 224 | ||
225 | static void _sethtent __P((void)); | 225 | static void _sethtent(void); |
226 | static void _endhtent __P((void)); | 226 | static void _endhtent(void); |
227 | static struct addrinfo * _gethtent __P((const char *, const struct addrinfo *)); | 227 | static struct addrinfo * _gethtent(const char *, const struct addrinfo *); |
228 | static struct addrinfo *_files_getaddrinfo __P((const char *, | 228 | static struct addrinfo *_files_getaddrinfo __P((const char *, |
229 | const struct addrinfo *)); | 229 | const struct addrinfo *)); |
230 | 230 | ||
231 | #ifdef YP | 231 | #ifdef YP |
232 | static struct addrinfo *_yphostent __P((char *, const struct addrinfo *)); | 232 | static struct addrinfo *_yphostent(char *, const struct addrinfo *); |
233 | static struct addrinfo *_yp_getaddrinfo __P((const char *, | 233 | static struct addrinfo *_yp_getaddrinfo __P((const char *, |
234 | const struct addrinfo *)); | 234 | const struct addrinfo *)); |
235 | #endif | 235 | #endif |
236 | 236 | ||
237 | static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int, | 237 | static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int, |
238 | const struct addrinfo *)); | 238 | const struct addrinfo *)); |
239 | static int res_queryN __P((const char *, struct res_target *)); | 239 | static int res_queryN(const char *, struct res_target *); |
240 | static int res_searchN __P((const char *, struct res_target *)); | 240 | static int res_searchN(const char *, struct res_target *); |
241 | static int res_querydomainN __P((const char *, const char *, | 241 | static int res_querydomainN __P((const char *, const char *, |
242 | struct res_target *)); | 242 | struct res_target *)); |
243 | static struct addrinfo *_dns_getaddrinfo __P((const char *, | 243 | static struct addrinfo *_dns_getaddrinfo __P((const char *, |
@@ -1037,7 +1037,7 @@ getanswer(answer, anslen, qname, qtype, pai) | |||
1037 | int type, class, buflen, ancount, qdcount; | 1037 | int type, class, buflen, ancount, qdcount; |
1038 | int haveanswer, had_error; | 1038 | int haveanswer, had_error; |
1039 | char tbuf[MAXDNAME]; | 1039 | char tbuf[MAXDNAME]; |
1040 | int (*name_ok) __P((const char *)); | 1040 | int (*name_ok)(const char *); |
1041 | char hostbuf[8*1024]; | 1041 | char hostbuf[8*1024]; |
1042 | 1042 | ||
1043 | memset(&sentinel, 0, sizeof(sentinel)); | 1043 | memset(&sentinel, 0, sizeof(sentinel)); |
@@ -1509,9 +1509,9 @@ _yp_getaddrinfo(name, pai) | |||
1509 | 1509 | ||
1510 | /* resolver logic */ | 1510 | /* resolver logic */ |
1511 | 1511 | ||
1512 | extern const char *__hostalias __P((const char *)); | 1512 | extern const char *__hostalias(const char *); |
1513 | extern int h_errno; | 1513 | extern int h_errno; |
1514 | extern int res_opt __P((int, u_char *, int, int)); | 1514 | extern int res_opt(int, u_char *, int, int); |
1515 | 1515 | ||
1516 | /* | 1516 | /* |
1517 | * Formulate a normal query, send, and await answer. | 1517 | * Formulate a normal query, send, and await answer. |
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index d7d6c621cf..d4e3c5e6f0 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
@@ -52,7 +52,7 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.43 2001/06/27 00:58:55 lebel Exp $"; | 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.44 2002/02/16 21:27:23 millert Exp $"; |
56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ |
57 | 57 | ||
58 | #include <sys/param.h> | 58 | #include <sys/param.h> |
@@ -98,14 +98,14 @@ static union { | |||
98 | static FILE *hostf = NULL; | 98 | static FILE *hostf = NULL; |
99 | static int stayopen = 0; | 99 | static int stayopen = 0; |
100 | 100 | ||
101 | static void map_v4v6_address __P((const char *src, char *dst)); | 101 | static void map_v4v6_address(const char *src, char *dst); |
102 | static void map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len)); | 102 | static void map_v4v6_hostent(struct hostent *hp, char **bp, int *len); |
103 | 103 | ||
104 | #ifdef RESOLVSORT | 104 | #ifdef RESOLVSORT |
105 | static void addrsort __P((char **, int)); | 105 | static void addrsort(char **, int); |
106 | #endif | 106 | #endif |
107 | 107 | ||
108 | int _hokchar __P((const char *)); | 108 | int _hokchar(const char *); |
109 | 109 | ||
110 | static const char AskedForGot[] = | 110 | static const char AskedForGot[] = |
111 | "gethostby*.getanswer: asked for \"%s\", got \"%s\""; | 111 | "gethostby*.getanswer: asked for \"%s\", got \"%s\""; |
@@ -175,7 +175,7 @@ getanswer(answer, anslen, qname, qtype) | |||
175 | int toobig = 0; | 175 | int toobig = 0; |
176 | char tbuf[MAXDNAME]; | 176 | char tbuf[MAXDNAME]; |
177 | const char *tname; | 177 | const char *tname; |
178 | int (*name_ok) __P((const char *)); | 178 | int (*name_ok)(const char *); |
179 | 179 | ||
180 | tname = qname; | 180 | tname = qname; |
181 | host.h_name = NULL; | 181 | host.h_name = NULL; |
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c index 0ae09ca30f..c19603f2d1 100644 --- a/src/lib/libc/net/getnameinfo.c +++ b/src/lib/libc/net/getnameinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getnameinfo.c,v 1.21 2001/11/15 04:56:15 itojun Exp $ */ | 1 | /* $OpenBSD: getnameinfo.c,v 1.22 2002/02/16 21:27:23 millert Exp $ */ |
2 | /* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ | 2 | /* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -83,7 +83,7 @@ struct sockinet { | |||
83 | #ifdef INET6 | 83 | #ifdef INET6 |
84 | static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, | 84 | static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, |
85 | size_t, int)); | 85 | size_t, int)); |
86 | static int ip6_sa2str __P((const struct sockaddr_in6 *, char *, size_t, int)); | 86 | static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int); |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | int | 89 | int |
diff --git a/src/lib/libc/net/getnetnamadr.c b/src/lib/libc/net/getnetnamadr.c index f755cd9b14..834ddf11ae 100644 --- a/src/lib/libc/net/getnetnamadr.c +++ b/src/lib/libc/net/getnetnamadr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel Exp $ */ | 1 | /* $OpenBSD: getnetnamadr.c,v 1.15 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1997, Jason Downs. All rights reserved. | 4 | * Copyright (c) 1997, Jason Downs. All rights reserved. |
@@ -77,7 +77,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93"; | |||
77 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; | 77 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; |
78 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; | 78 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; |
79 | #else | 79 | #else |
80 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel Exp $"; | 80 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.15 2002/02/16 21:27:23 millert Exp $"; |
81 | #endif | 81 | #endif |
82 | #endif /* LIBC_SCCS and not lint */ | 82 | #endif /* LIBC_SCCS and not lint */ |
83 | 83 | ||
@@ -97,10 +97,10 @@ static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel | |||
97 | 97 | ||
98 | extern int h_errno; | 98 | extern int h_errno; |
99 | 99 | ||
100 | struct netent *_getnetbyaddr __P((in_addr_t net, int type)); | 100 | struct netent *_getnetbyaddr(in_addr_t net, int type); |
101 | struct netent *_getnetbyname __P((const char *name)); | 101 | struct netent *_getnetbyname(const char *name); |
102 | 102 | ||
103 | int _hokchar __P((const char *)); | 103 | int _hokchar(const char *); |
104 | 104 | ||
105 | #define BYADDR 0 | 105 | #define BYADDR 0 |
106 | #define BYNAME 1 | 106 | #define BYNAME 1 |
diff --git a/src/lib/libc/net/inet_ntop.c b/src/lib/libc/net/inet_ntop.c index 64d0d13768..00b8f6b22e 100644 --- a/src/lib/libc/net/inet_ntop.c +++ b/src/lib/libc/net/inet_ntop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Exp $ */ | 1 | /* $OpenBSD: inet_ntop.c,v 1.2 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* Copyright (c) 1996 by Internet Software Consortium. | 3 | /* Copyright (c) 1996 by Internet Software Consortium. |
4 | * | 4 | * |
@@ -20,7 +20,7 @@ | |||
20 | #if 0 | 20 | #if 0 |
21 | static char rcsid[] = "$From: inet_ntop.c,v 8.7 1996/08/05 08:41:18 vixie Exp $"; | 21 | static char rcsid[] = "$From: inet_ntop.c,v 8.7 1996/08/05 08:41:18 vixie Exp $"; |
22 | #else | 22 | #else |
23 | static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Exp $"; | 23 | static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.2 2002/02/16 21:27:23 millert Exp $"; |
24 | #endif | 24 | #endif |
25 | #endif /* LIBC_SCCS and not lint */ | 25 | #endif /* LIBC_SCCS and not lint */ |
26 | 26 | ||
@@ -39,8 +39,8 @@ static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Ex | |||
39 | * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. | 39 | * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | static const char *inet_ntop4 __P((const u_char *src, char *dst, size_t size)); | 42 | static const char *inet_ntop4(const u_char *src, char *dst, size_t size); |
43 | static const char *inet_ntop6 __P((const u_char *src, char *dst, size_t size)); | 43 | static const char *inet_ntop6(const u_char *src, char *dst, size_t size); |
44 | 44 | ||
45 | /* char * | 45 | /* char * |
46 | * inet_ntop(af, src, dst, size) | 46 | * inet_ntop(af, src, dst, size) |
diff --git a/src/lib/libc/net/inet_pton.c b/src/lib/libc/net/inet_pton.c index 0cb13baa31..b04ef05c31 100644 --- a/src/lib/libc/net/inet_pton.c +++ b/src/lib/libc/net/inet_pton.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Exp $ */ | 1 | /* $OpenBSD: inet_pton.c,v 1.4 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* Copyright (c) 1996 by Internet Software Consortium. | 3 | /* Copyright (c) 1996 by Internet Software Consortium. |
4 | * | 4 | * |
@@ -20,7 +20,7 @@ | |||
20 | #if 0 | 20 | #if 0 |
21 | static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; | 21 | static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; |
22 | #else | 22 | #else |
23 | static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Exp $"; | 23 | static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.4 2002/02/16 21:27:23 millert Exp $"; |
24 | #endif | 24 | #endif |
25 | #endif /* LIBC_SCCS and not lint */ | 25 | #endif /* LIBC_SCCS and not lint */ |
26 | 26 | ||
@@ -38,8 +38,8 @@ static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Ex | |||
38 | * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. | 38 | * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. |
39 | */ | 39 | */ |
40 | 40 | ||
41 | static int inet_pton4 __P((const char *src, u_char *dst)); | 41 | static int inet_pton4(const char *src, u_char *dst); |
42 | static int inet_pton6 __P((const char *src, u_char *dst)); | 42 | static int inet_pton6(const char *src, u_char *dst); |
43 | 43 | ||
44 | /* int | 44 | /* int |
45 | * inet_pton(af, src, dst) | 45 | * inet_pton(af, src, dst) |
diff --git a/src/lib/libc/net/ns_addr.c b/src/lib/libc/net/ns_addr.c index 7dcc988afe..0d1b45858f 100644 --- a/src/lib/libc/net/ns_addr.c +++ b/src/lib/libc/net/ns_addr.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.6 2001/06/27 00:58:55 lebel Exp $"; | 38 | static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.7 2002/02/16 21:27:23 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | #include <sys/param.h> | 41 | #include <sys/param.h> |
@@ -45,8 +45,8 @@ static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.6 2001/06/27 00:58:55 lebel Exp $ | |||
45 | 45 | ||
46 | static struct ns_addr addr, zero_addr; | 46 | static struct ns_addr addr, zero_addr; |
47 | 47 | ||
48 | static void Field __P((char *, u_int8_t *, int)); | 48 | static void Field(char *, u_int8_t *, int); |
49 | static void cvtbase __P((long, int, int[], int, u_int8_t[], int)); | 49 | static void cvtbase(long, int, int[], int, u_int8_t[], int); |
50 | 50 | ||
51 | struct ns_addr | 51 | struct ns_addr |
52 | ns_addr(name) | 52 | ns_addr(name) |
diff --git a/src/lib/libc/net/ns_ntoa.c b/src/lib/libc/net/ns_ntoa.c index c33f710966..130ccd388b 100644 --- a/src/lib/libc/net/ns_ntoa.c +++ b/src/lib/libc/net/ns_ntoa.c | |||
@@ -32,14 +32,14 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.7 1997/08/24 21:25:48 millert Exp $"; | 35 | static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.8 2002/02/16 21:27:23 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/param.h> | 38 | #include <sys/param.h> |
39 | #include <netns/ns.h> | 39 | #include <netns/ns.h> |
40 | #include <stdio.h> | 40 | #include <stdio.h> |
41 | 41 | ||
42 | static char *spectHex __P((char *)); | 42 | static char *spectHex(char *); |
43 | 43 | ||
44 | char * | 44 | char * |
45 | ns_ntoa(addr) | 45 | ns_ntoa(addr) |
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index a9fdc1b1d0..95d481a7f6 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.39 2001/09/04 23:35:58 millert Exp $"; | 37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.40 2002/02/16 21:27:23 millert Exp $"; |
38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
39 | 39 | ||
40 | #include <sys/param.h> | 40 | #include <sys/param.h> |
@@ -57,11 +57,11 @@ static char *rcsid = "$OpenBSD: rcmd.c,v 1.39 2001/09/04 23:35:58 millert Exp $" | |||
57 | #include <stdlib.h> | 57 | #include <stdlib.h> |
58 | #include <netgroup.h> | 58 | #include <netgroup.h> |
59 | 59 | ||
60 | int __ivaliduser __P((FILE *, in_addr_t, const char *, const char *)); | 60 | int __ivaliduser(FILE *, in_addr_t, const char *, const char *); |
61 | int __ivaliduser_sa __P((FILE *, struct sockaddr *, socklen_t, | 61 | int __ivaliduser_sa __P((FILE *, struct sockaddr *, socklen_t, |
62 | const char *, const char *)); | 62 | const char *, const char *)); |
63 | static int __icheckhost __P((struct sockaddr *, socklen_t, const char *)); | 63 | static int __icheckhost(struct sockaddr *, socklen_t, const char *); |
64 | static char *__gethostloop __P((struct sockaddr *, socklen_t)); | 64 | static char *__gethostloop(struct sockaddr *, socklen_t); |
65 | 65 | ||
66 | int | 66 | int |
67 | rcmd(ahost, rport, locuser, remuser, cmd, fd2p) | 67 | rcmd(ahost, rport, locuser, remuser, cmd, fd2p) |
diff --git a/src/lib/libc/net/res_init.c b/src/lib/libc/net/res_init.c index c74e0339ba..121606ac48 100644 --- a/src/lib/libc/net/res_init.c +++ b/src/lib/libc/net/res_init.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $ */ | 1 | /* $OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1989, 1993 | 4 | * ++Copyright++ 1985, 1989, 1993 |
@@ -64,7 +64,7 @@ | |||
64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; | 64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; |
65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; | 65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; |
66 | #else | 66 | #else |
67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $"; | 67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $"; |
68 | #endif | 68 | #endif |
69 | #endif /* LIBC_SCCS and not lint */ | 69 | #endif /* LIBC_SCCS and not lint */ |
70 | 70 | ||
@@ -109,12 +109,12 @@ static char rcsid[] = "$OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Ex | |||
109 | * property. | 109 | * property. |
110 | */ | 110 | */ |
111 | 111 | ||
112 | static void res_setoptions __P((char *, char *)); | 112 | static void res_setoptions(char *, char *); |
113 | 113 | ||
114 | #ifdef RESOLVSORT | 114 | #ifdef RESOLVSORT |
115 | static const char sort_mask[] = "/&"; | 115 | static const char sort_mask[] = "/&"; |
116 | #define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) | 116 | #define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) |
117 | static u_int32_t net_mask __P((struct in_addr)); | 117 | static u_int32_t net_mask(struct in_addr); |
118 | #endif | 118 | #endif |
119 | 119 | ||
120 | /* | 120 | /* |
diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index 3cf7928302..24c07491a9 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/lib/libc/net/res_query.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $ */ | 1 | /* $OpenBSD: res_query.c,v 1.17 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1988, 1993 | 4 | * ++Copyright++ 1988, 1993 |
@@ -60,7 +60,7 @@ | |||
60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; |
61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; |
62 | #else | 62 | #else |
63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.17 2002/02/16 21:27:23 millert Exp $"; |
64 | #endif | 64 | #endif |
65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
66 | 66 | ||
@@ -85,9 +85,9 @@ static char rcsid[] = "$OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Ex | |||
85 | #define MAXPACKET 1024 | 85 | #define MAXPACKET 1024 |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | const char *hostalias __P((const char *)); | 88 | const char *hostalias(const char *); |
89 | int h_errno; | 89 | int h_errno; |
90 | extern int res_opt __P((int, u_char *, int, int)); | 90 | extern int res_opt(int, u_char *, int, int); |
91 | 91 | ||
92 | /* | 92 | /* |
93 | * Formulate a normal query, send, and await answer. | 93 | * Formulate a normal query, send, and await answer. |
diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c index a11241246d..6a6a142e96 100644 --- a/src/lib/libc/net/res_random.c +++ b/src/lib/libc/net/res_random.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_random.c,v 1.9 2001/01/04 21:45:31 todd Exp $ */ | 1 | /* $OpenBSD: res_random.c,v 1.10 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
@@ -92,8 +92,8 @@ static long ru_reseed; | |||
92 | static u_int32_t tmp; /* Storage for unused random */ | 92 | static u_int32_t tmp; /* Storage for unused random */ |
93 | static struct timeval tv; | 93 | static struct timeval tv; |
94 | 94 | ||
95 | static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t)); | 95 | static u_int16_t pmod(u_int16_t, u_int16_t, u_int16_t); |
96 | static void res_initid __P((void)); | 96 | static void res_initid(void); |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * Do a fast modular exponation, returned value will be in the range | 99 | * Do a fast modular exponation, returned value will be in the range |
diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c index ab50559de6..81bf23ba9f 100644 --- a/src/lib/libc/net/res_send.c +++ b/src/lib/libc/net/res_send.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $ */ | 1 | /* $OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1989, 1993 | 4 | * ++Copyright++ 1985, 1989, 1993 |
@@ -64,7 +64,7 @@ | |||
64 | static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; | 64 | static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; |
65 | static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; | 65 | static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; |
66 | #else | 66 | #else |
67 | static char rcsid[] = "$OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $"; | 67 | static char rcsid[] = "$OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $"; |
68 | #endif | 68 | #endif |
69 | #endif /* LIBC_SCCS and not lint */ | 69 | #endif /* LIBC_SCCS and not lint */ |
70 | 70 | ||
@@ -126,8 +126,8 @@ static int af = 0; /* address family of socket */ | |||
126 | } else {} | 126 | } else {} |
127 | static char abuf[NI_MAXHOST]; | 127 | static char abuf[NI_MAXHOST]; |
128 | static char pbuf[NI_MAXSERV]; | 128 | static char pbuf[NI_MAXSERV]; |
129 | static void Aerror __P((FILE *, char *, int, struct sockaddr *)); | 129 | static void Aerror(FILE *, char *, int, struct sockaddr *); |
130 | static void Perror __P((FILE *, char *, int)); | 130 | static void Perror(FILE *, char *, int); |
131 | 131 | ||
132 | static void | 132 | static void |
133 | Aerror(file, string, error, address) | 133 | Aerror(file, string, error, address) |
@@ -186,7 +186,7 @@ res_send_setrhook(hook) | |||
186 | } | 186 | } |
187 | 187 | ||
188 | #ifdef INET6 | 188 | #ifdef INET6 |
189 | static struct sockaddr * get_nsaddr __P((size_t)); | 189 | static struct sockaddr * get_nsaddr(size_t); |
190 | 190 | ||
191 | /* | 191 | /* |
192 | * pick appropriate nsaddr_list for use. see res_init() for initialization. | 192 | * pick appropriate nsaddr_list for use. see res_init() for initialization. |
diff --git a/src/lib/libc/stdlib/bsearch.c b/src/lib/libc/stdlib/bsearch.c index eeef9bffc6..1903202b6c 100644 --- a/src/lib/libc/stdlib/bsearch.c +++ b/src/lib/libc/stdlib/bsearch.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: bsearch.c,v 1.2 1996/08/19 08:33:26 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: bsearch.c,v 1.3 2002/02/16 21:27:24 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
@@ -59,7 +59,7 @@ bsearch(key, base0, nmemb, size, compar) | |||
59 | const void *base0; | 59 | const void *base0; |
60 | size_t nmemb; | 60 | size_t nmemb; |
61 | register size_t size; | 61 | register size_t size; |
62 | register int (*compar) __P((const void *, const void *)); | 62 | register int (*compar)(const void *, const void *); |
63 | { | 63 | { |
64 | register const char *base = base0; | 64 | register const char *base = base0; |
65 | register int lim, cmp; | 65 | register int lim, cmp; |
diff --git a/src/lib/libc/stdlib/heapsort.c b/src/lib/libc/stdlib/heapsort.c index e3e4392e05..2770e5b977 100644 --- a/src/lib/libc/stdlib/heapsort.c +++ b/src/lib/libc/stdlib/heapsort.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: heapsort.c,v 1.2 1996/08/19 08:33:32 tholo Exp $"; | 38 | static char *rcsid = "$OpenBSD: heapsort.c,v 1.3 2002/02/16 21:27:24 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | #include <sys/types.h> | 41 | #include <sys/types.h> |
@@ -141,7 +141,7 @@ int | |||
141 | heapsort(vbase, nmemb, size, compar) | 141 | heapsort(vbase, nmemb, size, compar) |
142 | void *vbase; | 142 | void *vbase; |
143 | size_t nmemb, size; | 143 | size_t nmemb, size; |
144 | int (*compar) __P((const void *, const void *)); | 144 | int (*compar)(const void *, const void *); |
145 | { | 145 | { |
146 | register int cnt, i, j, l; | 146 | register int cnt, i, j, l; |
147 | register char tmp, *tmp1, *tmp2; | 147 | register char tmp, *tmp1, *tmp2; |
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 6fae6fe565..bca7bb7c4e 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c | |||
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #if defined(LIBC_SCCS) && !defined(lint) | 10 | #if defined(LIBC_SCCS) && !defined(lint) |
11 | static char rcsid[] = "$OpenBSD: malloc.c,v 1.46 2002/01/23 20:42:24 fgsch Exp $"; | 11 | static char rcsid[] = "$OpenBSD: malloc.c,v 1.47 2002/02/16 21:27:24 millert Exp $"; |
12 | #endif /* LIBC_SCCS and not lint */ | 12 | #endif /* LIBC_SCCS and not lint */ |
13 | 13 | ||
14 | /* | 14 | /* |
@@ -88,7 +88,7 @@ static char rcsid[] = "$OpenBSD: malloc.c,v 1.46 2002/01/23 20:42:24 fgsch Exp $ | |||
88 | * we use the unwrapped syscall _thread_sys_write() | 88 | * we use the unwrapped syscall _thread_sys_write() |
89 | */ | 89 | */ |
90 | # define write _thread_sys_write | 90 | # define write _thread_sys_write |
91 | ssize_t write __P((int, const void *, size_t)); | 91 | ssize_t write(int, const void *, size_t); |
92 | # undef malloc | 92 | # undef malloc |
93 | # undef realloc | 93 | # undef realloc |
94 | # undef free | 94 | # undef free |
@@ -243,7 +243,7 @@ static int malloc_utrace; | |||
243 | 243 | ||
244 | struct ut { void *p; size_t s; void *r; }; | 244 | struct ut { void *p; size_t s; void *r; }; |
245 | 245 | ||
246 | void utrace __P((struct ut *, int)); | 246 | void utrace(struct ut *, int); |
247 | 247 | ||
248 | #define UTRACE(a, b, c) \ | 248 | #define UTRACE(a, b, c) \ |
249 | if (malloc_utrace) \ | 249 | if (malloc_utrace) \ |
diff --git a/src/lib/libc/stdlib/merge.c b/src/lib/libc/stdlib/merge.c index 0a1015ad9d..345eb2fd8b 100644 --- a/src/lib/libc/stdlib/merge.c +++ b/src/lib/libc/stdlib/merge.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: merge.c,v 1.3 1996/09/15 09:31:50 tholo Exp $"; | 38 | static char *rcsid = "$OpenBSD: merge.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | /* | 41 | /* |
@@ -99,7 +99,7 @@ mergesort(base, nmemb, size, cmp) | |||
99 | void *base; | 99 | void *base; |
100 | size_t nmemb; | 100 | size_t nmemb; |
101 | register size_t size; | 101 | register size_t size; |
102 | int (*cmp) __P((const void *, const void *)); | 102 | int (*cmp)(const void *, const void *); |
103 | { | 103 | { |
104 | register int i, sense; | 104 | register int i, sense; |
105 | int big, iflag; | 105 | int big, iflag; |
@@ -257,7 +257,7 @@ COPY: b = t; | |||
257 | void | 257 | void |
258 | setup(list1, list2, n, size, cmp) | 258 | setup(list1, list2, n, size, cmp) |
259 | size_t n, size; | 259 | size_t n, size; |
260 | int (*cmp) __P((const void *, const void *)); | 260 | int (*cmp)(const void *, const void *); |
261 | u_char *list1, *list2; | 261 | u_char *list1, *list2; |
262 | { | 262 | { |
263 | int i, length, size2, tmp, sense; | 263 | int i, length, size2, tmp, sense; |
@@ -332,7 +332,7 @@ static void | |||
332 | insertionsort(a, n, size, cmp) | 332 | insertionsort(a, n, size, cmp) |
333 | u_char *a; | 333 | u_char *a; |
334 | size_t n, size; | 334 | size_t n, size; |
335 | int (*cmp) __P((const void *, const void *)); | 335 | int (*cmp)(const void *, const void *); |
336 | { | 336 | { |
337 | u_char *ai, *s, *t, *u, tmp; | 337 | u_char *ai, *s, *t, *u, tmp; |
338 | int i; | 338 | int i; |
diff --git a/src/lib/libc/stdlib/qsort.c b/src/lib/libc/stdlib/qsort.c index 1c3020b595..d16ed7b0bd 100644 --- a/src/lib/libc/stdlib/qsort.c +++ b/src/lib/libc/stdlib/qsort.c | |||
@@ -32,14 +32,14 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: qsort.c,v 1.5 1997/06/20 11:19:38 deraadt Exp $"; | 35 | static char *rcsid = "$OpenBSD: qsort.c,v 1.6 2002/02/16 21:27:24 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/types.h> | 38 | #include <sys/types.h> |
39 | #include <stdlib.h> | 39 | #include <stdlib.h> |
40 | 40 | ||
41 | static __inline char *med3 __P((char *, char *, char *, int (*)())); | 41 | static __inline char *med3 __P((char *, char *, char *, int (*)())); |
42 | static __inline void swapfunc __P((char *, char *, int, int)); | 42 | static __inline void swapfunc(char *, char *, int, int); |
43 | 43 | ||
44 | #define min(a, b) (a) < (b) ? a : b | 44 | #define min(a, b) (a) < (b) ? a : b |
45 | 45 | ||
diff --git a/src/lib/libc/stdlib/radixsort.c b/src/lib/libc/stdlib/radixsort.c index 41ed962466..40d7c0789f 100644 --- a/src/lib/libc/stdlib/radixsort.c +++ b/src/lib/libc/stdlib/radixsort.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: radixsort.c,v 1.3 1996/08/19 08:33:44 tholo Exp $"; | 38 | static char *rcsid = "$OpenBSD: radixsort.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | /* | 41 | /* |
@@ -61,8 +61,8 @@ typedef struct { | |||
61 | } stack; | 61 | } stack; |
62 | 62 | ||
63 | static __inline void simplesort | 63 | static __inline void simplesort |
64 | __P((const u_char **, int, int, const u_char *, u_int)); | 64 | (const u_char **, int, int, const u_char *, u_int); |
65 | static void r_sort_a __P((const u_char **, int, int, const u_char *, u_int)); | 65 | static void r_sort_a(const u_char **, int, int, const u_char *, u_int); |
66 | static void r_sort_b __P((const u_char **, | 66 | static void r_sort_b __P((const u_char **, |
67 | const u_char **, int, int, const u_char *, u_int)); | 67 | const u_char **, int, int, const u_char *, u_int)); |
68 | 68 | ||
diff --git a/src/lib/libc/stdlib/rand48.h b/src/lib/libc/stdlib/rand48.h index e7cb3e0333..afa49f65f3 100644 --- a/src/lib/libc/stdlib/rand48.h +++ b/src/lib/libc/stdlib/rand48.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * of any kind. I shall in no event be liable for anything that happens | 10 | * of any kind. I shall in no event be liable for anything that happens |
11 | * to anyone/anything when using this software. | 11 | * to anyone/anything when using this software. |
12 | * | 12 | * |
13 | * $OpenBSD: rand48.h,v 1.2 1996/08/19 08:33:45 tholo Exp $ | 13 | * $OpenBSD: rand48.h,v 1.3 2002/02/16 21:27:24 millert Exp $ |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef _RAND48_H_ | 16 | #ifndef _RAND48_H_ |
@@ -19,7 +19,7 @@ | |||
19 | #include <math.h> | 19 | #include <math.h> |
20 | #include <stdlib.h> | 20 | #include <stdlib.h> |
21 | 21 | ||
22 | void __dorand48 __P((unsigned short[3])); | 22 | void __dorand48(unsigned short[3]); |
23 | 23 | ||
24 | #define RAND48_SEED_0 (0x330e) | 24 | #define RAND48_SEED_0 (0x330e) |
25 | #define RAND48_SEED_1 (0xabcd) | 25 | #define RAND48_SEED_1 (0xabcd) |
diff --git a/src/lib/libc/stdlib/tfind.c b/src/lib/libc/stdlib/tfind.c index 9e5bd4b0f2..5c3b8c17f5 100644 --- a/src/lib/libc/stdlib/tfind.c +++ b/src/lib/libc/stdlib/tfind.c | |||
@@ -22,7 +22,7 @@ void * | |||
22 | tfind(vkey, vrootp, compar) | 22 | tfind(vkey, vrootp, compar) |
23 | const void *vkey; /* key to be found */ | 23 | const void *vkey; /* key to be found */ |
24 | void *const *vrootp; /* address of the tree root */ | 24 | void *const *vrootp; /* address of the tree root */ |
25 | int (*compar) __P((const void *, const void *)); | 25 | int (*compar)(const void *, const void *); |
26 | { | 26 | { |
27 | char *key = (char *)vkey; | 27 | char *key = (char *)vkey; |
28 | node **rootp = (node **)vrootp; | 28 | node **rootp = (node **)vrootp; |
diff --git a/src/lib/libc/stdlib/tsearch.c b/src/lib/libc/stdlib/tsearch.c index 562ace1845..0ad5866172 100644 --- a/src/lib/libc/stdlib/tsearch.c +++ b/src/lib/libc/stdlib/tsearch.c | |||
@@ -23,7 +23,7 @@ void * | |||
23 | tsearch(vkey, vrootp, compar) | 23 | tsearch(vkey, vrootp, compar) |
24 | const void *vkey; /* key to be located */ | 24 | const void *vkey; /* key to be located */ |
25 | void **vrootp; /* address of tree root */ | 25 | void **vrootp; /* address of tree root */ |
26 | int (*compar) __P((const void *, const void *)); | 26 | int (*compar)(const void *, const void *); |
27 | { | 27 | { |
28 | register node *q; | 28 | register node *q; |
29 | char *key = (char *)vkey; | 29 | char *key = (char *)vkey; |
@@ -54,7 +54,7 @@ void * | |||
54 | tdelete(vkey, vrootp, compar) | 54 | tdelete(vkey, vrootp, compar) |
55 | const void *vkey; /* key to be deleted */ | 55 | const void *vkey; /* key to be deleted */ |
56 | void **vrootp; /* address of the root of tree */ | 56 | void **vrootp; /* address of the root of tree */ |
57 | int (*compar) __P((const void *, const void *)); | 57 | int (*compar)(const void *, const void *); |
58 | { | 58 | { |
59 | node **rootp = (node **)vrootp; | 59 | node **rootp = (node **)vrootp; |
60 | char *key = (char *)vkey; | 60 | char *key = (char *)vkey; |
@@ -117,7 +117,7 @@ trecurse(root, action, level) | |||
117 | void | 117 | void |
118 | twalk(vroot, action) | 118 | twalk(vroot, action) |
119 | const void *vroot; /* Root of the tree to be walked */ | 119 | const void *vroot; /* Root of the tree to be walked */ |
120 | void (*action) __P((const void *, VISIT, int)); | 120 | void (*action)(const void *, VISIT, int); |
121 | { | 121 | { |
122 | node *root = (node *)vroot; | 122 | node *root = (node *)vroot; |
123 | 123 | ||
diff --git a/src/lib/libc/string/strerror.c b/src/lib/libc/string/strerror.c index 0e2690c3dd..b884a67df3 100644 --- a/src/lib/libc/string/strerror.c +++ b/src/lib/libc/string/strerror.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: strerror.c,v 1.2 1996/08/19 08:34:17 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: strerror.c,v 1.3 2002/02/16 21:27:24 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <string.h> | 38 | #include <string.h> |
@@ -44,7 +44,7 @@ static char *rcsid = "$OpenBSD: strerror.c,v 1.2 1996/08/19 08:34:17 tholo Exp $ | |||
44 | * internal function __strerror(). | 44 | * internal function __strerror(). |
45 | */ | 45 | */ |
46 | 46 | ||
47 | extern char *__strerror __P((int, char *)); | 47 | extern char *__strerror(int, char *); |
48 | 48 | ||
49 | char * | 49 | char * |
50 | strerror(num) | 50 | strerror(num) |
diff --git a/src/lib/libc/string/strsignal.c b/src/lib/libc/string/strsignal.c index cf03af5963..90118f70f9 100644 --- a/src/lib/libc/string/strsignal.c +++ b/src/lib/libc/string/strsignal.c | |||
@@ -32,13 +32,13 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: strsignal.c,v 1.2 1996/08/19 08:34:25 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: strsignal.c,v 1.3 2002/02/16 21:27:24 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <string.h> | 38 | #include <string.h> |
39 | #include <limits.h> | 39 | #include <limits.h> |
40 | 40 | ||
41 | extern char *__strsignal __P((int, char *)); | 41 | extern char *__strsignal(int, char *); |
42 | 42 | ||
43 | char * | 43 | char * |
44 | strsignal(sig) | 44 | strsignal(sig) |
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index 63e80524ec..9f4da58800 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/regress/lib/libc/db/dbtest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dbtest.c,v 1.6 2001/01/29 02:05:40 niklas Exp $ */ | 1 | /* $OpenBSD: dbtest.c,v 1.7 2002/02/16 21:27:32 millert Exp $ */ |
2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ | 2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -44,7 +44,7 @@ static char copyright[] = | |||
44 | #if 0 | 44 | #if 0 |
45 | static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94"; | 45 | static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94"; |
46 | #else | 46 | #else |
47 | static char rcsid[] = "$OpenBSD: dbtest.c,v 1.6 2001/01/29 02:05:40 niklas Exp $"; | 47 | static char rcsid[] = "$OpenBSD: dbtest.c,v 1.7 2002/02/16 21:27:32 millert Exp $"; |
48 | #endif | 48 | #endif |
49 | #endif /* not lint */ | 49 | #endif /* not lint */ |
50 | 50 | ||
@@ -64,22 +64,22 @@ static char rcsid[] = "$OpenBSD: dbtest.c,v 1.6 2001/01/29 02:05:40 niklas Exp $ | |||
64 | 64 | ||
65 | enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; | 65 | enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; |
66 | 66 | ||
67 | void compare __P((DBT *, DBT *)); | 67 | void compare(DBT *, DBT *); |
68 | DBTYPE dbtype __P((char *)); | 68 | DBTYPE dbtype(char *); |
69 | void dump __P((DB *, int)); | 69 | void dump(DB *, int); |
70 | void err __P((const char *, ...)); | 70 | void err(const char *, ...); |
71 | void get __P((DB *, DBT *)); | 71 | void get(DB *, DBT *); |
72 | void getdata __P((DB *, DBT *, DBT *)); | 72 | void getdata(DB *, DBT *, DBT *); |
73 | void put __P((DB *, DBT *, DBT *)); | 73 | void put(DB *, DBT *, DBT *); |
74 | void rem __P((DB *, DBT *)); | 74 | void rem(DB *, DBT *); |
75 | char *sflags __P((int)); | 75 | char *sflags(int); |
76 | void synk __P((DB *)); | 76 | void synk(DB *); |
77 | void *rfile __P((char *, size_t *)); | 77 | void *rfile(char *, size_t *); |
78 | void seq __P((DB *, DBT *)); | 78 | void seq(DB *, DBT *); |
79 | u_int setflags __P((char *)); | 79 | u_int setflags(char *); |
80 | void *setinfo __P((DBTYPE, char *)); | 80 | void *setinfo(DBTYPE, char *); |
81 | void usage __P((void)); | 81 | void usage(void); |
82 | void *xmalloc __P((char *, size_t)); | 82 | void *xmalloc(char *, size_t); |
83 | 83 | ||
84 | DBTYPE type; /* Database type. */ | 84 | DBTYPE type; /* Database type. */ |
85 | void *infop; /* Iflags. */ | 85 | void *infop; /* Iflags. */ |
diff --git a/src/regress/lib/libc/regex/debug.ih b/src/regress/lib/libc/regex/debug.ih index 2aa0449038..9eb313af23 100644 --- a/src/regress/lib/libc/regex/debug.ih +++ b/src/regress/lib/libc/regex/debug.ih | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: debug.ih,v 1.2 2001/01/29 02:05:44 niklas Exp $ */ | 1 | /* $OpenBSD: debug.ih,v 1.3 2002/02/16 21:27:32 millert Exp $ */ |
2 | /* $NetBSD: debug.ih,v 1.2 1995/04/20 22:39:47 cgd Exp $ */ | 2 | /* $NetBSD: debug.ih,v 1.2 1995/04/20 22:39:47 cgd Exp $ */ |
3 | 3 | ||
4 | /* ========= begin header generated by ./mkh ========= */ | 4 | /* ========= begin header generated by ./mkh ========= */ |
@@ -7,9 +7,9 @@ extern "C" { | |||
7 | #endif | 7 | #endif |
8 | 8 | ||
9 | /* === debug.c === */ | 9 | /* === debug.c === */ |
10 | void regprint __P((regex_t *r, FILE *d)); | 10 | void regprint(regex_t *r, FILE *d); |
11 | static void s_print __P((register struct re_guts *g, FILE *d)); | 11 | static void s_print(register struct re_guts *g, FILE *d); |
12 | static char *regchar __P((int ch)); | 12 | static char *regchar(int ch); |
13 | 13 | ||
14 | #ifdef __cplusplus | 14 | #ifdef __cplusplus |
15 | } | 15 | } |
diff --git a/src/regress/lib/libc/regex/main.ih b/src/regress/lib/libc/regex/main.ih index 9e3246889e..0860e26333 100644 --- a/src/regress/lib/libc/regex/main.ih +++ b/src/regress/lib/libc/regex/main.ih | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: main.ih,v 1.2 2001/01/29 02:05:44 niklas Exp $ */ | 1 | /* $OpenBSD: main.ih,v 1.3 2002/02/16 21:27:32 millert Exp $ */ |
2 | /* $NetBSD: main.ih,v 1.2 1995/04/20 22:39:55 cgd Exp $ */ | 2 | /* $NetBSD: main.ih,v 1.2 1995/04/20 22:39:55 cgd Exp $ */ |
3 | 3 | ||
4 | /* ========= begin header generated by ./mkh ========= */ | 4 | /* ========= begin header generated by ./mkh ========= */ |
@@ -7,14 +7,14 @@ extern "C" { | |||
7 | #endif | 7 | #endif |
8 | 8 | ||
9 | /* === main.c === */ | 9 | /* === main.c === */ |
10 | void regress __P((FILE *in)); | 10 | void regress(FILE *in); |
11 | void try __P((char *f0, char *f1, char *f2, char *f3, char *f4, int opts)); | 11 | void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); |
12 | int options __P((int type, char *s)); | 12 | int options(int type, char *s); |
13 | int opt __P((int c, char *s)); | 13 | int opt(int c, char *s); |
14 | void fixstr __P((register char *p)); | 14 | void fixstr(register char *p); |
15 | char *check __P((char *str, regmatch_t sub, char *should)); | 15 | char *check(char *str, regmatch_t sub, char *should); |
16 | static char *eprint __P((int err)); | 16 | static char *eprint(int err); |
17 | static int efind __P((char *name)); | 17 | static int efind(char *name); |
18 | 18 | ||
19 | #ifdef __cplusplus | 19 | #ifdef __cplusplus |
20 | } | 20 | } |
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 0652c4c0b7..a8e53fd500 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.39 2001/10/28 19:52:04 jakob Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.40 2002/02/16 21:27:50 millert Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
4 | * | 4 | * |
@@ -69,14 +69,14 @@ int family = AF_UNSPEC; | |||
69 | char *portlist[PORT_MAX]; | 69 | char *portlist[PORT_MAX]; |
70 | 70 | ||
71 | ssize_t atomicio __P((ssize_t (*)(), int, void *, size_t)); | 71 | ssize_t atomicio __P((ssize_t (*)(), int, void *, size_t)); |
72 | void atelnet __P((int, unsigned char *, unsigned int)); | 72 | void atelnet(int, unsigned char *, unsigned int); |
73 | void build_ports __P((char *)); | 73 | void build_ports(char *); |
74 | void help __P((void)); | 74 | void help(void); |
75 | int local_listen __P((char *, char *, struct addrinfo)); | 75 | int local_listen(char *, char *, struct addrinfo); |
76 | void readwrite __P((int)); | 76 | void readwrite(int); |
77 | int remote_connect __P((char *, char *, struct addrinfo)); | 77 | int remote_connect(char *, char *, struct addrinfo); |
78 | int udptest __P((int)); | 78 | int udptest(int); |
79 | void usage __P((int)); | 79 | void usage(int); |
80 | 80 | ||
81 | int | 81 | int |
82 | main(int argc, char *argv[]) | 82 | main(int argc, char *argv[]) |