92752dbab46e9caa55de8de3b1d9dbb399615c54
[openafs.git] / src / rx / rx_kcommon.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * rx_kcommon.h - Common kernel RX header for all system types.
12  */
13
14 #ifdef UKERNEL
15 #include <UKERNEL/rx_kcommon.h>
16 #else
17
18 #ifndef _RX_KCOMMON_H_
19 #define _RX_KCOMMON_H_
20
21 #ifdef AFS_LINUX22_ENV
22 #ifndef _LINUX_CODA_FS_I
23 #define _LINUX_CODA_FS_I 1
24 #define _CODA_HEADER_ 1
25 struct coda_inode_info {
26 };
27 #endif
28 #endif
29 #ifdef AFS_DARWIN_ENV
30 #ifndef _MACH_ETAP_H_
31 #define _MACH_ETAP_H_
32 typedef unsigned short etap_event_t;
33 #endif
34 #endif
35
36
37 #include "h/types.h"
38 #if !defined(AFS_LINUX26_ENV)
39 #include "h/param.h"
40 #endif
41 #ifndef AFS_LINUX22_ENV
42 #include "h/systm.h"
43 #endif
44 #include "h/time.h"
45 #ifdef AFS_SUN5_ENV
46 #include "h/vfs.h"              /* stops SUN5 socketvar.h warnings */
47 #include "h/stropts.h"          /* stops SUN5 socketvar.h warnings */
48 #include "h/stream.h"           /* stops SUN5 socketvar.h errors */
49 #include "h/disp.h"
50 #endif
51 #include "h/socket.h"
52 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
53 #include "h/socketvar.h"
54 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
55 #include "h/domain.h"
56 #if !defined(AFS_HPUX110_ENV)
57 #include "h/dir.h"
58 #endif
59 #include "h/buf.h"
60 #if !defined(AFS_HPUX110_ENV)
61 #include "h/mbuf.h"
62 #endif
63 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
64 #if defined(AFS_FBSD_ENV)
65 #include "h/dirent.h"
66 #include "h/socket.h"
67 #include "h/domain.h"
68 #include "h/bio.h"
69 #include "h/buf.h"
70 #include "h/mbuf.h"
71 #endif /* AFS_FBSD_ENV */
72 #if defined(AFS_NBSD40_ENV)
73 #include "h/buf.h"
74 #include "h/mbuf.h"
75 #endif
76 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
77 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
78 #ifdef AFS_SGI62_ENV
79 #include "h/hashing.h"
80 #endif
81 #ifdef AFS_FBSD_ENV
82 #include "h/sysctl.h"
83 #endif
84 #ifdef AFS_OBSD_ENV
85 #include "h/socket.h"
86 #include "h/domain.h"
87 #include "h/buf.h"
88 #include "net/if.h"
89 #include "h/signalvar.h"
90 #endif /* AFS_OBSD_ENV */
91 #include "netinet/in.h"
92 #ifdef AFS_LINUX22_ENV
93 #include "linux/route.h"
94 #else
95 #include "net/route.h"
96 #endif
97 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
98 #include "netinet/in_systm.h"
99 #endif
100 #include "netinet/ip.h"
101 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV)
102 #include "netinet/in_pcb.h"
103 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
104 #ifndef AFS_LINUX22_ENV
105 #if !defined(AFS_DARWIN_ENV)
106 #include "netinet/ip_var.h"
107 #endif
108 #include "netinet/ip_icmp.h"
109 #endif /* AFS_LINUX22_ENV */
110 #include "netinet/udp.h"
111 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
112 #include "netinet/udp_var.h"
113 #endif
114 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
115 #include "h/user.h"
116 #endif
117 #ifdef AFS_LINUX22_ENV
118 #include "h/sched.h"
119 #include "h/netdevice.h"
120 #include "linux/if.h"
121 #else
122 #if !defined(AFS_OBSD_ENV)
123 #include "h/proc.h"
124 #include "h/file.h"
125 #endif
126 #include "net/if.h"
127 # ifdef AFS_FBSD_ENV
128 #  include <sys/socket.h>
129 #  include <net/if.h>
130 #  include <net/if_var.h>
131 # endif
132 #endif
133 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
134 #include "netinet/in_var.h"
135 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
136 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
137 #include "rpc/types.h"
138 #endif
139 #include "afs/afs_osi.h"
140 #include "rx_kmutex.h"
141 #include "afs/lock.h"
142 #include "rx/xdr.h"
143 #include "rx/rx.h"
144 #include "rx/rx_globals.h"
145 #include "afs/afs_stats.h"
146 #include "h/errno.h"
147 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
148 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
149 # if defined(AFS_FBSD_ENV)
150 #  include "machine/stdarg.h"
151 # else
152 #  include "stdarg.h"
153 # endif
154 #endif
155 #ifdef KERNEL
156 #include "afs/sysincludes.h"
157 #include "afsincludes.h"
158 #endif
159 #if defined(AFS_OBSD_ENV)
160 #include "afs/sysincludes.h"
161 #include "netinet/in_pcb.h"
162 #endif
163
164 #define        MAXRXPORTS  20
165 typedef unsigned short rxk_ports_t[MAXRXPORTS];
166 typedef char *rxk_portRocks_t[MAXRXPORTS];
167 extern rxk_ports_t rxk_ports;
168 extern rxk_portRocks_t rxk_portRocks;
169
170 #if defined(AFS_XBSD_ENV)
171 extern struct domain inetdomain;
172 #endif /* AFS_XBSD_ENV */
173
174 #if defined(AFS_SUN510_ENV)
175 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
176 #endif
177
178 #endif /* _RX_KCOMMON_H_ */
179
180 #endif