Makes changes to an Network Information Services (NIS) map.
#include <rpcsvc/ypclnt.h> #include <rpcsvc/yp_prot.h>
yp_update (indomain, inmap, ypop, inkey, inkeylen, indata, indatalen)
char * indomain;
char * inmap;
unsigned ypop;
char * inkey;
int inkeylen;
char * indata;
int indatalen;
Note: This routine depends upon the secure Remote Procedure Call (RPC) protocol, and will not work unless the network is running it.
The yp_update
subroutine is used to make changes to a NIS map. The syntax is the same
as that of the yp_match subroutine except for the additional
ypop parameter, which may take on one of the following four
values:
Upon successful completion, this routine returns a value of 0. If unsuccessful, it returns one of the error codes described in the rpcsvc/yp_prot.h file.
This subroutine is part of Base Operating System (BOS) Runtime.
/var/yp/updaters | A makefile for updating NIS maps. |
The yp_match subroutine.
Network Information Service (NIS) Overview for System Management in AIX 5L Version 5.1 System Management Guide: Communications and Networks.
List of NIS Programming References and Remote Procedure Call (RPC) Overview for Programming in AIX 5L Version 5.1 Communications Programming Concepts.