Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/tirpc/rpc
File: rpc.h
/*
[0] Fix | Delete
* Copyright (c) 2009, Sun Microsystems, Inc.
[1] Fix | Delete
* All rights reserved.
[2] Fix | Delete
*
[3] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[4] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[5] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[6] Fix | Delete
* this list of conditions and the following disclaimer.
[7] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[8] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[9] Fix | Delete
* and/or other materials provided with the distribution.
[10] Fix | Delete
* - Neither the name of Sun Microsystems, Inc. nor the names of its
[11] Fix | Delete
* contributors may be used to endorse or promote products derived
[12] Fix | Delete
* from this software without specific prior written permission.
[13] Fix | Delete
*
[14] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[15] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[16] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[17] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
[18] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[19] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[20] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[21] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[22] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[23] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[24] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[25] Fix | Delete
*/
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* rpc.h, Just includes the billions of rpc header files necessary to
[29] Fix | Delete
* do remote procedure calling.
[30] Fix | Delete
*
[31] Fix | Delete
* Copyright (C) 1984, Sun Microsystems, Inc.
[32] Fix | Delete
*/
[33] Fix | Delete
#ifndef _TIRPC_RPC_H
[34] Fix | Delete
#define _TIRPC_RPC_H
[35] Fix | Delete
[36] Fix | Delete
#include <rpc/types.h> /* some typedefs */
[37] Fix | Delete
#include <sys/socket.h>
[38] Fix | Delete
#include <netinet/in.h>
[39] Fix | Delete
[40] Fix | Delete
/* external data representation interfaces */
[41] Fix | Delete
#include <rpc/xdr.h> /* generic (de)serializer */
[42] Fix | Delete
[43] Fix | Delete
/* Client side only authentication */
[44] Fix | Delete
#include <rpc/auth.h> /* generic authenticator (client side) */
[45] Fix | Delete
[46] Fix | Delete
/* Client side (mostly) remote procedure call */
[47] Fix | Delete
#include <rpc/clnt.h> /* generic rpc stuff */
[48] Fix | Delete
[49] Fix | Delete
/* semi-private protocol headers */
[50] Fix | Delete
#include <rpc/rpc_msg.h> /* protocol for rpc messages */
[51] Fix | Delete
#include <rpc/auth_unix.h> /* protocol for unix style cred */
[52] Fix | Delete
[53] Fix | Delete
/*
[54] Fix | Delete
* Uncomment-out the next line if you are building the rpc library with
[55] Fix | Delete
* DES Authentication (see the README file in the secure_rpc/ directory).
[56] Fix | Delete
*/
[57] Fix | Delete
#include <rpc/auth_des.h> /* protocol for des style cred */
[58] Fix | Delete
[59] Fix | Delete
/* Server side only remote procedure callee */
[60] Fix | Delete
#include <rpc/svc_auth.h> /* service side authenticator */
[61] Fix | Delete
#include <rpc/svc.h> /* service manager and multiplexer */
[62] Fix | Delete
[63] Fix | Delete
/* Portmapper client, server, and protocol headers */
[64] Fix | Delete
#include <rpc/pmap_clnt.h>
[65] Fix | Delete
#include <rpc/pmap_prot.h>
[66] Fix | Delete
[67] Fix | Delete
#ifndef _KERNEL
[68] Fix | Delete
#include <rpc/rpcb_clnt.h> /* rpcbind interface functions */
[69] Fix | Delete
#include <rpc/svc_mt.h>
[70] Fix | Delete
#endif
[71] Fix | Delete
#include <rpc/rpcent.h>
[72] Fix | Delete
[73] Fix | Delete
#ifndef UDPMSGSIZE
[74] Fix | Delete
#define UDPMSGSIZE 8800
[75] Fix | Delete
#endif
[76] Fix | Delete
[77] Fix | Delete
#ifdef __cplusplus
[78] Fix | Delete
extern "C" {
[79] Fix | Delete
#endif
[80] Fix | Delete
extern int get_myaddress(struct sockaddr_in *);
[81] Fix | Delete
extern int bindresvport(int, struct sockaddr_in *);
[82] Fix | Delete
extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]),
[83] Fix | Delete
xdrproc_t, xdrproc_t);
[84] Fix | Delete
extern int callrpc(const char *, int, int, int, xdrproc_t, void *,
[85] Fix | Delete
xdrproc_t , void *);
[86] Fix | Delete
extern int getrpcport(char *, int, int, int);
[87] Fix | Delete
[88] Fix | Delete
char *taddr2uaddr(const struct netconfig *, const struct netbuf *);
[89] Fix | Delete
struct netbuf *uaddr2taddr(const struct netconfig *, const char *);
[90] Fix | Delete
[91] Fix | Delete
struct sockaddr;
[92] Fix | Delete
extern int bindresvport_sa(int, struct sockaddr *);
[93] Fix | Delete
#ifdef __cplusplus
[94] Fix | Delete
}
[95] Fix | Delete
#endif
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
* The following are not exported interfaces, they are for internal library
[99] Fix | Delete
* and rpcbind use only. Do not use, they may change without notice.
[100] Fix | Delete
*/
[101] Fix | Delete
#ifdef __cplusplus
[102] Fix | Delete
extern "C" {
[103] Fix | Delete
#endif
[104] Fix | Delete
int __rpc_nconf2fd(const struct netconfig *);
[105] Fix | Delete
int __rpc_nconf2fd_flags(const struct netconfig *, int);
[106] Fix | Delete
int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *);
[107] Fix | Delete
int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *);
[108] Fix | Delete
u_int __rpc_get_t_size(int, int, int);
[109] Fix | Delete
#ifdef __cplusplus
[110] Fix | Delete
}
[111] Fix | Delete
#endif
[112] Fix | Delete
[113] Fix | Delete
#endif /* !_RPC_RPC_H */
[114] Fix | Delete
[115] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function