*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> yp_update (3c)              
Title
Content
Arch
Section
 

Contents


YP_UPDATE(3Y)							 YP_UPDATE(3Y)


NAME    [Toc]    [Back]

     yp_update - changes NIS information

SYNOPSIS    [Toc]    [Back]

     #include <rpcsvc/ypclnt.h>

     yp_update(char *domain, char *map,	unsigned ypop, char *key, int keylen,
	       char *data, int datalen);

DESCRIPTION    [Toc]    [Back]

     yp_update() is used to make changes to the	NIS database. The syntax is
     the same as that of yp_match() except for the extra parameter ypop	which
     may take on one of	four values. If	it is YPOP_CHANGE, then	the data
     associated	with the key will be changed to	the new	value. If the key is
     not found in the database,	then yp_update() will return YPERR_KEY.	 If
     ypop has the value	YPOP_INSERT, then the key-value	pair will be inserted
     into the database.	 The error YPERR_KEY is	returned if the	key already
     exists in the database.  To store an item into the	database without
     concern for whether it exists already or not, pass	ypop as	YPOP_STORE and
     no	error will be returned if the key already or does not exist.  To
     delete an entry, the value	of ypop	should be YPOP_DELETE.

SEE ALSO    [Toc]    [Back]

      
      
     ypupdated(1M), updaters(1M)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
nis_intro Tru64 Network Information Service (NIS) introductory information
getfacl FreeBSD get ACL information
pam_get_item FreeBSD get PAM information
setfacl FreeBSD set ACL information
evminfo Tru64 Provides information about EVM
setsysinfo Tru64 Set system information
sysctlbyname FreeBSD get or set system information
sysctlnametomib FreeBSD get or set system information
sysctl OpenBSD get or set system information
pam_get_data FreeBSD get module information
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service