Back to index

glibc  2.9
ypupd.h
Go to the documentation of this file.
00001 /*
00002  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
00003  * unrestricted use provided that this legend is included on all tape
00004  * media and as a part of the software program in whole or part.  Users
00005  * may copy or modify Sun RPC without charge, but are not authorized
00006  * to license or distribute it to anyone else except as part of a product or
00007  * program developed by the user or with the express written consent of
00008  * Sun Microsystems, Inc.
00009  *
00010  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
00011  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
00012  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
00013  *
00014  * Sun RPC is provided with no support and without any obligation on the
00015  * part of Sun Microsystems, Inc. to assist in its use, correction,
00016  * modification or enhancement.
00017  *
00018  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
00019  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
00020  * OR ANY PART THEREOF.
00021  *
00022  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
00023  * or profits or other special, indirect and consequential damages, even if
00024  * Sun has been advised of the possibility of such damages.
00025  *
00026  * Sun Microsystems, Inc.
00027  * 2550 Garcia Avenue
00028  * Mountain View, California  94043
00029  */
00030 /*
00031  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
00032  */
00033 /* from @(#)ypupdate_prot.x 1.3 91/03/11 TIRPC 1.0 */
00034 
00035 #ifndef __RPCSVC_YPUPD_H__
00036 #define __RPCSVC_YPUPD_H__
00037 
00038 #include <features.h>
00039 
00040 #include <rpc/rpc.h>
00041 
00042 #define MAXMAPNAMELEN 255
00043 #define MAXYPDATALEN 1023
00044 #define MAXERRMSGLEN 255
00045 
00046 __BEGIN_DECLS
00047 
00048 typedef struct {
00049        u_int yp_buf_len;
00050        char *yp_buf_val;
00051 } yp_buf;
00052 
00053 extern  bool_t xdr_yp_buf (XDR *, yp_buf*);
00054 
00055 struct ypupdate_args {
00056        char *mapname;
00057        yp_buf key;
00058        yp_buf datum;
00059 };
00060 typedef struct ypupdate_args ypupdate_args;
00061 
00062 extern  bool_t xdr_ypupdate_args (XDR *, ypupdate_args*);
00063 
00064 struct ypdelete_args {
00065        char *mapname;
00066        yp_buf key;
00067 };
00068 typedef struct ypdelete_args ypdelete_args;
00069 
00070 extern  bool_t xdr_ypdelete_args (XDR *, ypdelete_args*);
00071 
00072 #define YPU_PROG 100028
00073 #define YPU_VERS 1
00074 
00075 #define YPU_CHANGE 1
00076 extern  u_int * ypu_change_1 (ypupdate_args *, CLIENT *);
00077 extern  u_int * ypu_change_1_svc (ypupdate_args *, struct svc_req *);
00078 #define YPU_INSERT 2
00079 extern  u_int * ypu_insert_1 (ypupdate_args *, CLIENT *);
00080 extern  u_int * ypu_insert_1_svc (ypupdate_args *, struct svc_req *);
00081 #define YPU_DELETE 3
00082 extern  u_int * ypu_delete_1 (ypdelete_args *, CLIENT *);
00083 extern  u_int * ypu_delete_1_svc (ypdelete_args *, struct svc_req *);
00084 #define YPU_STORE 4
00085 extern  u_int * ypu_store_1 (ypupdate_args *, CLIENT *);
00086 extern  u_int * ypu_store_1_svc (ypupdate_args *, struct svc_req *);
00087 
00088 __END_DECLS
00089 
00090 #endif /* !__RPCSVC_YPUPD_H__ */