Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ypupdate(3N) — Amiga System V Release 4 Version 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought



ypupdate(3N)            NETWORK FUNCTIONS            ypupdate(3N)



NAME
     ypupdate - changes yp information

SYNOPSIS
     #include <rpcsvc/ypclnt.h>
     ypupdate(domain, map, ypop, key, keylen, data, datalen)
     char *domain;
     char *map;
     unsigned ypop
     char *key;
     int keylen;
     char *data;
     int datalen;

DESCRIPTION
     ypupdate() is used to make changes to the YP database.  The
     syntax  is  the  same  as  that of ypmatch() except for the
     extra parameter ypop which may take on one of  four  values.
     If  it  is YPOPCHANGE then the data associated with the key
     will be changed to the new value.  If the key is  not  found
     in the database, then ypupdate() will return YPERRKEY.  If
     ypop has the value YPOPINSERT then the key-value pair  will
     be  inserted  into  the  database.   The  error YPERRKEY 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  YPOPSTORE  and  no
     error will be returned if the key already or does not exist.
     To delete an entry, the value of ypop should be YPOPDELETE.
     This  routine  depends  upon  secure  RPC, and will not work
     unless the network is running secure RPC.

SEE ALSO
     securerpc(3N)






















                          Last change:                          1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026