00001 /* $Id$ */ 00002 /* $OpenBSD: pmap_rmt.h,v 1.2 1997/09/21 10:46:13 niklas Exp $ */ 00003 /* $NetBSD: pmap_rmt.h,v 1.4 1994/10/26 00:57:01 cgd Exp $ */ 00004 00005 /* 00006 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 00007 * unrestricted use provided that this legend is included on all tape 00008 * media and as a part of the software program in whole or part. Users 00009 * may copy or modify Sun RPC without charge, but are not authorized 00010 * to license or distribute it to anyone else except as part of a product or 00011 * program developed by the user. 00012 * 00013 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 00014 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 00015 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 00016 * 00017 * Sun RPC is provided with no support and without any obligation on the 00018 * part of Sun Microsystems, Inc. to assist in its use, correction, 00019 * modification or enhancement. 00020 * 00021 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 00022 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 00023 * OR ANY PART THEREOF. 00024 * 00025 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 00026 * or profits or other special, indirect and consequential damages, even if 00027 * Sun has been advised of the possibility of such damages. 00028 * 00029 * Sun Microsystems, Inc. 00030 * 2550 Garcia Avenue 00031 * Mountain View, California 94043 00032 * 00033 * from: @(#)pmap_rmt.h 1.2 88/02/08 SMI 00034 * @(#)pmap_rmt.h 2.1 88/07/29 4.0 RPCSRC 00035 */ 00036 00037 /* 00038 * Structures and XDR routines for parameters to and replies from 00039 * the portmapper remote-call-service. 00040 * 00041 * Copyright (C) 1986, Sun Microsystems, Inc. 00042 */ 00043 00044 #ifndef _RPC_PMAPRMT_H 00045 #define _RPC_PMAPRMT_H 00046 #include <sys/cdefs.h> 00047 00048 struct rmtcallargs { 00049 u_long prog, vers, proc, arglen; 00050 caddr_t args_ptr; 00051 xdrproc_t xdr_args; 00052 }; 00053 00054 struct rmtcallres { 00055 u_long *port_ptr; 00056 u_long resultslen; 00057 caddr_t results_ptr; 00058 xdrproc_t xdr_results; 00059 }; 00060 00061 __BEGIN_DECLS 00062 extern bool_t xdr_rmtcall_args __P((XDR *, struct rmtcallargs *)); 00063 extern bool_t xdr_rmtcallres __P((XDR *, struct rmtcallres *)); 00064 __END_DECLS 00065 00066 #endif /* !_RPC_PMAPRMT_H */