File indexing completed on 2025-01-18 10:12:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef __RPCSVC_YPUPD_H__
0034 #define __RPCSVC_YPUPD_H__
0035
0036 #include <rpc/rpc.h>
0037
0038 #define MAXMAPNAMELEN 255
0039 #define MAXYPDATALEN 1023
0040 #define MAXERRMSGLEN 255
0041
0042 #ifdef __cplusplus
0043 extern "C" {
0044 #endif
0045
0046 typedef struct {
0047 u_int yp_buf_len;
0048 char *yp_buf_val;
0049 } yp_buf;
0050
0051 extern bool_t xdr_yp_buf (XDR *, yp_buf*);
0052
0053 struct ypupdate_args {
0054 char *mapname;
0055 yp_buf key;
0056 yp_buf datum;
0057 };
0058 typedef struct ypupdate_args ypupdate_args;
0059
0060 extern bool_t xdr_ypupdate_args (XDR *, ypupdate_args*);
0061
0062 struct ypdelete_args {
0063 char *mapname;
0064 yp_buf key;
0065 };
0066 typedef struct ypdelete_args ypdelete_args;
0067
0068 extern bool_t xdr_ypdelete_args (XDR *, ypdelete_args*);
0069
0070 #define YPU_PROG 100028
0071 #define YPU_VERS 1
0072
0073 #define YPU_CHANGE 1
0074 extern u_int * ypu_change_1 (ypupdate_args *, CLIENT *);
0075 extern u_int * ypu_change_1_svc (ypupdate_args *, struct svc_req *);
0076 #define YPU_INSERT 2
0077 extern u_int * ypu_insert_1 (ypupdate_args *, CLIENT *);
0078 extern u_int * ypu_insert_1_svc (ypupdate_args *, struct svc_req *);
0079 #define YPU_DELETE 3
0080 extern u_int * ypu_delete_1 (ypdelete_args *, CLIENT *);
0081 extern u_int * ypu_delete_1_svc (ypdelete_args *, struct svc_req *);
0082 #define YPU_STORE 4
0083 extern u_int * ypu_store_1 (ypupdate_args *, CLIENT *);
0084 extern u_int * ypu_store_1_svc (ypupdate_args *, struct svc_req *);
0085
0086 #ifdef __cplusplus
0087 }
0088 #endif
0089
0090 #endif