use isinf(3) and isnan(3) instead of rolling our own
[unix-history] / usr / src / lib / libc / net / sethostent.c
CommitLineData
a300ef85
JB
1/*
2 * Copyright (c) 1985 Regents of the University of California.
fcd6ac95
KB
3 * All rights reserved.
4 *
269a7923 5 * %sccs.include.redist.c%
a300ef85
JB
6 */
7
2ce81398 8#if defined(LIBC_SCCS) && !defined(lint)
bc27c43a 9static char sccsid[] = "@(#)sethostent.c 6.9 (Berkeley) %G%";
fcd6ac95 10#endif /* LIBC_SCCS and not lint */
a300ef85 11
bc27c43a 12#include <sys/param.h>
c0f8e4ee 13#include <netinet/in.h>
24fac7d8
KB
14#include <arpa/nameser.h>
15#include <netdb.h>
c0f8e4ee 16#include <resolv.h>
a300ef85 17
24fac7d8 18void
158ad942
JB
19sethostent(stayopen)
20{
c0f8e4ee
KD
21 if (stayopen)
22 _res.options |= RES_STAYOPEN | RES_USEVC;
158ad942 23}
a300ef85 24
24fac7d8 25void
c0f8e4ee
KD
26endhostent()
27{
28 _res.options &= ~(RES_STAYOPEN | RES_USEVC);
29 _res_close();
30}