rpc_internal.h revision 1.4 1 /* $NetBSD: rpc_internal.h,v 1.4 2004/05/28 14:39:07 christos Exp $ */
2
3 /*-
4 * Copyright (c) 2004 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Frank van der Linden.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38 /*
39 * Private include file for XDR functions only used internally in libc.
40 * These are not exported interfaces.
41 */
42
43 bool_t __xdrrec_getrec __P((XDR *, enum xprt_stat *, bool_t));
44 bool_t __xdrrec_setnonblock __P((XDR *, int));
45 void __xprt_unregister_unlocked __P((SVCXPRT *));
46 bool_t __svc_clean_idle __P((fd_set *, int, bool_t));
47
48 bool_t __xdrrec_getrec __P((XDR *, enum xprt_stat *, bool_t));
49 bool_t __xdrrec_setnonblock __P((XDR *, int));
50
51 u_int __rpc_get_a_size __P((int));
52 int __rpc_dtbsize __P((void));
53 struct netconfig * __rpcgettp __P((int));
54 int __rpc_get_default_domain __P((char **));
55
56 char *__rpc_taddr2uaddr_af __P((int, const struct netbuf *));
57 struct netbuf *__rpc_uaddr2taddr_af __P((int, const char *));
58 int __rpc_fixup_addr __P((struct netbuf *, const struct netbuf *));
59 int __rpc_sockinfo2netid __P((struct __rpc_sockinfo *, const char **));
60 int __rpc_seman2socktype __P((int));
61 int __rpc_socktype2seman __P((int));
62 void *rpc_nullproc __P((CLIENT *));
63 int __rpc_sockisbound __P((int));
64
65 struct netbuf *__rpcb_findaddr __P((rpcprog_t, rpcvers_t,
66 const struct netconfig *,
67 const char *, CLIENT **));
68 bool_t __rpc_control __P((int,void *));
69
70 char *_get_next_token __P((char *, int));
71
72 u_int32_t __rpc_getxid __P((void));
73 #define __RPC_GETXID() (__rpc_getxid())
74
75 extern SVCXPRT **__svc_xports;
76 extern int __svc_maxrec;
77