readfile.c (5ed136e814a98e845927fffa6aa7c497dbd8fa5e) | readfile.c (f19d047aec2b1d05cfb00498caff5141094d1124) |
---|---|
1/************************************************************************ 2 Copyright 1988, 1991 by Carnegie Mellon University 3 4 All Rights Reserved 5 6Permission to use, copy, modify, and distribute this software and its 7documentation for any purpose and without fee is hereby granted, provided 8that the above copyright notice appear in all copies and that both that --- 213 unchanged lines hidden (view full) --- 222}; 223 224 225 226/* 227 * Externals and forward declarations. 228 */ 229 | 1/************************************************************************ 2 Copyright 1988, 1991 by Carnegie Mellon University 3 4 All Rights Reserved 5 6Permission to use, copy, modify, and distribute this software and its 7documentation for any purpose and without fee is hereby granted, provided 8that the above copyright notice appear in all copies and that both that --- 213 unchanged lines hidden (view full) --- 222}; 223 224 225 226/* 227 * Externals and forward declarations. 228 */ 229 |
230#define P(args) args 231 | |
232extern boolean iplookcmp(); | 230extern boolean iplookcmp(); |
233boolean nmcmp P((hash_datum *, hash_datum *)); | 231boolean nmcmp(hash_datum *, hash_datum *); |
234 235PRIVATE void | 232 233PRIVATE void |
236 adjust P((char **)); | 234 adjust(char **); |
237PRIVATE void | 235PRIVATE void |
238 del_string P((struct shared_string *)); | 236 del_string(struct shared_string *); |
239PRIVATE void | 237PRIVATE void |
240 del_bindata P((struct shared_bindata *)); | 238 del_bindata(struct shared_bindata *); |
241PRIVATE void | 239PRIVATE void |
242 del_iplist P((struct in_addr_list *)); | 240 del_iplist(struct in_addr_list *); |
243PRIVATE void | 241PRIVATE void |
244 eat_whitespace P((char **)); | 242 eat_whitespace(char **); |
245PRIVATE int | 243PRIVATE int |
246 eval_symbol P((char **, struct host *)); | 244 eval_symbol(char **, struct host *); |
247PRIVATE void | 245PRIVATE void |
248 fill_defaults P((struct host *, char **)); | 246 fill_defaults(struct host *, char **); |
249PRIVATE void | 247PRIVATE void |
250 free_host P((hash_datum *)); | 248 free_host(hash_datum *); |
251PRIVATE struct in_addr_list * | 249PRIVATE struct in_addr_list * |
252 get_addresses P((char **)); | 250 get_addresses(char **); |
253PRIVATE struct shared_string * | 251PRIVATE struct shared_string * |
254 get_shared_string P((char **)); | 252 get_shared_string(char **); |
255PRIVATE char * | 253PRIVATE char * |
256 get_string P((char **, char *, u_int *)); | 254 get_string(char **, char *, u_int *); |
257PRIVATE u_int32 | 255PRIVATE u_int32 |
258 get_u_long P((char **)); | 256 get_u_long(char **); |
259PRIVATE boolean | 257PRIVATE boolean |
260 goodname P((char *)); | 258 goodname(char *); |
261PRIVATE boolean | 259PRIVATE boolean |
262 hwinscmp P((hash_datum *, hash_datum *)); | 260 hwinscmp(hash_datum *, hash_datum *); |
263PRIVATE int | 261PRIVATE int |
264 interp_byte P((char **, byte *)); | 262 interp_byte(char **, byte *); |
265PRIVATE void | 263PRIVATE void |
266 makelower P((char *)); | 264 makelower(char *); |
267PRIVATE boolean | 265PRIVATE boolean |
268 nullcmp P((hash_datum *, hash_datum *)); | 266 nullcmp(hash_datum *, hash_datum *); |
269PRIVATE int | 267PRIVATE int |
270 process_entry P((struct host *, char *)); | 268 process_entry(struct host *, char *); |
271PRIVATE int | 269PRIVATE int |
272 process_generic P((char **, struct shared_bindata **, u_int)); | 270 process_generic(char **, struct shared_bindata **, u_int); |
273PRIVATE byte * | 271PRIVATE byte * |
274 prs_haddr P((char **, u_int)); | 272 prs_haddr(char **, u_int); |
275PRIVATE int | 273PRIVATE int |
276 prs_inetaddr P((char **, u_int32 *)); | 274 prs_inetaddr(char **, u_int32 *); |
277PRIVATE void | 275PRIVATE void |
278 read_entry P((FILE *, char *, u_int *)); | 276 read_entry(FILE *, char *, u_int *); |
279PRIVATE char * | 277PRIVATE char * |
280 smalloc P((u_int)); 281 282#undef P | 278 smalloc(u_int); |
283 284 285/* 286 * Vendor magic cookies for CMU and RFC1048 287 */ 288u_char vm_cmu[4] = VM_CMU; 289u_char vm_rfc1048[4] = VM_RFC1048; 290 --- 1797 unchanged lines hidden --- | 279 280 281/* 282 * Vendor magic cookies for CMU and RFC1048 283 */ 284u_char vm_cmu[4] = VM_CMU; 285u_char vm_rfc1048[4] = VM_RFC1048; 286 --- 1797 unchanged lines hidden --- |