|
|
1.1 root 1: /*
2: * Copyright (c) 1985 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)sethostent.c 6.3 (Berkeley) 4/10/86";
9: #endif LIBC_SCCS and not lint
10:
11: #include <sys/types.h>
12: #include <arpa/nameser.h>
13: #include <netinet/in.h>
14: #include <resolv.h>
15:
16: sethostent(stayopen)
17: {
18: if (stayopen)
19: _res.options |= RES_STAYOPEN | RES_USEVC;
20: }
21:
22: endhostent()
23: {
24: _res.options &= ~(RES_STAYOPEN | RES_USEVC);
25: _res_close();
26: }
27:
28: sethostfile(name)
29: char *name;
30: {
31: #ifdef lint
32: name = name;
33: #endif
34: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.