The C and C++ Include Header Files
/usr/include/rpcsvc/yp.h
$ cat -n /usr/include/rpcsvc/yp.h 1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef __RPCSVC_YP_H__ 7 #define __RPCSVC_YP_H__ 8 9 #include
10 11 #define YPMAXRECORD 1024 12 #define YPMAXDOMAIN 256 13 #define YPMAXMAP 64 14 #define YPMAXPEER 64 15 16 enum ypstat { 17 YP_TRUE = 1, 18 YP_NOMORE = 2, 19 YP_FALSE = 0, 20 YP_NOMAP = -1, 21 YP_NODOM = -2, 22 YP_NOKEY = -3, 23 YP_BADOP = -4, 24 YP_BADDB = -5, 25 YP_YPERR = -6, 26 YP_BADARGS = -7, 27 YP_VERS = -8, 28 }; 29 typedef enum ypstat ypstat; 30 31 enum ypxfrstat { 32 YPXFR_SUCC = 1, 33 YPXFR_AGE = 2, 34 YPXFR_NOMAP = -1, 35 YPXFR_NODOM = -2, 36 YPXFR_RSRC = -3, 37 YPXFR_RPC = -4, 38 YPXFR_MADDR = -5, 39 YPXFR_YPERR = -6, 40 YPXFR_BADARGS = -7, 41 YPXFR_DBM = -8, 42 YPXFR_FILE = -9, 43 YPXFR_SKEW = -10, 44 YPXFR_CLEAR = -11, 45 YPXFR_FORCE = -12, 46 YPXFR_XFRERR = -13, 47 YPXFR_REFUSED = -14, 48 }; 49 typedef enum ypxfrstat ypxfrstat; 50 51 typedef char *domainname; 52 typedef char *mapname; 53 typedef char *peername; 54 55 typedef struct { 56 u_int keydat_len; 57 char *keydat_val; 58 } keydat; 59 60 typedef struct { 61 u_int valdat_len; 62 char *valdat_val; 63 } valdat; 64 65 struct ypmap_parms { 66 domainname domain; 67 mapname map; 68 u_int ordernum; 69 peername peer; 70 }; 71 typedef struct ypmap_parms ypmap_parms; 72 73 struct ypreq_key { 74 domainname domain; 75 mapname map; 76 keydat key; 77 }; 78 typedef struct ypreq_key ypreq_key; 79 80 struct ypreq_nokey { 81 domainname domain; 82 mapname map; 83 }; 84 typedef struct ypreq_nokey ypreq_nokey; 85 86 struct ypreq_xfr { 87 ypmap_parms map_parms; 88 u_int transid; 89 u_int prog; 90 u_int port; 91 }; 92 typedef struct ypreq_xfr ypreq_xfr; 93 94 struct ypresp_val { 95 ypstat stat; 96 valdat val; 97 }; 98 typedef struct ypresp_val ypresp_val; 99 100 struct ypresp_key_val { 101 ypstat stat; 102 valdat val; 103 keydat key; 104 }; 105 typedef struct ypresp_key_val ypresp_key_val; 106 107 struct ypresp_master { 108 ypstat stat; 109 peername peer; 110 }; 111 typedef struct ypresp_master ypresp_master; 112 113 struct ypresp_order { 114 ypstat stat; 115 u_int ordernum; 116 }; 117 typedef struct ypresp_order ypresp_order; 118 119 struct ypresp_all { 120 bool_t more; 121 union { 122 ypresp_key_val val; 123 } ypresp_all_u; 124 }; 125 typedef struct ypresp_all ypresp_all; 126 127 struct ypresp_xfr { 128 u_int transid; 129 ypxfrstat xfrstat; 130 }; 131 typedef struct ypresp_xfr ypresp_xfr; 132 133 struct ypmaplist { 134 mapname map; 135 struct ypmaplist *next; 136 }; 137 typedef struct ypmaplist ypmaplist; 138 139 struct ypresp_maplist { 140 ypstat stat; 141 ypmaplist *maps; 142 }; 143 typedef struct ypresp_maplist ypresp_maplist; 144 145 enum yppush_status { 146 YPPUSH_SUCC = 1, 147 YPPUSH_AGE = 2, 148 YPPUSH_NOMAP = -1, 149 YPPUSH_NODOM = -2, 150 YPPUSH_RSRC = -3, 151 YPPUSH_RPC = -4, 152 YPPUSH_MADDR = -5, 153 YPPUSH_YPERR = -6, 154 YPPUSH_BADARGS = -7, 155 YPPUSH_DBM = -8, 156 YPPUSH_FILE = -9, 157 YPPUSH_SKEW = -10, 158 YPPUSH_CLEAR = -11, 159 YPPUSH_FORCE = -12, 160 YPPUSH_XFRERR = -13, 161 YPPUSH_REFUSED = -14, 162 }; 163 typedef enum yppush_status yppush_status; 164 165 struct yppushresp_xfr { 166 u_int transid; 167 yppush_status status; 168 }; 169 typedef struct yppushresp_xfr yppushresp_xfr; 170 171 enum ypbind_resptype { 172 YPBIND_SUCC_VAL = 1, 173 YPBIND_FAIL_VAL = 2, 174 }; 175 typedef enum ypbind_resptype ypbind_resptype; 176 177 struct ypbind_binding { 178 char ypbind_binding_addr[4]; 179 char ypbind_binding_port[2]; 180 }; 181 typedef struct ypbind_binding ypbind_binding; 182 183 struct ypbind_resp { 184 ypbind_resptype ypbind_status; 185 union { 186 u_int ypbind_error; 187 ypbind_binding ypbind_bindinfo; 188 } ypbind_resp_u; 189 }; 190 typedef struct ypbind_resp ypbind_resp; 191 192 #define YPBIND_ERR_ERR 1 193 #define YPBIND_ERR_NOSERV 2 194 #define YPBIND_ERR_RESC 3 195 196 struct ypbind_setdom { 197 domainname ypsetdom_domain; 198 ypbind_binding ypsetdom_binding; 199 u_int ypsetdom_vers; 200 }; 201 typedef struct ypbind_setdom ypbind_setdom; 202 203 #define YPPROG 100004 204 #define YPVERS 2 205 206 #ifdef __cplusplus 207 extern "C" { 208 #endif 209 210 #define YPPROC_NULL 0 211 extern void * ypproc_null_2(void *, CLIENT *); 212 extern void * ypproc_null_2_svc(void *, struct svc_req *); 213 #define YPPROC_DOMAIN 1 214 extern bool_t * ypproc_domain_2(domainname *, CLIENT *); 215 extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *); 216 #define YPPROC_DOMAIN_NONACK 2 217 extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *); 218 extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *); 219 #define YPPROC_MATCH 3 220 extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *); 221 extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *); 222 #define YPPROC_FIRST 4 223 extern ypresp_key_val * ypproc_first_2(ypreq_key *, CLIENT *); 224 extern ypresp_key_val * ypproc_first_2_svc(ypreq_key *, struct svc_req *); 225 #define YPPROC_NEXT 5 226 extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *); 227 extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *); 228 #define YPPROC_XFR 6 229 extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *); 230 extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *); 231 #define YPPROC_CLEAR 7 232 extern void * ypproc_clear_2(void *, CLIENT *); 233 extern void * ypproc_clear_2_svc(void *, struct svc_req *); 234 #define YPPROC_ALL 8 235 extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *); 236 extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *); 237 #define YPPROC_MASTER 9 238 extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *); 239 extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *); 240 #define YPPROC_ORDER 10 241 extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *); 242 extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *); 243 #define YPPROC_MAPLIST 11 244 extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *); 245 extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *); 246 extern int ypprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 247 248 #define YPPUSH_XFRRESPPROG 0x40000000 249 #define YPPUSH_XFRRESPVERS 1 250 251 #define YPPUSHPROC_NULL 0 252 extern void * yppushproc_null_1(void *, CLIENT *); 253 extern void * yppushproc_null_1_svc(void *, struct svc_req *); 254 #define YPPUSHPROC_XFRRESP 1 255 extern void * yppushproc_xfrresp_1(yppushresp_xfr *, CLIENT *); 256 extern void * yppushproc_xfrresp_1_svc(yppushresp_xfr *, struct svc_req *); 257 extern int yppush_xfrrespprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 258 259 #define YPBINDPROG 100007 260 #define YPBINDVERS 2 261 262 #define YPBINDPROC_NULL 0 263 extern void * ypbindproc_null_2(void *, CLIENT *); 264 extern void * ypbindproc_null_2_svc(void *, struct svc_req *); 265 #define YPBINDPROC_DOMAIN 1 266 extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *); 267 extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *); 268 #define YPBINDPROC_SETDOM 2 269 extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *); 270 extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *); 271 extern int ypbindprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 272 273 /* the xdr functions */ 274 extern bool_t xdr_ypstat (XDR *, ypstat*); 275 extern bool_t xdr_ypxfrstat (XDR *, ypxfrstat*); 276 extern bool_t xdr_domainname (XDR *, domainname*); 277 extern bool_t xdr_mapname (XDR *, mapname*); 278 extern bool_t xdr_peername (XDR *, peername*); 279 extern bool_t xdr_keydat (XDR *, keydat*); 280 extern bool_t xdr_valdat (XDR *, valdat*); 281 extern bool_t xdr_ypmap_parms (XDR *, ypmap_parms*); 282 extern bool_t xdr_ypreq_key (XDR *, ypreq_key*); 283 extern bool_t xdr_ypreq_nokey (XDR *, ypreq_nokey*); 284 extern bool_t xdr_ypreq_xfr (XDR *, ypreq_xfr*); 285 extern bool_t xdr_ypresp_val (XDR *, ypresp_val*); 286 extern bool_t xdr_ypresp_key_val (XDR *, ypresp_key_val*); 287 extern bool_t xdr_ypresp_master (XDR *, ypresp_master*); 288 extern bool_t xdr_ypresp_order (XDR *, ypresp_order*); 289 extern bool_t xdr_ypresp_all (XDR *, ypresp_all*); 290 extern bool_t xdr_ypresp_xfr (XDR *, ypresp_xfr*); 291 extern bool_t xdr_ypmaplist (XDR *, ypmaplist*); 292 extern bool_t xdr_ypresp_maplist (XDR *, ypresp_maplist*); 293 extern bool_t xdr_yppush_status (XDR *, yppush_status*); 294 extern bool_t xdr_yppushresp_xfr (XDR *, yppushresp_xfr*); 295 extern bool_t xdr_ypbind_resptype (XDR *, ypbind_resptype*); 296 extern bool_t xdr_ypbind_binding (XDR *, ypbind_binding*); 297 extern bool_t xdr_ypbind_resp (XDR *, ypbind_resp*); 298 extern bool_t xdr_ypbind_setdom (XDR *, ypbind_setdom*); 299 300 #ifdef __cplusplus 301 } 302 #endif 303 304 #endif /* !__RPCSVC_YP_H__ */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™