xref: /original-bsd/lib/libc/net/sethostent.c (revision e22fe102)
1 /*
2  * Copyright (c) 1985 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)sethostent.c	6.6 (Berkeley) 06/01/90";
10 #endif /* LIBC_SCCS and not lint */
11 
12 #include <sys/types.h>
13 #include <arpa/nameser.h>
14 #include <netinet/in.h>
15 #include <resolv.h>
16 
17 sethostent(stayopen)
18 {
19 	if (stayopen)
20 		_res.options |= RES_STAYOPEN | RES_USEVC;
21 }
22 
23 endhostent()
24 {
25 	_res.options &= ~(RES_STAYOPEN | RES_USEVC);
26 	_res_close();
27 }
28 
29 sethostfile(name)
30 char *name;
31 {
32 #ifdef lint
33 name = name;
34 #endif
35 }
36