[2438] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: 6.2A VAX: gethostent missing

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Jun 20 18:25:33 1989

Date: Tue, 20 Jun 89 18:25:04 -0400
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: "Robert S. French" <rfrench@ATHENA.MIT.EDU>
Cc: dschmidt@ATHENA.MIT.EDU, bugs@ATHENA.MIT.EDU
In-Reply-To: Robert S. French's message of Tue, 20 Jun 89 12:53:50 -0400,

The C library version of {set,end}hostent are the name-resolver
versions; sethostent and endhostent affect the options used by the
resolver code:

    sethostent(stayopen)
    {
	    if (stayopen)
		    _res.options |= RES_STAYOPEN | RES_USEVC;
    }

    endhostent()
    {
	    _res.options &= ~(RES_STAYOPEN | RES_USEVC);
	    _res_close();
    }

There is no equivalent for gethostent.

The hostlib library is presumably the code for parsing /etc/hosts.

home help back first fref pref prev next nref lref last post