# 2.11BSD#431 - /usr/src/lib/libc/net/named/sethostent.c

##### Functions

    endhostent        X
    sethostent        X
    sethostfile       X

       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: }

#### Defined functions

endhostent defined in line 22; used 5 times

- in /usr/src/lib/libc/net/hosttable/gethnamadr.c line 108, 141
- in /usr/src/ucb/PORT/systat/netstat.c line 82
- in /usr/src/usr.bin/uucp/uucpd.c line 276
- in /usr/src/usr.sbin/mkhosts/mkhosts.c line 133

sethostent defined in line 16; used 6 times

- in /usr/src/games/hunt/hunt.c line 307, 391
- in /usr/src/lib/libc/net/hosttable/gethnamadr.c line 98, 134
- in /usr/src/ucb/PORT/systat/netstat.c line 46
- in /usr/src/usr.sbin/mkhosts/mkhosts.c line 62

sethostfile defined in line 28; used 1 times

- in /usr/src/usr.sbin/mkhosts/mkhosts.c line 61

#### Defined variables

sccsid defined in line 8; never used

Last modified: 1986-04-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1018 |