[lsb-discuss] RFC: interfaces - candidates for LSB 3.2 or later
nick at usenix.org
Mon May 28 12:05:25 PDT 2007
On Sun, 2007-05-27 at 17:25 -0700, Wichmann, Mats D wrote:
> Get domain name:
> Note: it's low-cost to add this, but it's not clear that applications
> can count on anything useful from it. Depending on setup, it often
> returns "(none)"
We had previously excluded getdomainname (or even withdrew it???)
because of its NIS association.
The glibc manual says:
int getdomainnname (char *name,
getdomainname returns the NIS (aka YP) domain name of the system on
which it is called. Note that this is not the more popular DNS domain
name. Get that with gethostname.
The specifics of this function are analogous to gethostname, above.
Nick Stoughton Cell: 510 388 1413
USENIX Standards Liaison Fax: 510 548 5738
More information about the lsb-discuss