xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/rpcsvc/ypupd.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi /*
2*53ee8cc1Swenshuai.xi  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3*53ee8cc1Swenshuai.xi  * unrestricted use provided that this legend is included on all tape
4*53ee8cc1Swenshuai.xi  * media and as a part of the software program in whole or part.  Users
5*53ee8cc1Swenshuai.xi  * may copy or modify Sun RPC without charge, but are not authorized
6*53ee8cc1Swenshuai.xi  * to license or distribute it to anyone else except as part of a product or
7*53ee8cc1Swenshuai.xi  * program developed by the user or with the express written consent of
8*53ee8cc1Swenshuai.xi  * Sun Microsystems, Inc.
9*53ee8cc1Swenshuai.xi  *
10*53ee8cc1Swenshuai.xi  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
11*53ee8cc1Swenshuai.xi  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
12*53ee8cc1Swenshuai.xi  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13*53ee8cc1Swenshuai.xi  *
14*53ee8cc1Swenshuai.xi  * Sun RPC is provided with no support and without any obligation on the
15*53ee8cc1Swenshuai.xi  * part of Sun Microsystems, Inc. to assist in its use, correction,
16*53ee8cc1Swenshuai.xi  * modification or enhancement.
17*53ee8cc1Swenshuai.xi  *
18*53ee8cc1Swenshuai.xi  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19*53ee8cc1Swenshuai.xi  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
20*53ee8cc1Swenshuai.xi  * OR ANY PART THEREOF.
21*53ee8cc1Swenshuai.xi  *
22*53ee8cc1Swenshuai.xi  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23*53ee8cc1Swenshuai.xi  * or profits or other special, indirect and consequential damages, even if
24*53ee8cc1Swenshuai.xi  * Sun has been advised of the possibility of such damages.
25*53ee8cc1Swenshuai.xi  *
26*53ee8cc1Swenshuai.xi  * Sun Microsystems, Inc.
27*53ee8cc1Swenshuai.xi  * 2550 Garcia Avenue
28*53ee8cc1Swenshuai.xi  * Mountain View, California  94043
29*53ee8cc1Swenshuai.xi  */
30*53ee8cc1Swenshuai.xi /*
31*53ee8cc1Swenshuai.xi  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
32*53ee8cc1Swenshuai.xi  */
33*53ee8cc1Swenshuai.xi /* from @(#)ypupdate_prot.x	1.3 91/03/11 TIRPC 1.0 */
34*53ee8cc1Swenshuai.xi 
35*53ee8cc1Swenshuai.xi #ifndef __RPCSVC_YPUPD_H__
36*53ee8cc1Swenshuai.xi #define __RPCSVC_YPUPD_H__
37*53ee8cc1Swenshuai.xi 
38*53ee8cc1Swenshuai.xi #include <features.h>
39*53ee8cc1Swenshuai.xi 
40*53ee8cc1Swenshuai.xi #include <rpc/rpc.h>
41*53ee8cc1Swenshuai.xi 
42*53ee8cc1Swenshuai.xi #define MAXMAPNAMELEN 255
43*53ee8cc1Swenshuai.xi #define MAXYPDATALEN 1023
44*53ee8cc1Swenshuai.xi #define MAXERRMSGLEN 255
45*53ee8cc1Swenshuai.xi 
46*53ee8cc1Swenshuai.xi __BEGIN_DECLS
47*53ee8cc1Swenshuai.xi 
48*53ee8cc1Swenshuai.xi typedef struct {
49*53ee8cc1Swenshuai.xi 	u_int yp_buf_len;
50*53ee8cc1Swenshuai.xi 	char *yp_buf_val;
51*53ee8cc1Swenshuai.xi } yp_buf;
52*53ee8cc1Swenshuai.xi 
53*53ee8cc1Swenshuai.xi extern  bool_t xdr_yp_buf (XDR *, yp_buf*);
54*53ee8cc1Swenshuai.xi 
55*53ee8cc1Swenshuai.xi struct ypupdate_args {
56*53ee8cc1Swenshuai.xi 	char *mapname;
57*53ee8cc1Swenshuai.xi 	yp_buf key;
58*53ee8cc1Swenshuai.xi 	yp_buf datum;
59*53ee8cc1Swenshuai.xi };
60*53ee8cc1Swenshuai.xi typedef struct ypupdate_args ypupdate_args;
61*53ee8cc1Swenshuai.xi 
62*53ee8cc1Swenshuai.xi extern  bool_t xdr_ypupdate_args (XDR *, ypupdate_args*);
63*53ee8cc1Swenshuai.xi 
64*53ee8cc1Swenshuai.xi struct ypdelete_args {
65*53ee8cc1Swenshuai.xi 	char *mapname;
66*53ee8cc1Swenshuai.xi 	yp_buf key;
67*53ee8cc1Swenshuai.xi };
68*53ee8cc1Swenshuai.xi typedef struct ypdelete_args ypdelete_args;
69*53ee8cc1Swenshuai.xi 
70*53ee8cc1Swenshuai.xi extern  bool_t xdr_ypdelete_args (XDR *, ypdelete_args*);
71*53ee8cc1Swenshuai.xi 
72*53ee8cc1Swenshuai.xi #define YPU_PROG 100028
73*53ee8cc1Swenshuai.xi #define YPU_VERS 1
74*53ee8cc1Swenshuai.xi 
75*53ee8cc1Swenshuai.xi #define YPU_CHANGE 1
76*53ee8cc1Swenshuai.xi extern  u_int * ypu_change_1 (ypupdate_args *, CLIENT *);
77*53ee8cc1Swenshuai.xi extern  u_int * ypu_change_1_svc (ypupdate_args *, struct svc_req *);
78*53ee8cc1Swenshuai.xi #define YPU_INSERT 2
79*53ee8cc1Swenshuai.xi extern  u_int * ypu_insert_1 (ypupdate_args *, CLIENT *);
80*53ee8cc1Swenshuai.xi extern  u_int * ypu_insert_1_svc (ypupdate_args *, struct svc_req *);
81*53ee8cc1Swenshuai.xi #define YPU_DELETE 3
82*53ee8cc1Swenshuai.xi extern  u_int * ypu_delete_1 (ypdelete_args *, CLIENT *);
83*53ee8cc1Swenshuai.xi extern  u_int * ypu_delete_1_svc (ypdelete_args *, struct svc_req *);
84*53ee8cc1Swenshuai.xi #define YPU_STORE 4
85*53ee8cc1Swenshuai.xi extern  u_int * ypu_store_1 (ypupdate_args *, CLIENT *);
86*53ee8cc1Swenshuai.xi extern  u_int * ypu_store_1_svc (ypupdate_args *, struct svc_req *);
87*53ee8cc1Swenshuai.xi 
88*53ee8cc1Swenshuai.xi __END_DECLS
89*53ee8cc1Swenshuai.xi 
90*53ee8cc1Swenshuai.xi #endif /* !__RPCSVC_YPUPD_H__ */
91