OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 /* 00011 * rx_kcommon.h - Common kernel RX header for all system types. 00012 */ 00013 00014 #ifdef UKERNEL 00015 #include <UKERNEL/rx_kcommon.h> 00016 #else 00017 00018 #ifndef _RX_KCOMMON_H_ 00019 #define _RX_KCOMMON_H_ 00020 00021 #ifdef AFS_LINUX22_ENV 00022 #ifndef _LINUX_CODA_FS_I 00023 #define _LINUX_CODA_FS_I 1 00024 #define _CODA_HEADER_ 1 00025 struct coda_inode_info { 00026 }; 00027 #endif 00028 #endif 00029 #ifdef AFS_DARWIN_ENV 00030 #ifndef _MACH_ETAP_H_ 00031 #define _MACH_ETAP_H_ 00032 typedef unsigned short etap_event_t; 00033 #endif 00034 #endif 00035 00036 00037 #include "h/types.h" 00038 #include "h/param.h" 00039 #ifndef AFS_LINUX22_ENV 00040 #include "h/systm.h" 00041 #endif 00042 #include "h/time.h" 00043 #ifdef AFS_SUN5_ENV 00044 #include "h/vfs.h" /* stops SUN5 socketvar.h warnings */ 00045 #include "h/stropts.h" /* stops SUN5 socketvar.h warnings */ 00046 #include "h/stream.h" /* stops SUN5 socketvar.h errors */ 00047 #include "h/disp.h" 00048 #endif 00049 #include "h/socket.h" 00050 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) 00051 #include "h/socketvar.h" 00052 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) 00053 #include "h/domain.h" 00054 #if !defined(AFS_HPUX110_ENV) 00055 #include "h/dir.h" 00056 #endif 00057 #include "h/buf.h" 00058 #if !defined(AFS_HPUX110_ENV) 00059 #include "h/mbuf.h" 00060 #endif 00061 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */ 00062 #if defined(AFS_FBSD_ENV) 00063 #include "h/dirent.h" 00064 #include "h/socket.h" 00065 #include "h/domain.h" 00066 #include "h/bio.h" 00067 #include "h/buf.h" 00068 #include "h/mbuf.h" 00069 #endif /* AFS_FBSD_ENV */ 00070 #if defined(AFS_NBSD40_ENV) 00071 #include "h/buf.h" 00072 #include "h/mbuf.h" 00073 #endif 00074 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */ 00075 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */ 00076 #ifdef AFS_SGI62_ENV 00077 #include "h/hashing.h" 00078 #endif 00079 #ifdef AFS_FBSD_ENV 00080 #include "h/sysctl.h" 00081 #endif 00082 #ifdef AFS_OBSD_ENV 00083 #include "h/socket.h" 00084 #include "h/domain.h" 00085 #include "h/buf.h" 00086 #include "net/if.h" 00087 #include "h/signalvar.h" 00088 #endif /* AFS_OBSD_ENV */ 00089 #include "netinet/in.h" 00090 #ifdef AFS_LINUX22_ENV 00091 #include "linux/route.h" 00092 #else 00093 #include "net/route.h" 00094 #endif 00095 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV) 00096 #include "netinet/in_systm.h" 00097 #endif 00098 #include "netinet/ip.h" 00099 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV) 00100 #include "netinet/in_pcb.h" 00101 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */ 00102 #ifndef AFS_LINUX22_ENV 00103 #if !defined(AFS_DARWIN_ENV) 00104 #include "netinet/ip_var.h" 00105 #endif 00106 #include "netinet/ip_icmp.h" 00107 #endif /* AFS_LINUX22_ENV */ 00108 #include "netinet/udp.h" 00109 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) 00110 #include "netinet/udp_var.h" 00111 #endif 00112 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV)) 00113 #include "h/user.h" 00114 #endif 00115 #ifdef AFS_LINUX22_ENV 00116 #include "h/sched.h" 00117 #include "h/netdevice.h" 00118 #include "linux/if.h" 00119 #else 00120 #if !defined(AFS_OBSD_ENV) 00121 #include "h/proc.h" 00122 #include "h/file.h" 00123 #endif 00124 #include "net/if.h" 00125 #endif 00126 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) 00127 #include "netinet/in_var.h" 00128 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */ 00129 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV) 00130 #include "rpc/types.h" 00131 #endif 00132 #include "afs/afs_osi.h" 00133 #include "rx_kmutex.h" 00134 #include "afs/lock.h" 00135 #include "rx/xdr.h" 00136 #include "rx/rx.h" 00137 #include "rx/rx_globals.h" 00138 #include "afs/afs_stats.h" 00139 #include "h/errno.h" 00140 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL)) 00141 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */ 00142 #include "stdarg.h" 00143 #endif 00144 #ifdef KERNEL 00145 #include "afs/sysincludes.h" 00146 #include "afsincludes.h" 00147 #endif 00148 #if defined(AFS_OBSD_ENV) 00149 #include "afs/sysincludes.h" 00150 #include "netinet/in_pcb.h" 00151 #endif 00152 00153 #define MAXRXPORTS 20 00154 typedef unsigned short rxk_ports_t[MAXRXPORTS]; 00155 typedef char *rxk_portRocks_t[MAXRXPORTS]; 00156 extern rxk_ports_t rxk_ports; 00157 extern rxk_portRocks_t rxk_portRocks; 00158 00159 #if defined(AFS_XBSD_ENV) 00160 extern struct domain inetdomain; 00161 #endif /* AFS_XBSD_ENV */ 00162 00163 #if defined(AFS_SUN510_ENV) 00164 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE]; 00165 #endif 00166 00167 #endif /* _RX_KCOMMON_H_ */ 00168 00169 #endif