Gets the default domain of the node.
C Library (libc.a)
#include <rpcsvc/ypclnt.h>
#include <rpcsvc/yp_prot.h>
yp_get_default_domain ( outdomain)
char **outdomain;
Network Information Services (NIS) lookup calls require both a map name and a domain name. Client processes can get the default domain of the node by calling the yp_get_default_domain routine and using the value returned in the outdomain parameter as the input domain (indomain) parameter for NIS remote procedure calls.
Item | Description |
---|---|
outdomain | Specifies the address of the uninitialized string pointer where the default domain is returned. Memory is allocated by the NIS client using the malloc subroutine and should not be freed by the application. |
Upon successful completion, this routine returns a value of 0. If unsuccessful, it returns an error as described in the rpcsvc/ypclnt.h file.