Returns the machine name of the Network Information Services (NIS) master server for a map.
C Library (libc.a)
The yp_master subroutine returns the machine name of the NIS master server for a map.
Item | Description |
---|---|
indomain | Points to the name of the domain used as input to the subroutine. |
inmap | Points to the name of the map used as input to the subroutine. |
outname | Specifies the address of the uninitialized string pointer where the name of the domain's yp_master server is returned. Memory is allocated by the NIS client using the malloc subroutine, and may be freed by the application. |
Upon successful completion, this subroutine returns a value of 0. If unsuccessful, it returns one of the error codes described in the rpcsvc/yp_prot.h file.