xref: /freebsd/include/rpcsvc/ypupdate_prot.x (revision 1542dbb49a51f3757fc2f7e85fcacba70b272cdf)
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 %/* from @(#)ypupdate_prot.x	1.3 91/03/11 TIRPC 1.0 */
363b0f7467SBill Paul #ifndef RPC_HDR
371542dbb4SDavid E. O'Brien %#include <sys/cdefs.h>
381542dbb4SDavid E. O'Brien %__FBSDID("$FreeBSD$");
393b0f7467SBill Paul #endif
403b0f7467SBill Paul %
413b0f7467SBill Paul %/*
423b0f7467SBill Paul % * Compiled from ypupdate_prot.x using rpcgen
433b0f7467SBill Paul % * This is NOT source code!
443b0f7467SBill Paul % * DO NOT EDIT THIS FILE!
453b0f7467SBill Paul % */
463b0f7467SBill Paul 
473b0f7467SBill Paul /*
483b0f7467SBill Paul  * YP update service protocol
493b0f7467SBill Paul  */
503b0f7467SBill Paul #ifdef RPC_HDR
513b0f7467SBill Paul %
523b0f7467SBill Paul %#ifndef _rpcsvc_ypupdate_prot_h
533b0f7467SBill Paul %#define _rpcsvc_ypupdate_prot_h
543b0f7467SBill Paul %
553b0f7467SBill Paul #endif
563b0f7467SBill Paul 
573b0f7467SBill Paul const MAXMAPNAMELEN = 255;
583b0f7467SBill Paul const MAXYPDATALEN  = 1023;
593b0f7467SBill Paul const MAXERRMSGLEN  = 255;
603b0f7467SBill Paul 
613b0f7467SBill Paul program YPU_PROG {
623b0f7467SBill Paul 	version YPU_VERS {
633b0f7467SBill Paul 		u_int YPU_CHANGE(ypupdate_args) = 1;
643b0f7467SBill Paul 		u_int YPU_INSERT(ypupdate_args) = 2;
653b0f7467SBill Paul 		u_int YPU_DELETE(ypdelete_args) = 3;
663b0f7467SBill Paul 		u_int YPU_STORE(ypupdate_args)  = 4;
673b0f7467SBill Paul 	} = 1;
683b0f7467SBill Paul } = 100028;
693b0f7467SBill Paul 
703b0f7467SBill Paul typedef opaque yp_buf<MAXYPDATALEN>;
713b0f7467SBill Paul 
723b0f7467SBill Paul struct ypupdate_args {
733b0f7467SBill Paul 	string mapname<MAXMAPNAMELEN>;
743b0f7467SBill Paul 	yp_buf key;
753b0f7467SBill Paul 	yp_buf datum;
763b0f7467SBill Paul };
773b0f7467SBill Paul 
783b0f7467SBill Paul struct ypdelete_args {
793b0f7467SBill Paul 	string mapname<MAXMAPNAMELEN>;
803b0f7467SBill Paul 	yp_buf key;
813b0f7467SBill Paul };
823b0f7467SBill Paul 
833b0f7467SBill Paul #ifdef RPC_HDR
843b0f7467SBill Paul %
853b0f7467SBill Paul %#endif /* !_rpcsvc_ypupdate_prot_h */
863b0f7467SBill Paul #endif
87