18360efbdSAlfred Perlstein /* $NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $ */ 28360efbdSAlfred Perlstein /* $FreeBSD$ */ 38360efbdSAlfred Perlstein 48360efbdSAlfred Perlstein /* 58360efbdSAlfred Perlstein * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 68360efbdSAlfred Perlstein * unrestricted use provided that this legend is included on all tape 78360efbdSAlfred Perlstein * media and as a part of the software program in whole or part. Users 88360efbdSAlfred Perlstein * may copy or modify Sun RPC without charge, but are not authorized 98360efbdSAlfred Perlstein * to license or distribute it to anyone else except as part of a product or 108360efbdSAlfred Perlstein * program developed by the user. 118360efbdSAlfred Perlstein * 128360efbdSAlfred Perlstein * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 138360efbdSAlfred Perlstein * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 148360efbdSAlfred Perlstein * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 158360efbdSAlfred Perlstein * 168360efbdSAlfred Perlstein * Sun RPC is provided with no support and without any obligation on the 178360efbdSAlfred Perlstein * part of Sun Microsystems, Inc. to assist in its use, correction, 188360efbdSAlfred Perlstein * modification or enhancement. 198360efbdSAlfred Perlstein * 208360efbdSAlfred Perlstein * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 218360efbdSAlfred Perlstein * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 228360efbdSAlfred Perlstein * OR ANY PART THEREOF. 238360efbdSAlfred Perlstein * 248360efbdSAlfred Perlstein * In no event will Sun Microsystems, Inc. be liable for any lost revenue 258360efbdSAlfred Perlstein * or profits or other special, indirect and consequential damages, even if 268360efbdSAlfred Perlstein * Sun has been advised of the possibility of such damages. 278360efbdSAlfred Perlstein * 288360efbdSAlfred Perlstein * Sun Microsystems, Inc. 298360efbdSAlfred Perlstein * 2550 Garcia Avenue 308360efbdSAlfred Perlstein * Mountain View, California 94043 318360efbdSAlfred Perlstein */ 328360efbdSAlfred Perlstein /* 338360efbdSAlfred Perlstein * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 348360efbdSAlfred Perlstein */ 358360efbdSAlfred Perlstein 368360efbdSAlfred Perlstein /* 378360efbdSAlfred Perlstein * rpcb_clnt.h 388360efbdSAlfred Perlstein * Supplies C routines to get to rpcbid services. 398360efbdSAlfred Perlstein * 408360efbdSAlfred Perlstein */ 418360efbdSAlfred Perlstein 428360efbdSAlfred Perlstein /* 438360efbdSAlfred Perlstein * Usage: 448360efbdSAlfred Perlstein * success = rpcb_set(program, version, nconf, address); 458360efbdSAlfred Perlstein * success = rpcb_unset(program, version, nconf); 468360efbdSAlfred Perlstein * success = rpcb_getaddr(program, version, nconf, host); 478360efbdSAlfred Perlstein * head = rpcb_getmaps(nconf, host); 488360efbdSAlfred Perlstein * clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure, 498360efbdSAlfred Perlstein * xdrargs, argsp, xdrres, resp, tout, addr_ptr) 508360efbdSAlfred Perlstein * success = rpcb_gettime(host, timep) 518360efbdSAlfred Perlstein * uaddr = rpcb_taddr2uaddr(nconf, taddr); 528360efbdSAlfred Perlstein * taddr = rpcb_uaddr2uaddr(nconf, uaddr); 538360efbdSAlfred Perlstein */ 548360efbdSAlfred Perlstein 558360efbdSAlfred Perlstein #ifndef _RPC_RPCB_CLNT_H 568360efbdSAlfred Perlstein #define _RPC_RPCB_CLNT_H 578360efbdSAlfred Perlstein 588360efbdSAlfred Perlstein /* #pragma ident "@(#)rpcb_clnt.h 1.13 94/04/25 SMI" */ 598360efbdSAlfred Perlstein /* rpcb_clnt.h 1.3 88/12/05 SMI */ 608360efbdSAlfred Perlstein 618360efbdSAlfred Perlstein #include <rpc/types.h> 628360efbdSAlfred Perlstein #include <rpc/rpcb_prot.h> 638360efbdSAlfred Perlstein 648360efbdSAlfred Perlstein __BEGIN_DECLS 658360efbdSAlfred Perlstein extern bool_t rpcb_set __P((const rpcprog_t, const rpcvers_t, 668360efbdSAlfred Perlstein const struct netconfig *, const struct netbuf *)); 678360efbdSAlfred Perlstein extern bool_t rpcb_unset __P((const rpcprog_t, const rpcvers_t, 688360efbdSAlfred Perlstein const struct netconfig *)); 698360efbdSAlfred Perlstein extern rpcblist *rpcb_getmaps __P((const struct netconfig *, const char *)); 708360efbdSAlfred Perlstein extern enum clnt_stat rpcb_rmtcall __P((const struct netconfig *, 718360efbdSAlfred Perlstein const char *, const rpcprog_t, 728360efbdSAlfred Perlstein const rpcvers_t, const rpcproc_t, 738360efbdSAlfred Perlstein const xdrproc_t, const caddr_t, 748360efbdSAlfred Perlstein const xdrproc_t, const caddr_t, 758360efbdSAlfred Perlstein const struct timeval, 768360efbdSAlfred Perlstein const struct netbuf *)); 778360efbdSAlfred Perlstein extern bool_t rpcb_getaddr __P((const rpcprog_t, const rpcvers_t, 788360efbdSAlfred Perlstein const struct netconfig *, struct netbuf *, 798360efbdSAlfred Perlstein const char *)); 808360efbdSAlfred Perlstein extern bool_t rpcb_gettime __P((const char *, time_t *)); 818360efbdSAlfred Perlstein extern char *rpcb_taddr2uaddr __P((struct netconfig *, struct netbuf *)); 828360efbdSAlfred Perlstein extern struct netbuf *rpcb_uaddr2taddr __P((struct netconfig *, char *)); 838360efbdSAlfred Perlstein __END_DECLS 848360efbdSAlfred Perlstein 858360efbdSAlfred Perlstein #endif /* !_RPC_RPCB_CLNT_H */ 86