rpcb_clnt.h revision 177633
1177633Sdfr/* $NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $ */ 2177633Sdfr/* $FreeBSD: head/sys/rpc/rpcb_clnt.h 177633 2008-03-26 15:23:12Z dfr $ */ 3177633Sdfr 4177633Sdfr/* 5177633Sdfr * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6177633Sdfr * unrestricted use provided that this legend is included on all tape 7177633Sdfr * media and as a part of the software program in whole or part. Users 8177633Sdfr * may copy or modify Sun RPC without charge, but are not authorized 9177633Sdfr * to license or distribute it to anyone else except as part of a product or 10177633Sdfr * program developed by the user. 11177633Sdfr * 12177633Sdfr * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 13177633Sdfr * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 14177633Sdfr * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 15177633Sdfr * 16177633Sdfr * Sun RPC is provided with no support and without any obligation on the 17177633Sdfr * part of Sun Microsystems, Inc. to assist in its use, correction, 18177633Sdfr * modification or enhancement. 19177633Sdfr * 20177633Sdfr * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 21177633Sdfr * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 22177633Sdfr * OR ANY PART THEREOF. 23177633Sdfr * 24177633Sdfr * In no event will Sun Microsystems, Inc. be liable for any lost revenue 25177633Sdfr * or profits or other special, indirect and consequential damages, even if 26177633Sdfr * Sun has been advised of the possibility of such damages. 27177633Sdfr * 28177633Sdfr * Sun Microsystems, Inc. 29177633Sdfr * 2550 Garcia Avenue 30177633Sdfr * Mountain View, California 94043 31177633Sdfr */ 32177633Sdfr/* 33177633Sdfr * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 34177633Sdfr */ 35177633Sdfr 36177633Sdfr/* 37177633Sdfr * rpcb_clnt.h 38177633Sdfr * Supplies C routines to get to rpcbid services. 39177633Sdfr * 40177633Sdfr */ 41177633Sdfr 42177633Sdfr/* 43177633Sdfr * Usage: 44177633Sdfr * success = rpcb_set(program, version, nconf, address); 45177633Sdfr * success = rpcb_unset(program, version, nconf); 46177633Sdfr * success = rpcb_getaddr(program, version, nconf, host); 47177633Sdfr * head = rpcb_getmaps(nconf, host); 48177633Sdfr * clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure, 49177633Sdfr * xdrargs, argsp, xdrres, resp, tout, addr_ptr) 50177633Sdfr * success = rpcb_gettime(host, timep) 51177633Sdfr * uaddr = rpcb_taddr2uaddr(nconf, taddr); 52177633Sdfr * taddr = rpcb_uaddr2uaddr(nconf, uaddr); 53177633Sdfr */ 54177633Sdfr 55177633Sdfr#ifndef _RPC_RPCB_CLNT_H 56177633Sdfr#define _RPC_RPCB_CLNT_H 57177633Sdfr 58177633Sdfr/* #pragma ident "@(#)rpcb_clnt.h 1.13 94/04/25 SMI" */ 59177633Sdfr/* rpcb_clnt.h 1.3 88/12/05 SMI */ 60177633Sdfr 61177633Sdfr#include <rpc/types.h> 62177633Sdfr#ifndef _KERNEL 63177633Sdfr#include <rpc/rpcb_prot.h> 64177633Sdfr#endif 65177633Sdfr 66177633Sdfr__BEGIN_DECLS 67177633Sdfrextern bool_t rpcb_set(const rpcprog_t, const rpcvers_t, 68177633Sdfr const struct netconfig *, const struct netbuf *); 69177633Sdfrextern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t, 70177633Sdfr const struct netconfig *); 71177633Sdfr#ifndef _KERNEL 72177633Sdfrextern rpcblist *rpcb_getmaps(const struct netconfig *, const char *); 73177633Sdfrextern enum clnt_stat rpcb_rmtcall(const struct netconfig *, 74177633Sdfr const char *, const rpcprog_t, 75177633Sdfr const rpcvers_t, const rpcproc_t, 76177633Sdfr const xdrproc_t, const caddr_t, 77177633Sdfr const xdrproc_t, const caddr_t, 78177633Sdfr const struct timeval, 79177633Sdfr const struct netbuf *); 80177633Sdfrextern bool_t rpcb_getaddr(const rpcprog_t, const rpcvers_t, 81177633Sdfr const struct netconfig *, struct netbuf *, 82177633Sdfr const char *); 83177633Sdfrextern bool_t rpcb_gettime(const char *, time_t *); 84177633Sdfrextern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *); 85177633Sdfrextern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *); 86177633Sdfr#endif 87177633Sdfr__END_DECLS 88177633Sdfr 89177633Sdfr#endif /* !_RPC_RPCB_CLNT_H */ 90