xref: /freebsd/include/rpcsvc/ypupdate_prot.x (revision 5b31cc94b10d4bb7109c6b27940a0fc76a44a331)
13b0f7467SBill Paul %/*
23b0f7467SBill Paul % * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
33b0f7467SBill Paul % * unrestricted use provided that this legend is included on all tape
43b0f7467SBill Paul % * media and as a part of the software program in whole or part.  Users
53b0f7467SBill Paul % * may copy or modify Sun RPC without charge, but are not authorized
63b0f7467SBill Paul % * to license or distribute it to anyone else except as part of a product or
73b0f7467SBill Paul % * program developed by the user or with the express written consent of
83b0f7467SBill Paul % * Sun Microsystems, Inc.
93b0f7467SBill Paul % *
103b0f7467SBill Paul % * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
113b0f7467SBill Paul % * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
123b0f7467SBill Paul % * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
133b0f7467SBill Paul % *
143b0f7467SBill Paul % * Sun RPC is provided with no support and without any obligation on the
153b0f7467SBill Paul % * part of Sun Microsystems, Inc. to assist in its use, correction,
163b0f7467SBill Paul % * modification or enhancement.
173b0f7467SBill Paul % *
183b0f7467SBill Paul % * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
193b0f7467SBill Paul % * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
203b0f7467SBill Paul % * OR ANY PART THEREOF.
213b0f7467SBill Paul % *
223b0f7467SBill Paul % * In no event will Sun Microsystems, Inc. be liable for any lost revenue
233b0f7467SBill Paul % * or profits or other special, indirect and consequential damages, even if
243b0f7467SBill Paul % * Sun has been advised of the possibility of such damages.
253b0f7467SBill Paul % *
263b0f7467SBill Paul % * Sun Microsystems, Inc.
273b0f7467SBill Paul % * 2550 Garcia Avenue
283b0f7467SBill Paul % * Mountain View, California  94043
293b0f7467SBill Paul % */
303b0f7467SBill Paul 
313b0f7467SBill Paul %/*
323b0f7467SBill Paul % * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
333b0f7467SBill Paul % */
343b0f7467SBill Paul %
353b0f7467SBill Paul #ifndef RPC_HDR
361542dbb4SDavid E. O'Brien %#include <sys/cdefs.h>
373b0f7467SBill Paul #endif
383b0f7467SBill Paul %
393b0f7467SBill Paul %/*
403b0f7467SBill Paul % * Compiled from ypupdate_prot.x using rpcgen
413b0f7467SBill Paul % * This is NOT source code!
423b0f7467SBill Paul % * DO NOT EDIT THIS FILE!
433b0f7467SBill Paul % */
443b0f7467SBill Paul 
453b0f7467SBill Paul /*
463b0f7467SBill Paul  * YP update service protocol
473b0f7467SBill Paul  */
483b0f7467SBill Paul #ifdef RPC_HDR
493b0f7467SBill Paul %
503b0f7467SBill Paul %#ifndef _rpcsvc_ypupdate_prot_h
513b0f7467SBill Paul %#define _rpcsvc_ypupdate_prot_h
523b0f7467SBill Paul %
533b0f7467SBill Paul #endif
543b0f7467SBill Paul 
553b0f7467SBill Paul const MAXMAPNAMELEN = 255;
563b0f7467SBill Paul const MAXYPDATALEN  = 1023;
573b0f7467SBill Paul const MAXERRMSGLEN  = 255;
583b0f7467SBill Paul 
593b0f7467SBill Paul program YPU_PROG {
603b0f7467SBill Paul 	version YPU_VERS {
613b0f7467SBill Paul 		u_int YPU_CHANGE(ypupdate_args) = 1;
623b0f7467SBill Paul 		u_int YPU_INSERT(ypupdate_args) = 2;
633b0f7467SBill Paul 		u_int YPU_DELETE(ypdelete_args) = 3;
643b0f7467SBill Paul 		u_int YPU_STORE(ypupdate_args)  = 4;
653b0f7467SBill Paul 	} = 1;
663b0f7467SBill Paul } = 100028;
673b0f7467SBill Paul 
683b0f7467SBill Paul typedef opaque yp_buf<MAXYPDATALEN>;
693b0f7467SBill Paul 
703b0f7467SBill Paul struct ypupdate_args {
713b0f7467SBill Paul 	string mapname<MAXMAPNAMELEN>;
723b0f7467SBill Paul 	yp_buf key;
733b0f7467SBill Paul 	yp_buf datum;
743b0f7467SBill Paul };
753b0f7467SBill Paul 
763b0f7467SBill Paul struct ypdelete_args {
773b0f7467SBill Paul 	string mapname<MAXMAPNAMELEN>;
783b0f7467SBill Paul 	yp_buf key;
793b0f7467SBill Paul };
803b0f7467SBill Paul 
813b0f7467SBill Paul #ifdef RPC_HDR
823b0f7467SBill Paul %
833b0f7467SBill Paul %#endif /* !_rpcsvc_ypupdate_prot_h */
843b0f7467SBill Paul #endif
85