Back to index

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