clnt_dg.c (92990) | clnt_dg.c (95658) |
---|---|
1/* $NetBSD: clnt_dg.c,v 1.4 2000/07/14 08:40:41 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 --- 24 unchanged lines hidden (view full) --- 33 */ 34 35/* #ident "@(#)clnt_dg.c 1.23 94/04/22 SMI" */ 36 37#if !defined(lint) && defined(SCCSIDS) 38static char sccsid[] = "@(#)clnt_dg.c 1.19 89/03/16 Copyr 1988 Sun Micro"; 39#endif 40#include <sys/cdefs.h> | 1/* $NetBSD: clnt_dg.c,v 1.4 2000/07/14 08:40:41 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 --- 24 unchanged lines hidden (view full) --- 33 */ 34 35/* #ident "@(#)clnt_dg.c 1.23 94/04/22 SMI" */ 36 37#if !defined(lint) && defined(SCCSIDS) 38static char sccsid[] = "@(#)clnt_dg.c 1.19 89/03/16 Copyr 1988 Sun Micro"; 39#endif 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/lib/libc/rpc/clnt_dg.c 92990 2002-03-22 23:18:37Z obrien $"); | 41__FBSDID("$FreeBSD: head/lib/libc/rpc/clnt_dg.c 95658 2002-04-28 15:18:50Z des $"); |
42 43/* 44 * Implements a connectionless client side RPC. 45 */ 46 47#include "namespace.h" 48#include "reentrant.h" 49#include <sys/poll.h> --- 13 unchanged lines hidden (view full) --- 63#include "rpc_com.h" 64 65 66#define RPC_MAX_BACKOFF 30 /* seconds */ 67 68 69static struct clnt_ops *clnt_dg_ops(void); 70static bool_t time_not_ok(struct timeval *); | 42 43/* 44 * Implements a connectionless client side RPC. 45 */ 46 47#include "namespace.h" 48#include "reentrant.h" 49#include <sys/poll.h> --- 13 unchanged lines hidden (view full) --- 63#include "rpc_com.h" 64 65 66#define RPC_MAX_BACKOFF 30 /* seconds */ 67 68 69static struct clnt_ops *clnt_dg_ops(void); 70static bool_t time_not_ok(struct timeval *); |
71static enum clnt_stat clnt_dg_call(CLIENT *, rpcproc_t, xdrproc_t, caddr_t, 72 xdrproc_t, caddr_t, struct timeval); | 71static enum clnt_stat clnt_dg_call(CLIENT *, rpcproc_t, xdrproc_t, void *, 72 xdrproc_t, void *, struct timeval); |
73static void clnt_dg_geterr(CLIENT *, struct rpc_err *); | 73static void clnt_dg_geterr(CLIENT *, struct rpc_err *); |
74static bool_t clnt_dg_freeres(CLIENT *, xdrproc_t, caddr_t); | 74static bool_t clnt_dg_freeres(CLIENT *, xdrproc_t, void *); |
75static void clnt_dg_abort(CLIENT *); 76static bool_t clnt_dg_control(CLIENT *, u_int, char *); 77static void clnt_dg_destroy(CLIENT *); 78static int __rpc_timeval_to_msec(struct timeval *); 79 80 81 82 --- 206 unchanged lines hidden (view full) --- 289 return (NULL); 290} 291 292static enum clnt_stat 293clnt_dg_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout) 294 CLIENT *cl; /* client handle */ 295 rpcproc_t proc; /* procedure number */ 296 xdrproc_t xargs; /* xdr routine for args */ | 75static void clnt_dg_abort(CLIENT *); 76static bool_t clnt_dg_control(CLIENT *, u_int, char *); 77static void clnt_dg_destroy(CLIENT *); 78static int __rpc_timeval_to_msec(struct timeval *); 79 80 81 82 --- 206 unchanged lines hidden (view full) --- 289 return (NULL); 290} 291 292static enum clnt_stat 293clnt_dg_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout) 294 CLIENT *cl; /* client handle */ 295 rpcproc_t proc; /* procedure number */ 296 xdrproc_t xargs; /* xdr routine for args */ |
297 caddr_t argsp; /* pointer to args */ | 297 void *argsp; /* pointer to args */ |
298 xdrproc_t xresults; /* xdr routine for results */ | 298 xdrproc_t xresults; /* xdr routine for results */ |
299 caddr_t resultsp; /* pointer to results */ | 299 void *resultsp; /* pointer to results */ |
300 struct timeval utimeout; /* seconds to wait before giving up */ 301{ 302 struct cu_data *cu = (struct cu_data *)cl->cl_private; 303 XDR *xdrs; 304 size_t outlen; 305 struct rpc_msg reply_msg; 306 XDR reply_xdrs; 307 struct timeval time_waited; --- 281 unchanged lines hidden (view full) --- 589 590 *errp = cu->cu_error; 591} 592 593static bool_t 594clnt_dg_freeres(cl, xdr_res, res_ptr) 595 CLIENT *cl; 596 xdrproc_t xdr_res; | 300 struct timeval utimeout; /* seconds to wait before giving up */ 301{ 302 struct cu_data *cu = (struct cu_data *)cl->cl_private; 303 XDR *xdrs; 304 size_t outlen; 305 struct rpc_msg reply_msg; 306 XDR reply_xdrs; 307 struct timeval time_waited; --- 281 unchanged lines hidden (view full) --- 589 590 *errp = cu->cu_error; 591} 592 593static bool_t 594clnt_dg_freeres(cl, xdr_res, res_ptr) 595 CLIENT *cl; 596 xdrproc_t xdr_res; |
597 caddr_t res_ptr; | 597 void *res_ptr; |
598{ 599 struct cu_data *cu = (struct cu_data *)cl->cl_private; 600 XDR *xdrs = &(cu->cu_outxdrs); 601 bool_t dummy; 602 sigset_t mask; 603 sigset_t newmask; 604 605 sigfillset(&newmask); --- 253 unchanged lines hidden --- | 598{ 599 struct cu_data *cu = (struct cu_data *)cl->cl_private; 600 XDR *xdrs = &(cu->cu_outxdrs); 601 bool_t dummy; 602 sigset_t mask; 603 sigset_t newmask; 604 605 sigfillset(&newmask); --- 253 unchanged lines hidden --- |