Deleted Added
full compact
svc.h (93032) svc.h (95658)
1/* $NetBSD: svc.h,v 1.17 2000/06/02 22:57:56 fvdl Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 16 unchanged lines hidden (view full) ---

25 * Sun has been advised of the possibility of such damages.
26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California 94043
30 *
31 * from: @(#)svc.h 1.35 88/12/17 SMI
32 * from: @(#)svc.h 1.27 94/04/25 SMI
1/* $NetBSD: svc.h,v 1.17 2000/06/02 22:57:56 fvdl Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 16 unchanged lines hidden (view full) ---

25 * Sun has been advised of the possibility of such damages.
26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California 94043
30 *
31 * from: @(#)svc.h 1.35 88/12/17 SMI
32 * from: @(#)svc.h 1.27 94/04/25 SMI
33 * $FreeBSD: head/include/rpc/svc.h 93032 2002-03-23 17:24:55Z imp $
33 * $FreeBSD: head/include/rpc/svc.h 95658 2002-04-28 15:18:50Z des $
34 */
35
36/*
37 * svc.h, Server-side remote procedure call interface.
38 *
39 * Copyright (C) 1986-1993 by Sun Microsystems, Inc.
40 */
41

--- 44 unchanged lines hidden (view full) ---

86 u_short xp_port; /* associated port number */
87 const struct xp_ops {
88 /* receive incoming requests */
89 bool_t (*xp_recv)(struct __rpc_svcxprt *, struct rpc_msg *);
90 /* get transport status */
91 enum xprt_stat (*xp_stat)(struct __rpc_svcxprt *);
92 /* get arguments */
93 bool_t (*xp_getargs)(struct __rpc_svcxprt *, xdrproc_t,
34 */
35
36/*
37 * svc.h, Server-side remote procedure call interface.
38 *
39 * Copyright (C) 1986-1993 by Sun Microsystems, Inc.
40 */
41

--- 44 unchanged lines hidden (view full) ---

86 u_short xp_port; /* associated port number */
87 const struct xp_ops {
88 /* receive incoming requests */
89 bool_t (*xp_recv)(struct __rpc_svcxprt *, struct rpc_msg *);
90 /* get transport status */
91 enum xprt_stat (*xp_stat)(struct __rpc_svcxprt *);
92 /* get arguments */
93 bool_t (*xp_getargs)(struct __rpc_svcxprt *, xdrproc_t,
94 caddr_t);
94 void *);
95 /* send reply */
96 bool_t (*xp_reply)(struct __rpc_svcxprt *, struct rpc_msg *);
97 /* free mem allocated for args */
98 bool_t (*xp_freeargs)(struct __rpc_svcxprt *, xdrproc_t,
95 /* send reply */
96 bool_t (*xp_reply)(struct __rpc_svcxprt *, struct rpc_msg *);
97 /* free mem allocated for args */
98 bool_t (*xp_freeargs)(struct __rpc_svcxprt *, xdrproc_t,
99 caddr_t);
99 void *);
100 /* destroy this struct */
101 void (*xp_destroy)(struct __rpc_svcxprt *);
102 } *xp_ops;
103 int xp_addrlen; /* length of remote address */
104 struct sockaddr_in xp_raddr; /* remote addr. (backward ABI compat) */
105 /* XXX - fvdl stick this here for ABI backward compat reasons */
106 const struct xp_ops2 {
107 /* catch-all function */

--- 34 unchanged lines hidden (view full) ---

142#define __svc_getcallercreds(x) ((struct cmsgcred *)(x)->xp_p2)
143
144/*
145 * Operations defined on an SVCXPRT handle
146 *
147 * SVCXPRT *xprt;
148 * struct rpc_msg *msg;
149 * xdrproc_t xargs;
100 /* destroy this struct */
101 void (*xp_destroy)(struct __rpc_svcxprt *);
102 } *xp_ops;
103 int xp_addrlen; /* length of remote address */
104 struct sockaddr_in xp_raddr; /* remote addr. (backward ABI compat) */
105 /* XXX - fvdl stick this here for ABI backward compat reasons */
106 const struct xp_ops2 {
107 /* catch-all function */

--- 34 unchanged lines hidden (view full) ---

142#define __svc_getcallercreds(x) ((struct cmsgcred *)(x)->xp_p2)
143
144/*
145 * Operations defined on an SVCXPRT handle
146 *
147 * SVCXPRT *xprt;
148 * struct rpc_msg *msg;
149 * xdrproc_t xargs;
150 * caddr_t argsp;
150 * void * argsp;
151 */
152#define SVC_RECV(xprt, msg) \
153 (*(xprt)->xp_ops->xp_recv)((xprt), (msg))
154#define svc_recv(xprt, msg) \
155 (*(xprt)->xp_ops->xp_recv)((xprt), (msg))
156
157#define SVC_STAT(xprt) \
158 (*(xprt)->xp_ops->xp_stat)(xprt)

--- 95 unchanged lines hidden (view full) ---

254 * case of a batched call, svc_sendreply should NOT be called since
255 * this would send a return message, which is what batching tries to avoid.
256 * It is the service/protocol writer's responsibility to know which calls are
257 * batched and which are not. Warning: responding to batch calls may
258 * deadlock the caller and server processes!
259 */
260
261__BEGIN_DECLS
151 */
152#define SVC_RECV(xprt, msg) \
153 (*(xprt)->xp_ops->xp_recv)((xprt), (msg))
154#define svc_recv(xprt, msg) \
155 (*(xprt)->xp_ops->xp_recv)((xprt), (msg))
156
157#define SVC_STAT(xprt) \
158 (*(xprt)->xp_ops->xp_stat)(xprt)

--- 95 unchanged lines hidden (view full) ---

254 * case of a batched call, svc_sendreply should NOT be called since
255 * this would send a return message, which is what batching tries to avoid.
256 * It is the service/protocol writer's responsibility to know which calls are
257 * batched and which are not. Warning: responding to batch calls may
258 * deadlock the caller and server processes!
259 */
260
261__BEGIN_DECLS
262extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, char *);
262extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, void *);
263extern void svcerr_decode(SVCXPRT *);
264extern void svcerr_weakauth(SVCXPRT *);
265extern void svcerr_noproc(SVCXPRT *);
266extern void svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t);
267extern void svcerr_auth(SVCXPRT *, enum auth_stat);
268extern void svcerr_noprog(SVCXPRT *);
269extern void svcerr_systemerr(SVCXPRT *);
270extern int rpc_reg(rpcprog_t, rpcvers_t, rpcproc_t,

--- 159 unchanged lines hidden ---
263extern void svcerr_decode(SVCXPRT *);
264extern void svcerr_weakauth(SVCXPRT *);
265extern void svcerr_noproc(SVCXPRT *);
266extern void svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t);
267extern void svcerr_auth(SVCXPRT *, enum auth_stat);
268extern void svcerr_noprog(SVCXPRT *);
269extern void svcerr_systemerr(SVCXPRT *);
270extern int rpc_reg(rpcprog_t, rpcvers_t, rpcproc_t,

--- 159 unchanged lines hidden ---