nfs-ganesha 1.4
|
00001 /* 00002 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 00003 * unrestricted use provided that this legend is included on all tape 00004 * media and as a part of the software program in whole or part. Users 00005 * may copy or modify Sun RPC without charge, but are not authorized 00006 * to license or distribute it to anyone else except as part of a product or 00007 * program developed by the user. 00008 * 00009 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 00010 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 00011 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 00012 * 00013 * Sun RPC is provided with no support and without any obligation on the 00014 * part of Sun Microsystems, Inc. to assist in its use, correction, 00015 * modification or enhancement. 00016 * 00017 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 00018 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 00019 * OR ANY PART THEREOF. 00020 * 00021 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 00022 * or profits or other special, indirect and consequential damages, even if 00023 * Sun has been advised of the possibility of such damages. 00024 * 00025 * Sun Microsystems, Inc. 00026 * 2550 Garcia Avenue 00027 * Mountain View, California 94043 00028 * 00029 */ 00030 /* 00031 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 00032 */ 00033 00034 /* 00035 * rpc_com.h, Common definitions for both the server and client side. 00036 * All for the topmost layer of rpc 00037 * 00038 * In Sun's tirpc distribution, this was installed as <rpc/rpc_com.h>, 00039 * but as it contains only non-exported interfaces, it was moved here. 00040 */ 00041 00042 #ifndef _TIRPC_RPCCOM_H 00043 #define _TIRPC_RPCCOM_H 00044 00045 #include <sys/cdefs.h> 00046 00047 /* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */ 00048 00049 /* 00050 * The max size of the transport, if the size cannot be determined 00051 * by other means. 00052 */ 00053 #define RPC_MAXDATASIZE 9000 00054 #define RPC_MAXADDRSIZE 1024 00055 00056 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 00057 (u_int32_t)(now)->tv_usec) 00058 __BEGIN_DECLS extern u_int __rpc_get_a_size(int); 00059 extern int __rpc_dtbsize(void); 00060 extern struct netconfig *__rpcgettp(int); 00061 extern int __rpc_get_default_domain(char **); 00062 00063 char *__rpc_taddr2uaddr_af(int, const struct netbuf *); 00064 struct netbuf *__rpc_uaddr2taddr_af(int, const char *); 00065 int __rpc_fixup_addr(struct netbuf *, const struct netbuf *); 00066 int __rpc_sockinfo2netid(struct __rpc_sockinfo *, const char **); 00067 int __rpc_seman2socktype(int); 00068 int __rpc_socktype2seman(int); 00069 void *rpc_nullproc(CLIENT *); 00070 int __rpc_sockisbound(int); 00071 00072 struct netbuf *__rpcb_findaddr(rpcprog_t, rpcvers_t, const struct netconfig *, 00073 const char *, CLIENT **); 00074 struct netbuf *__rpcb_findaddr_timed(rpcprog_t, rpcvers_t, 00075 const struct netconfig *, const char *host, 00076 CLIENT ** clpp, struct timeval *tp); 00077 00078 bool_t __rpc_control(int, void *); 00079 00080 char *_get_next_token(char *, int); 00081 00082 bool_t Svc_clean_idle(int, bool_t); 00083 bool_t __xdrrec_setnonblock(XDR *, int); 00084 bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t); 00085 void __Xprt_unregister_unlocked(SVCXPRT *); 00086 00087 SVCXPRT **__svc_xports; 00088 int __svc_maxrec; 00089 00090 __END_DECLS 00091 #endif /* _TIRPC_RPCCOM_H */