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