xref: /csrg-svn/lib/libc/net/sethostent.c (revision 27033)
124656Sbloom /*
224656Sbloom  * Copyright (c) 1985 Regents of the University of California.
324656Sbloom  * All rights reserved.  The Berkeley software License Agreement
424656Sbloom  * specifies the terms and conditions for redistribution.
524656Sbloom  */
624656Sbloom 
726636Sdonn #if defined(LIBC_SCCS) && !defined(lint)
8*27033Skjd static char sccsid[] = "@(#)sethostent.c	6.3 (Berkeley) 04/10/86";
926636Sdonn #endif LIBC_SCCS and not lint
1024656Sbloom 
11*27033Skjd #include <sys/types.h>
12*27033Skjd #include <arpa/nameser.h>
13*27033Skjd #include <netinet/in.h>
14*27033Skjd #include <resolv.h>
1524656Sbloom 
1624669Sbloom sethostent(stayopen)
1724669Sbloom {
18*27033Skjd 	if (stayopen)
19*27033Skjd 		_res.options |= RES_STAYOPEN | RES_USEVC;
2024669Sbloom }
2124656Sbloom 
22*27033Skjd endhostent()
23*27033Skjd {
24*27033Skjd 	_res.options &= ~(RES_STAYOPEN | RES_USEVC);
25*27033Skjd 	_res_close();
26*27033Skjd }
2724669Sbloom 
2824669Sbloom sethostfile(name)
2924669Sbloom char *name;
3024669Sbloom {
3124669Sbloom #ifdef lint
3224669Sbloom name = name;
3324669Sbloom #endif
3424669Sbloom }
35