llib-lrac revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A/*
0N/A * CDDL HEADER START
0N/A *
0N/A * The contents of this file are subject to the terms of the
0N/A * Common Development and Distribution License, Version 1.0 only
0N/A * (the "License"). You may not use this file except in compliance
0N/A * with the License.
0N/A *
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * or http://www.opensolaris.org/os/licensing.
0N/A * See the License for the specific language governing permissions
0N/A * and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL HEADER in each
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A * If applicable, add the following below this CDDL HEADER, with the
0N/A * fields enclosed by brackets "[]" replaced with your own identifying
0N/A * information: Portions Copyright [yyyy] [name of copyright owner]
0N/A *
0N/A * CDDL HEADER END
0N/A */
0N/A/* LINTLIBRARY */
0N/A/* PROTOLIB1 */
0N/A
0N/A/*
0N/A * Copyright (c) 1998 by Sun Microsystems, Inc.
0N/A * All rights reserved.
0N/A */
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A#define PORTMAP
0N/A
0N/A#include <rpc/rpc.h>
0N/A#include <rpc/rac.h>
0N/A#include "rac_private.h"
0N/A
0N/A/* clnt_dg.c */
0N/ACLIENT *clnt_dg_create(const int fd, struct netbuf *svcaddr,
0N/A const rpcprog_t program, const rpcvers_t version, const uint_t sendsz,
0N/A const uint_t recvsz);
0N/A
0N/A/* clnt_generic.c */
0N/ACLIENT *clnt_create_vers(const char *hostname, const rpcprog_t prog,
0N/A rpcvers_t *vers_out, const rpcvers_t vers_low, const rpcvers_t vers_high,
0N/A const char *nettype);
0N/ACLIENT *clnt_create(const char *hostname, rpcprog_t prog, rpcvers_t vers,
0N/A const char *nettype);
0N/ACLIENT *clnt_tp_create(const char *hostname, const rpcprog_t prog,
0N/A const rpcvers_t vers, const struct netconfig *nconf);
0N/ACLIENT *clnt_tli_create(const int fd, const struct netconfig *nconf,
0N/A struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers,
0N/A const uint_t sendsz, const uint_t recvsz);
0N/A
0N/A/* clnt_vc.c */
0N/ACLIENT *clnt_vc_create(const int fd, struct netbuf *svcaddr,
0N/A const rpcprog_t prog, const rpcvers_t vers, const uint_t sendsz,
0N/A const uint_t recvsz);
0N/A
0N/A/* rac.c */
0N/Avoid rac_drop(CLIENT *cl, void *h);
0N/Aenum clnt_stat rac_poll(CLIENT *cl, void *h);
0N/Aenum clnt_stat rac_recv(CLIENT *cl, void *h);
0N/Avoid *rac_send(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, void *argsp,
0N/A xdrproc_t xresults, void *resultsp, struct timeval timeout);
0N/Aint __rpc_dtbsize();
0N/Auint_t __rpc_get_t_size(t_scalar_t size, t_scalar_t bufsize);
0N/Auint_t __rpc_get_a_size(t_scalar_t size);
0N/Astruct netconfig *__rpc_getconfip(char *nettype);
0N/Avoid *__rpc_setconf(char *nettype);
0N/Astruct netconfig *__rpc_getconf(void *vhandle);
0N/Avoid __rpc_endconf(void *vhandle);
0N/Aint __rpc_select_to_poll(int fdmax, fd_set *fdset, struct pollfd *p0);
0N/Aint __rpc_timeval_to_msec(struct timeval *t);
0N/Avoid __seterr_reply(struct rpc_msg *msg, struct rpc_err *error);
0N/A
0N/A/* rpcb_clnt.c */
0N/Abool_t __rpc_control(int request, void *info);
0N/Abool_t rpcb_set(const rpcprog_t program, const rpcvers_t version,
0N/A const struct netconfig *nconf, const struct netbuf *address);
0N/Abool_t rpcb_unset(const rpcprog_t program, const rpcvers_t version,
0N/A const struct netconfig *nconf);
0N/Aint rpcb_getaddr(const rpcprog_t program, const rpcvers_t version,
0N/A const struct netconfig *nconf, struct netbuf *address, const char *host);
0N/Arpcblist *rpcb_getmaps(const struct netconfig *nconf, const char *host);
0N/Aenum clnt_stat rpcb_rmtcall(const struct netconfig *nconf, const char *host,
0N/A const rpcprog_t prog, const rpcvers_t vers, const rpcproc_t proc,
0N/A const xdrproc_t xdrargs, const caddr_t argsp, const xdrproc_t xdrres,
0N/A const caddr_t resp, const struct timeval tout, struct netbuf *addr_ptr);
0N/Abool_t rpcb_gettime(const char *host, time_t *timep);
0N/Achar *rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr);
0N/Astruct netbuf *rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr);
0N/A
0N/A/* xdr_rec.c */
0N/Avoid xdrrec_create(XDR *xdrs, const uint_t sendsize, const uint_t recvsize,
0N/A const caddr_t tcp_handle,
0N/A int (*readit)(void *, caddr_t, int), int (*writeit)(void *, caddr_t, int));
0N/Auint_t xdrrec_readbytes(XDR *xdrs, caddr_t addr, uint_t l);
0N/Abool_t xdrrec_skiprecord(XDR *xdrs);
0N/Abool_t xdrrec_eof(XDR *xdrs);
0N/Abool_t xdrrec_endofrecord(XDR *xdrs, bool_t sendnow);
0N/A
0N/A/* xdr_rec_subr.c */
0N/A
0N/A