Changeset fd6a994 in rtems
- Timestamp:
- 05/25/05 13:02:40 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 984d9224
- Parents:
- b3da5b1
- Location:
- cpukit/librpc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/librpc/include/rpc/clnt.h
rb3da5b1 rfd6a994 1 /* 1 /* $NetBSD: clnt.h,v 1.14 2000/06/02 22:57:55 fvdl Exp $ */ 2 3 /* 4 * The contents of this file are subject to the Sun Standards 5 * License Version 1.0 the (the "License";) You may not use 6 * this file except in compliance with the License. You may 7 * obtain a copy of the License at lib/libc/rpc/LICENSE 8 * 9 * Software distributed under the License is distributed on 10 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 * express or implied. See the License for the specific 12 * language governing rights and limitations under the License. 13 * 14 * The Original Code is Copyright 1998 by Sun Microsystems, Inc 15 * 16 * The Initial Developer of the Original Code is: Sun 17 * Microsystems, Inc. 18 * 19 * All Rights Reserved. 20 * 2 21 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 22 * unrestricted use provided that this legend is included on all tape … … 96 115 enum auth_stat RE_why; /* why the auth error occurred */ 97 116 struct { 98 u_int32_t low; /* lowest verion supported */99 u_int32_t high; /* highest verion supported */117 rpcvers_t low; /* lowest version supported */ 118 rpcvers_t high; /* highest version supported */ 100 119 } RE_vers; 101 120 struct { /* maybe meaningful if RPC_FAILED */ … … 120 139 struct clnt_ops { 121 140 /* call remote procedure */ 122 enum clnt_stat (*cl_call) __P((struct __rpc_client *,123 u_long, xdrproc_t, caddr_t, xdrproc_t,124 caddr_t, struct timeval));141 enum clnt_stat (*cl_call)(struct __rpc_client *, 142 rpcproc_t, xdrproc_t, void *, xdrproc_t, 143 void *, struct timeval); 125 144 /* abort a call */ 126 void (*cl_abort) __P((struct __rpc_client *));145 void (*cl_abort)(struct __rpc_client *); 127 146 /* get specific error code */ 128 void (*cl_geterr) __P((struct __rpc_client *,129 struct rpc_err *) );147 void (*cl_geterr)(struct __rpc_client *, 148 struct rpc_err *); 130 149 /* frees results */ 131 bool_t (*cl_freeres) __P((struct __rpc_client *,132 xdrproc_t, caddr_t) );150 bool_t (*cl_freeres)(struct __rpc_client *, 151 xdrproc_t, caddr_t); 133 152 /* destroy this structure */ 134 void (*cl_destroy) __P((struct __rpc_client *));153 void (*cl_destroy)(struct __rpc_client *); 135 154 /* the ioctl() of rpc */ 136 bool_t (*cl_control) __P((struct __rpc_client *, u_int,137 void *) );155 bool_t (*cl_control)(struct __rpc_client *, u_int, 156 void *); 138 157 } *cl_ops; 139 158 caddr_t cl_private; /* private stuff */ … … 229 248 230 249 /* 231 * udponly control operations250 * Connectionless only control operations 232 251 */ 233 252 #define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ … … 271 290 * creation failure occurs. 272 291 */ 273 274 /*275 * Memory based rpc (for speed check and testing)276 * CLIENT *277 * clntraw_create(prog, vers)278 * u_long prog;279 * u_long vers;280 */281 __BEGIN_DECLS282 extern CLIENT *clntraw_create __P((u_long, u_long));283 __END_DECLS284 285 292 286 293 /* … … 295 302 */ 296 303 __BEGIN_DECLS 297 extern CLIENT *clnt_create __P((char *, u_long, u_long, char *));298 __END_DECLS 299 300 301 /* 302 * TCP based rpc303 * CLIENT *304 * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz) 305 * struct sockaddr_in *raddr;306 * u_long prog; 307 * u_long version; 308 * register int *sockp; 309 * u_int sendsz; 310 * u_int recvsz;304 extern CLIENT *clnt_create(char *, u_long, u_long, char *); 305 __END_DECLS 306 307 308 /* 309 * Added for compatibility to old rpc 4.0. Obsoleted by clnt_vc_create(). 310 */ 311 extern CLIENT *clntunix_create(struct sockaddr_un *, 312 u_long, u_long, int *, u_int, u_int); 313 __END_DECLS 314 315 316 /* 317 * Print why creation failed 311 318 */ 312 319 __BEGIN_DECLS 313 extern CLIENT *clnttcp_create __P((struct sockaddr_in *, 314 u_long, 315 u_long, 316 int *, 317 u_int, 318 u_int)); 319 __END_DECLS 320 321 322 /* 323 * UDP based rpc. 324 * CLIENT * 325 * clntudp_create(raddr, program, version, wait, sockp) 326 * struct sockaddr_in *raddr; 327 * u_long program; 328 * u_long version; 329 * struct timeval wait; 330 * int *sockp; 331 * 332 * Same as above, but you specify max packet sizes. 333 * CLIENT * 334 * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz) 335 * struct sockaddr_in *raddr; 336 * u_long program; 337 * u_long version; 338 * struct timeval wait; 339 * int *sockp; 340 * u_int sendsz; 341 * u_int recvsz; 342 */ 343 __BEGIN_DECLS 344 extern CLIENT *clntudp_create __P((struct sockaddr_in *, 345 u_long, 346 u_long, 347 struct timeval, 348 int *)); 349 extern CLIENT *clntudp_bufcreate __P((struct sockaddr_in *, 350 u_long, 351 u_long, 352 struct timeval, 353 int *, 354 u_int, 355 u_int)); 356 __END_DECLS 357 358 359 /* 360 * AF_UNIX based rpc 361 * CLIENT * 362 * clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz) 363 * struct sockaddr_un *raddr; 364 * u_long prog; 365 * u_long version; 366 * register int *sockp; 367 * u_int sendsz; 368 * u_int recvsz; 369 */ 370 __BEGIN_DECLS 371 extern CLIENT *clntunix_create __P((struct sockaddr_un *, 372 u_long, 373 u_long, 374 int *, 375 u_int, 376 u_int)); 377 __END_DECLS 378 379 380 /* 381 * Print why creation failed 382 */ 383 __BEGIN_DECLS 384 extern void clnt_pcreateerror(char *); /* stderr */ 385 extern char *clnt_spcreateerror(char *); /* string */ 320 extern void clnt_pcreateerror(const char *); /* stderr */ 321 extern char *clnt_spcreateerror(const char *); /* string */ 386 322 __END_DECLS 387 323 … … 398 334 */ 399 335 __BEGIN_DECLS 400 extern void clnt_perror(CLIENT *, c har *); /* stderr */401 extern char *clnt_sperror(CLIENT *, c har *); /* string */336 extern void clnt_perror(CLIENT *, const char *); /* stderr */ 337 extern char *clnt_sperror(CLIENT *, const char *); /* string */ 402 338 __END_DECLS 403 339 -
cpukit/librpc/include/rpc/clnt_soc.h
rb3da5b1 rfd6a994 104 104 __END_DECLS 105 105 106 107 /*108 * AF_UNIX based rpc109 * CLIENT *110 * clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz)111 * struct sockaddr_un *raddr;112 * u_long prog;113 * u_long version;114 * register int *sockp;115 * u_int sendsz;116 * u_int recvsz;117 */118 __BEGIN_DECLS119 extern CLIENT *clntunix_create(struct sockaddr_un *, u_long, u_long,120 int *, u_int, u_int);121 __END_DECLS122 123 106 #endif /* _RPC_CLNT_SOC_H */ -
cpukit/librpc/src/rpc/clnt_perror.c
rb3da5b1 rfd6a994 68 68 clnt_sperror(rpch, s) 69 69 CLIENT *rpch; 70 c har *s;70 const char *s; 71 71 { 72 72 struct rpc_err e; … … 143 143 clnt_perror(rpch, s) 144 144 CLIENT *rpch; 145 c har *s;145 const char *s; 146 146 { 147 147 (void) fprintf(stderr,"%s\n",clnt_sperror(rpch,s)); … … 196 196 char * 197 197 clnt_spcreateerror(s) 198 c har *s;198 const char *s; 199 199 { 200 200 char *str = _buf(); … … 226 226 void 227 227 clnt_pcreateerror(s) 228 c har *s;228 const char *s; 229 229 { 230 230 (void) fprintf(stderr,"%s\n",clnt_spcreateerror(s));
Note: See TracChangeset
for help on using the changeset viewer.