Deleted Added
full compact
rpc_svc_calls.3 (108037) rpc_svc_calls.3 (108087)
1.\" @(#)rpc_svc_calls.3n 1.28 93/05/10 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_calls 1.5 89/07/25 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5.\" $NetBSD: rpc_svc_calls.3,v 1.1 2000/06/02 23:11:13 fvdl Exp $
1.\" @(#)rpc_svc_calls.3n 1.28 93/05/10 SMI; from SVr4
2.\" Copyright 1989 AT&T
3.\" @(#)rpc_svc_calls 1.5 89/07/25 SMI;
4.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
5.\" $NetBSD: rpc_svc_calls.3,v 1.1 2000/06/02 23:11:13 fvdl Exp $
6.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_calls.3 108037 2002-12-18 12:45:11Z ru $
6.\" $FreeBSD: head/lib/libc/rpc/rpc_svc_calls.3 108087 2002-12-19 09:40:28Z ru $
7.Dd May 3, 1993
8.Dt RPC_SVC_CALLS 3
9.Os
10.Sh NAME
11.Nm svc_dg_enablecache ,
12.Nm svc_exit ,
13.Nm svc_fdset ,
14.Nm svc_freeargs ,

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

106The
107.Fn svc_exit
108function
109has global scope and ends all RPC server activity.
110.It Xo
111.Vt fd_set Va svc_fdset
112.Xc
113A global variable reflecting the
7.Dd May 3, 1993
8.Dt RPC_SVC_CALLS 3
9.Os
10.Sh NAME
11.Nm svc_dg_enablecache ,
12.Nm svc_exit ,
13.Nm svc_fdset ,
14.Nm svc_freeargs ,

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

106The
107.Fn svc_exit
108function
109has global scope and ends all RPC server activity.
110.It Xo
111.Vt fd_set Va svc_fdset
112.Xc
113A global variable reflecting the
114RPC server's read file descriptor bit mask; it is suitable as a parameter
114RPC server's read file descriptor bit mask; it is suitable as a argument
115to the
116.Xr select 2
117system call.
118This is only of interest
119if service implementors do not call
120.Fn svc_run ,
121but rather do their own asynchronous event processing.
122This variable is read-only (do not pass its address to

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

135freed, and
136.Dv FALSE
137otherwise.
138.It Fn svc_getargs
139A function macro that decodes the arguments of an
140RPC request associated with the RPC
141service transport handle
142.Fa xprt .
115to the
116.Xr select 2
117system call.
118This is only of interest
119if service implementors do not call
120.Fn svc_run ,
121but rather do their own asynchronous event processing.
122This variable is read-only (do not pass its address to

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

135freed, and
136.Dv FALSE
137otherwise.
138.It Fn svc_getargs
139A function macro that decodes the arguments of an
140RPC request associated with the RPC
141service transport handle
142.Fa xprt .
143The parameter
143The
144.Fa in
144.Fa in
145argument
145is the address where the arguments will be placed;
146.Fa inproc
147is the XDR
148routine used to decode the arguments.
149This routine returns
150.Dv TRUE
151if decoding succeeds, and
152.Dv FALSE

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

212.It Xo
213.Vt struct pollfd Va svc_pollset[FD_SETSIZE] ;
214.Xc
215.Va svc_pollset
216is an array of
217.Vt pollfd
218structures derived from
219.Va svc_fdset[] .
146is the address where the arguments will be placed;
147.Fa inproc
148is the XDR
149routine used to decode the arguments.
150This routine returns
151.Dv TRUE
152if decoding succeeds, and
153.Dv FALSE

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

213.It Xo
214.Vt struct pollfd Va svc_pollset[FD_SETSIZE] ;
215.Xc
216.Va svc_pollset
217is an array of
218.Vt pollfd
219structures derived from
220.Va svc_fdset[] .
220It is suitable as a parameter to the
221It is suitable as an argument to the
221.Xr poll 2
222system call.
223The derivation of
224.Va svc_pollset
225from
226.Va svc_fdset
227is made in the current implementation in
228.Fn svc_run .

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

237.Fn svc_getreq_poll
238when one arrives.
239This procedure is usually waiting for the
240.Xr poll 2
241system call to return.
242.It Fn svc_sendreply
243Called by an RPC service's dispatch routine to send the results of a
244remote procedure call.
222.Xr poll 2
223system call.
224The derivation of
225.Va svc_pollset
226from
227.Va svc_fdset
228is made in the current implementation in
229.Fn svc_run .

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

238.Fn svc_getreq_poll
239when one arrives.
240This procedure is usually waiting for the
241.Xr poll 2
242system call to return.
243.It Fn svc_sendreply
244Called by an RPC service's dispatch routine to send the results of a
245remote procedure call.
245The parameter
246The
246.Fa xprt
247.Fa xprt
248argument
247is the request's associated transport handle;
248.Fa outproc
249is the XDR
250routine which is used to encode the results; and
251.Fa out
252is the address of the results.
253This routine returns
254.Dv TRUE
255if it succeeds,
256.Dv FALSE
257otherwise.
258.El
259.Sh SEE ALSO
260.Xr poll 2 ,
261.Xr select 2 ,
262.Xr rpc 3 ,
263.Xr rpc_svc_create 3 ,
264.Xr rpc_svc_err 3 ,
265.Xr rpc_svc_reg 3
249is the request's associated transport handle;
250.Fa outproc
251is the XDR
252routine which is used to encode the results; and
253.Fa out
254is the address of the results.
255This routine returns
256.Dv TRUE
257if it succeeds,
258.Dv FALSE
259otherwise.
260.El
261.Sh SEE ALSO
262.Xr poll 2 ,
263.Xr select 2 ,
264.Xr rpc 3 ,
265.Xr rpc_svc_create 3 ,
266.Xr rpc_svc_err 3 ,
267.Xr rpc_svc_reg 3