Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-01 09:24:41

0001 /*
0002  * Copyright (c) 2009, Sun Microsystems, Inc.
0003  * All rights reserved.
0004  *
0005  * Redistribution and use in source and binary forms, with or without
0006  * modification, are permitted provided that the following conditions are met:
0007  * - Redistributions of source code must retain the above copyright notice,
0008  *   this list of conditions and the following disclaimer.
0009  * - Redistributions in binary form must reproduce the above copyright notice,
0010  *   this list of conditions and the following disclaimer in the documentation
0011  *   and/or other materials provided with the distribution.
0012  * - Neither the name of Sun Microsystems, Inc. nor the names of its
0013  *   contributors may be used to endorse or promote products derived
0014  *   from this software without specific prior written permission.
0015  *
0016  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0017  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0018  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0019  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
0020  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0021  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0022  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0023  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0024  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0025  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0026  * POSSIBILITY OF SUCH DAMAGE.
0027  */
0028 
0029 /*
0030  * rpc.h, Just includes the billions of rpc header files necessary to
0031  * do remote procedure calling.
0032  *
0033  * Copyright (C) 1984, Sun Microsystems, Inc.
0034  */
0035 #ifndef _TIRPC_RPC_H
0036 #define _TIRPC_RPC_H
0037 
0038 #include <rpc/types.h>      /* some typedefs */
0039 #include <sys/socket.h>
0040 #include <netinet/in.h>
0041 
0042 /* external data representation interfaces */
0043 #include <rpc/xdr.h>        /* generic (de)serializer */
0044 
0045 /* Client side only authentication */
0046 #include <rpc/auth.h>       /* generic authenticator (client side) */
0047 
0048 /* Client side (mostly) remote procedure call */
0049 #include <rpc/clnt.h>       /* generic rpc stuff */
0050 
0051 /* semi-private protocol headers */
0052 #include <rpc/rpc_msg.h>    /* protocol for rpc messages */
0053 #include <rpc/auth_unix.h>  /* protocol for unix style cred */
0054 
0055 /*
0056  *  Uncomment-out the next line if you are building the rpc library with
0057  *  DES Authentication (see the README file in the secure_rpc/ directory).
0058  */
0059 #include <rpc/auth_des.h>   /* protocol for des style cred */
0060 
0061 /* Server side only remote procedure callee */
0062 #include <rpc/svc_auth.h>   /* service side authenticator */
0063 #include <rpc/svc.h>        /* service manager and multiplexer */
0064 
0065 /* Portmapper client, server, and protocol headers */
0066 #include <rpc/pmap_clnt.h>
0067 #include <rpc/pmap_prot.h>
0068 
0069 #ifndef _KERNEL
0070 #include <rpc/rpcb_clnt.h>  /* rpcbind interface functions */
0071 #include <rpc/svc_mt.h>
0072 #endif
0073 #include <rpc/rpcent.h>
0074 
0075 #ifndef UDPMSGSIZE
0076 #define UDPMSGSIZE 8800
0077 #endif
0078 
0079 #ifdef __cplusplus
0080 extern "C" {
0081 #endif
0082 extern int get_myaddress(struct sockaddr_in *);
0083 extern int bindresvport(int, struct sockaddr_in *);
0084 extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]),
0085     xdrproc_t, xdrproc_t);
0086 extern int callrpc(const char *, int, int, int, xdrproc_t, void *,
0087     xdrproc_t , void *);
0088 extern int getrpcport(char *, int, int, int);
0089 
0090 char *taddr2uaddr(const struct netconfig *, const struct netbuf *);
0091 struct netbuf *uaddr2taddr(const struct netconfig *, const char *);
0092 
0093 struct sockaddr;
0094 extern int bindresvport_sa(int, struct sockaddr *);
0095 #ifdef __cplusplus
0096 }
0097 #endif
0098 
0099 /*
0100  * The following are not exported interfaces, they are for internal library
0101  * and rpcbind use only. Do not use, they may change without notice.
0102  */
0103 #ifdef __cplusplus
0104 extern "C" {
0105 #endif
0106 int __rpc_nconf2fd(const struct netconfig *);
0107 int __rpc_nconf2fd_flags(const struct netconfig *, int);
0108 int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *);
0109 int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *);
0110 u_int __rpc_get_t_size(int, int, int);
0111 #ifdef __cplusplus
0112 }
0113 #endif
0114 
0115 #endif /* !_RPC_RPC_H */