mxge: properly remove the sysctls
[dragonfly.git] / include / rpc / rpcb_clnt.h
blob49dce8c64f57085d56cd339c68f653cd4e85aa74
1 /*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
15 * modification or enhancement.
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19 * OR ANY PART THEREOF.
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22 * or profits or other special, indirect and consequential damages, even if
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
29 * from: @(#)rpcb_clnt.h 1.13 94/04/25 SMI
30 * from: rpcb_clnt.h 1.3 88/12/05 SMI
31 * $NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $
32 * $FreeBSD: src/include/rpc/rpcb_clnt.h,v 1.2 2002/03/23 17:24:55 imp Exp $
35 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
39 * rpcb_clnt.h
40 * Supplies C routines to get to rpcbid services.
45 * Usage:
46 * success = rpcb_set(program, version, nconf, address);
47 * success = rpcb_unset(program, version, nconf);
48 * success = rpcb_getaddr(program, version, nconf, host);
49 * head = rpcb_getmaps(nconf, host);
50 * clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure,
51 * xdrargs, argsp, xdrres, resp, tout, addr_ptr)
52 * success = rpcb_gettime(host, timep)
53 * uaddr = rpcb_taddr2uaddr(nconf, taddr);
54 * taddr = rpcb_uaddr2uaddr(nconf, uaddr);
57 #ifndef _RPC_RPCB_CLNT_H_
58 #define _RPC_RPCB_CLNT_H_
61 #include <rpc/types.h>
62 #include <rpc/rpcb_prot.h>
64 __BEGIN_DECLS
65 extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t,
66 const struct netconfig *, const struct netbuf *);
67 extern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t,
68 const struct netconfig *);
69 extern rpcblist *rpcb_getmaps(const struct netconfig *, const char *);
70 extern enum clnt_stat rpcb_rmtcall(const struct netconfig *,
71 const char *, const rpcprog_t,
72 const rpcvers_t, const rpcproc_t,
73 const xdrproc_t, const caddr_t,
74 const xdrproc_t, const caddr_t,
75 const struct timeval,
76 const struct netbuf *);
77 extern bool_t rpcb_getaddr(const rpcprog_t, const rpcvers_t,
78 const struct netconfig *, struct netbuf *,
79 const char *);
80 extern bool_t rpcb_gettime(const char *, time_t *);
81 extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *);
82 extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *);
83 __END_DECLS
85 #endif /* !_RPC_RPCB_CLNT_H_ */