The sample program uses unsupported macros that are defined in the file <rpcsvc/nis.h>. These macros are not public APIs and can change or disappear in the future. They are used for illustration purposes only and if you choose to use them, you do so at your own risk. The macros used are:
NIS_RES_OBJECT
ENTRY_VAL
DEFAULT_RIGHTS