1 /* 2 * Copyright (c) 1985 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 */ 12 13 #if defined(LIBC_SCCS) && !defined(lint) 14 static char sccsid[] = "@(#)sethostent.c 6.4 (Berkeley) 03/07/88"; 15 #endif /* LIBC_SCCS and not lint */ 16 17 #include <sys/types.h> 18 #include <arpa/nameser.h> 19 #include <netinet/in.h> 20 #include <resolv.h> 21 22 sethostent(stayopen) 23 { 24 if (stayopen) 25 _res.options |= RES_STAYOPEN | RES_USEVC; 26 } 27 28 endhostent() 29 { 30 _res.options &= ~(RES_STAYOPEN | RES_USEVC); 31 _res_close(); 32 } 33 34 sethostfile(name) 35 char *name; 36 { 37 #ifdef lint 38 name = name; 39 #endif 40 } 41