1: /*
   2:  * Copyright (c) 1985 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #if defined(LIBC_SCCS) && !defined(lint)
   8: static char sccsid[] = "@(#)sethostent.c	6.3 (Berkeley) 4/10/86";
   9: #endif LIBC_SCCS and not lint
  10: 
  11: #include <sys/types.h>
  12: #include <arpa/nameser.h>
  13: #include <netinet/in.h>
  14: #include <resolv.h>
  15: 
  16: sethostent(stayopen)
  17: {
  18:     if (stayopen)
  19:         _res.options |= RES_STAYOPEN | RES_USEVC;
  20: }
  21: 
  22: endhostent()
  23: {
  24:     _res.options &= ~(RES_STAYOPEN | RES_USEVC);
  25:     _res_close();
  26: }
  27: 
  28: sethostfile(name)
  29: char *name;
  30: {
  31: #ifdef lint
  32: name = name;
  33: #endif
  34: }
Last modified: 1986-04-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1076
Valid CSS Valid XHTML 1.0 Strict