|
||||
File indexing completed on 2025-01-18 10:13:01
0001 /* $NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $ */ 0002 /* $FreeBSD: src/include/rpc/rpcb_clnt.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */ 0003 0004 /* 0005 * Copyright (c) 2009, Sun Microsystems, Inc. 0006 * All rights reserved. 0007 * 0008 * Redistribution and use in source and binary forms, with or without 0009 * modification, are permitted provided that the following conditions are met: 0010 * - Redistributions of source code must retain the above copyright notice, 0011 * this list of conditions and the following disclaimer. 0012 * - Redistributions in binary form must reproduce the above copyright notice, 0013 * this list of conditions and the following disclaimer in the documentation 0014 * and/or other materials provided with the distribution. 0015 * - Neither the name of Sun Microsystems, Inc. nor the names of its 0016 * contributors may be used to endorse or promote products derived 0017 * from this software without specific prior written permission. 0018 * 0019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0022 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 0023 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0024 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0025 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0026 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0027 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0028 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0029 * POSSIBILITY OF SUCH DAMAGE. 0030 */ 0031 /* 0032 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 0033 */ 0034 0035 /* 0036 * rpcb_clnt.h 0037 * Supplies C routines to get to rpcbid services. 0038 * 0039 */ 0040 0041 /* 0042 * Usage: 0043 * success = rpcb_set(program, version, nconf, address); 0044 * success = rpcb_unset(program, version, nconf); 0045 * success = rpcb_getaddr(program, version, nconf, host); 0046 * head = rpcb_getmaps(nconf, host); 0047 * clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure, 0048 * xdrargs, argsp, xdrres, resp, tout, addr_ptr) 0049 * success = rpcb_gettime(host, timep) 0050 * uaddr = rpcb_taddr2uaddr(nconf, taddr); 0051 * taddr = rpcb_uaddr2uaddr(nconf, uaddr); 0052 */ 0053 0054 #ifndef _RPC_RPCB_CLNT_H 0055 #define _RPC_RPCB_CLNT_H 0056 0057 /* #pragma ident "@(#)rpcb_clnt.h 1.13 94/04/25 SMI" */ 0058 /* rpcb_clnt.h 1.3 88/12/05 SMI */ 0059 0060 #include <rpc/types.h> 0061 #include <rpc/rpcb_prot.h> 0062 #ifdef __cplusplus 0063 extern "C" { 0064 #endif 0065 extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t, 0066 const struct netconfig *, const struct netbuf *); 0067 extern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t, 0068 const struct netconfig *); 0069 extern rpcblist *rpcb_getmaps(const struct netconfig *, const char *); 0070 extern enum clnt_stat rpcb_rmtcall(const struct netconfig *, 0071 const char *, const rpcprog_t, 0072 const rpcvers_t, const rpcproc_t, 0073 const xdrproc_t, const caddr_t, 0074 const xdrproc_t, const caddr_t, 0075 const struct timeval, 0076 const struct netbuf *); 0077 extern bool_t rpcb_getaddr(const rpcprog_t, const rpcvers_t, 0078 const struct netconfig *, struct netbuf *, 0079 const char *); 0080 extern bool_t rpcb_gettime(const char *, time_t *); 0081 extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *); 0082 extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *); 0083 #ifdef __cplusplus 0084 } 0085 #endif 0086 0087 #endif /* !_RPC_RPCB_CLNT_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |