/* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)sethostent.c 8.1 (Berkeley) 06/04/93"; #endif /* LIBC_SCCS and not lint */ #include #include #include #include #include void sethostent(stayopen) { if (stayopen) _res.options |= RES_STAYOPEN | RES_USEVC; } void endhostent() { _res.options &= ~(RES_STAYOPEN | RES_USEVC); _res_close(); }