Changeset c11cb9a5 in rtems
- Timestamp:
- 05/25/05 13:56:50 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 12db3bda
- Parents:
- 984d9224
- Location:
- cpukit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r984d9224 rc11cb9a5 1 1 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org> 2 2 3 * librpc/include/rpc/clnt.h, librpc/include/rpc/clnt_soc.h, 3 * include/rpc/clnt.h, include/rpc/svc.h, 4 librpc/include/rpc/clnt.h, librpc/include/rpc/clnt_soc.h, 4 5 src/rpc/clnt_perror.c: More updates from FreeBSD. 5 6 -
cpukit/librpc/include/rpc/clnt.h
r984d9224 rc11cb9a5 46 46 * Mountain View, California 94043 47 47 * 48 * from: @(#)clnt.h 1.31 88/02/08SMI48 * from: @(#)clnt.h 1.31 94/04/29 SMI 49 49 * from: @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC 50 * $FreeBSD: src/include/rpc/clnt.h,v 1. 11 1999/08/27 23:45:03 peterExp $50 * $FreeBSD: src/include/rpc/clnt.h,v 1.21 2003/01/24 01:47:55 fjoe Exp $ 51 51 */ 52 52 … … 54 54 * clnt.h - Client side remote procedure call interface. 55 55 * 56 * Copyright (C) 1984, Sun Microsystems, Inc. 57 */ 56 * Copyright (c) 1986-1991,1994-1999 by Sun Microsystems, Inc. 57 * All rights reserved. 58 */ 59 60 /* 61 * $Id$ 62 */ 58 63 59 64 #ifndef _RPC_CLNT_H_ 60 65 #define _RPC_CLNT_H_ 66 #include <rpc/clnt_stat.h> 61 67 #include <sys/cdefs.h> 62 68 #include <sys/un.h> 63 64 /*65 * Rpc calls return an enum clnt_stat. This should be looked at more,66 * since each implementation is required to live with this (implementation67 * independent) list of errors.68 */69 enum clnt_stat {70 RPC_SUCCESS=0, /* call succeeded */71 /*72 * local errors73 */74 RPC_CANTENCODEARGS=1, /* can't encode arguments */75 RPC_CANTDECODERES=2, /* can't decode results */76 RPC_CANTSEND=3, /* failure in sending call */77 RPC_CANTRECV=4, /* failure in receiving result */78 RPC_TIMEDOUT=5, /* call timed out */79 /*80 * remote errors81 */82 RPC_VERSMISMATCH=6, /* rpc versions not compatible */83 RPC_AUTHERROR=7, /* authentication error */84 RPC_PROGUNAVAIL=8, /* program not available */85 RPC_PROGVERSMISMATCH=9, /* program version mismatched */86 RPC_PROCUNAVAIL=10, /* procedure unavailable */87 RPC_CANTDECODEARGS=11, /* decode arguments error */88 RPC_SYSTEMERROR=12, /* generic "other problem" */89 90 /*91 * callrpc & clnt_create errors92 */93 RPC_UNKNOWNHOST=13, /* unknown host name */94 RPC_UNKNOWNPROTO=17, /* unkown protocol */95 96 /*97 * _ create errors98 */99 RPC_PMAPFAILURE=14, /* the pmapper failed in its call */100 RPC_PROGNOTREGISTERED=15, /* remote program is not registered */101 /*102 * unspecified error103 */104 RPC_FAILED=16105 };106 107 69 108 70 /* … … 159 121 } CLIENT; 160 122 123 #define RPCSMALLMSGSIZE 400 /* a more reasonable packet size */ 161 124 162 125 /* … … 349 312 extern struct rpc_createerr rpc_createerr; 350 313 351 352 #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */353 #define RPCSMALLMSGSIZE 400 /* a more reasonable packet size */354 355 314 /* For backward compatibility */ 356 315 #include <rpc/clnt_soc.h> -
cpukit/librpc/include/rpc/svc.h
r984d9224 rc11cb9a5 200 200 201 201 __BEGIN_DECLS 202 extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, char*);202 extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, void *); 203 203 extern void svcerr_decode(SVCXPRT *); 204 204 extern void svcerr_weakauth(SVCXPRT *); 205 205 extern void svcerr_noproc(SVCXPRT *); 206 extern void svcerr_progvers(SVCXPRT *, u_long, u_long);206 extern void svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t); 207 207 extern void svcerr_auth(SVCXPRT *, enum auth_stat); 208 208 extern void svcerr_noprog(SVCXPRT *); -
cpukit/librpc/src/rpc/svc.c
r984d9224 rc11cb9a5 245 245 register SVCXPRT *xprt, 246 246 xdrproc_t xdr_results, 247 caddr_txdr_location )247 void *xdr_location ) 248 248 { 249 249 struct rpc_msg rply; … … 356 356 svcerr_progvers( 357 357 register SVCXPRT *xprt, 358 u_longlow_vers,359 u_longhigh_vers )358 rpcvers_t low_vers, 359 rpcvers_t high_vers ) 360 360 { 361 361 struct rpc_msg rply;
Note: See TracChangeset
for help on using the changeset viewer.