pmap_rmt.h revision 1.5
18870Srgrimes/* $OpenBSD: pmap_rmt.h,v 1.5 2010/09/01 14:43:34 millert Exp $ */ 250476Speter/* $NetBSD: pmap_rmt.h,v 1.4 1994/10/26 00:57:01 cgd Exp $ */ 38870Srgrimes 42116Sjkh/* 52116Sjkh * Copyright (c) 2010, Oracle America, Inc. 68870Srgrimes * 72116Sjkh * Redistribution and use in source and binary forms, with or without 82116Sjkh * modification, are permitted provided that the following conditions are 98870Srgrimes * met: 102116Sjkh * 112116Sjkh * * Redistributions of source code must retain the above copyright 128870Srgrimes * notice, this list of conditions and the following disclaimer. 138870Srgrimes * * Redistributions in binary form must reproduce the above 142116Sjkh * copyright notice, this list of conditions and the following 152116Sjkh * disclaimer in the documentation and/or other materials 162116Sjkh * provided with the distribution. 172116Sjkh * * Neither the name of the "Oracle America, Inc." nor the names of its 188870Srgrimes * contributors may be used to endorse or promote products derived 198870Srgrimes * from this software without specific prior written permission. 2087804Sphantom * 212116Sjkh * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 222116Sjkh * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 232116Sjkh * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 242116Sjkh * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 252116Sjkh * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 268870Srgrimes * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 272116Sjkh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 282116Sjkh * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 292116Sjkh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 302116Sjkh * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 318870Srgrimes * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 322116Sjkh * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 332116Sjkh * 348870Srgrimes * from: @(#)pmap_rmt.h 1.2 88/02/08 SMI 352116Sjkh * @(#)pmap_rmt.h 2.1 88/07/29 4.0 RPCSRC 362116Sjkh */ 378870Srgrimes 382116Sjkh/* 392116Sjkh * Structures and XDR routines for parameters to and replies from 408870Srgrimes * the portmapper remote-call-service. 412116Sjkh */ 428870Srgrimes 432116Sjkh#ifndef _RPC_PMAPRMT_H 4433662Sjb#define _RPC_PMAPRMT_H 4533662Sjb#include <sys/cdefs.h> 4633662Sjb 4733662Sjbstruct rmtcallargs { 4833662Sjb unsigned long prog, vers, proc, arglen; 4933662Sjb caddr_t args_ptr; 5042044Sdfr xdrproc_t xdr_args; 5142044Sdfr}; 5233662Sjb 5322808Sbdestruct rmtcallres { 542116Sjkh unsigned long *port_ptr; 552116Sjkh unsigned long resultslen; 5622731Sbde caddr_t results_ptr; 572116Sjkh xdrproc_t xdr_results; 58117917Sbde}; 59117917Sbde 6033662Sjb__BEGIN_DECLS 612116Sjkhextern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *); 6293211Sbdeextern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *); 632116Sjkh__END_DECLS 642116Sjkh 652116Sjkh#endif /* !_RPC_PMAPRMT_H */ 66117909Speter