The C and C++ Include Header Files
/usr/include/ntirpc/rpc/rpc.h
$ cat -n /usr/include/ntirpc/rpc/rpc.h 1 /* 2 * Copyright (c) 2009, Sun Microsystems, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * - Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. 9 * - Redistributions in binary form must reproduce the above copyright notice, 10 * this list of conditions and the following disclaimer in the documentation 11 * and/or other materials provided with the distribution. 12 * - Neither the name of Sun Microsystems, Inc. nor the names of its 13 * contributors may be used to endorse or promote products derived 14 * from this software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 /* 30 * rpc.h, Just includes the billions of rpc header files necessary to 31 * do remote procedure calling. 32 * 33 * Copyright (C) 1984, Sun Microsystems, Inc. 34 */ 35 #ifndef _TIRPC_RPC_H 36 #define _TIRPC_RPC_H 37 38 #include
/* some typedefs */ 39 #if defined(_WIN32) 40 #include
41 #else 42 #include
43 #include
44 #endif 45 46 /* external data representation interfaces */ 47 #include
/* generic (de)serializer */ 48 49 /* Client side only authentication */ 50 #include
/* generic authenticator (client side) */ 51 52 /* Client side (mostly) remote procedure call */ 53 #include
/* generic rpc stuff */ 54 55 /* semi-private protocol headers */ 56 #include
/* protocol for rpc messages */ 57 #include
/* protocol for unix style cred */ 58 59 #ifdef HAVE_RPCSEC_GSS 60 #include
/* RPCSEC_GSS */ 61 #endif 62 63 /* Server side only remote procedure callee */ 64 #include
/* service manager and multiplexer */ 65 66 #ifndef _KERNEL 67 #include
/* rpcbind interface functions */ 68 #endif 69 #include
70 71 #ifndef UDPMSGSIZE 72 #define UDPMSGSIZE 8800 73 #endif 74 75 __BEGIN_DECLS 76 extern int bindresvport(int, struct sockaddr_in *); 77 78 char *taddr2uaddr(const struct netconfig *, const struct netbuf *); 79 struct netbuf *uaddr2taddr(const struct netconfig *, const char *); 80 81 struct sockaddr; 82 extern int bindresvport_sa(int, struct sockaddr *); 83 84 extern bool tirpc_control(const u_int, void *); 85 extern void *__mem_alloc(size_t); 86 extern void __mem_free(void *, size_t); 87 88 __END_DECLS 89 /* 90 * The following are not exported interfaces, they are for internal library 91 * and rpcbind use only. Do not use, they may change without notice. 92 */ 93 __BEGIN_DECLS 94 int __rpc_nconf2fd(const struct netconfig *); 95 int __rpc_nconf2fd_flags(const struct netconfig *, int); 96 int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *); 97 int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *); 98 u_int __rpc_get_t_size(int, int, int); 99 __END_DECLS 100 #endif /* !_RPC_RPC_H */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™