xref: /netbsd/lib/libc/rpc/rpc_internal.h (revision c4a72b64)
1 /*	$NetBSD: rpc_internal.h,v 1.1 2002/11/08 00:13:08 fvdl Exp $	*/
2 
3 /*
4  * Private include file for XDR functions only used internally in libc.
5  * These are not exported interfaces.
6  */
7 
8 bool_t __xdrrec_getrec __P((XDR *, enum xprt_stat *, bool_t));
9 bool_t __xdrrec_setnonblock __P((XDR *, int));
10 void __xprt_unregister_unlocked __P((SVCXPRT *));
11 bool_t __svc_clean_idle __P((fd_set *, int, bool_t));
12 
13 bool_t __xdrrec_getrec __P((XDR *, enum xprt_stat *, bool_t));
14 bool_t __xdrrec_setnonblock __P((XDR *, int));
15 
16 u_int __rpc_get_a_size __P((int));
17 int __rpc_dtbsize __P((void));
18 struct netconfig * __rpcgettp __P((int));
19 int  __rpc_get_default_domain __P((char **));
20 
21 char *__rpc_taddr2uaddr_af __P((int, const struct netbuf *));
22 struct netbuf *__rpc_uaddr2taddr_af __P((int, const char *));
23 int __rpc_fixup_addr __P((struct netbuf *, const struct netbuf *));
24 int __rpc_sockinfo2netid __P((struct __rpc_sockinfo *, const char **));
25 int __rpc_seman2socktype __P((int));
26 int __rpc_socktype2seman __P((int));
27 void *rpc_nullproc __P((CLIENT *));
28 int __rpc_sockisbound __P((int));
29 
30 struct netbuf *__rpcb_findaddr __P((rpcprog_t, rpcvers_t,
31 				    const struct netconfig *,
32 				    const char *, CLIENT **));
33 bool_t __rpc_control __P((int,void *));
34 
35 char *_get_next_token __P((char *, int));
36 
37 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \
38     (u_int32_t)(now)->tv_usec)
39 
40 extern SVCXPRT **__svc_xports;
41 extern int __svc_maxrec;
42