Linux: Use freezer compatibility macros in RX
[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 #include "h/param.h"
39 #ifndef AFS_LINUX22_ENV
40 #include "h/systm.h"
41 #endif
42 #include "h/time.h"
43 #ifdef AFS_SUN56_ENV
44 #include "h/vfs.h"              /* stops SUN56 socketvar.h warnings */
45 #include "h/stropts.h"          /* stops SUN56 socketvar.h warnings */
46 #include "h/stream.h"           /* stops SUN56 socketvar.h errors */
47 #include "h/disp.h"
48 #endif
49 #include "h/socket.h"
50 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
51 #include "h/socketvar.h"
52 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
53 #include "h/domain.h"
54 #if !defined(AFS_HPUX110_ENV)
55 #include "h/dir.h"
56 #endif
57 #include "h/buf.h"
58 #if !defined(AFS_HPUX110_ENV)
59 #include "h/mbuf.h"
60 #endif
61 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
62 #if defined(AFS_FBSD_ENV)
63 #include "h/dirent.h"
64 #include "h/socket.h"
65 #include "h/domain.h"
66 #include "h/bio.h"
67 #include "h/buf.h"
68 #include "h/mbuf.h"
69 #endif /* AFS_FBSD_ENV */
70 #if defined(AFS_NBSD40_ENV)
71 #include "h/buf.h"
72 #include "h/mbuf.h"
73 #endif
74 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
75 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
76 #ifdef AFS_SGI62_ENV
77 #include "h/hashing.h"
78 #endif
79 #ifdef AFS_FBSD_ENV
80 #include "h/sysctl.h"
81 #endif
82 #ifdef AFS_OBSD_ENV
83 #include "h/socket.h"
84 #include "h/domain.h"
85 #include "h/buf.h"
86 #include "net/if.h"
87 #include "h/signalvar.h"
88 #endif /* AFS_OBSD_ENV */
89 #include "netinet/in.h"
90 #ifdef AFS_LINUX22_ENV
91 #include "linux/route.h"
92 #else
93 #include "net/route.h"
94 #endif
95 #if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
96 #include "netinet/in_systm.h"
97 #endif
98 #include "netinet/ip.h"
99 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV)
100 #include "netinet/in_pcb.h"
101 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
102 #ifndef AFS_LINUX22_ENV
103 #if !defined(AFS_DARWIN_ENV)
104 #include "netinet/ip_var.h"
105 #endif
106 #include "netinet/ip_icmp.h"
107 #endif /* AFS_LINUX22_ENV */
108 #include "netinet/udp.h"
109 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
110 #include "netinet/udp_var.h"
111 #endif
112 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
113 #include "h/user.h"
114 #endif
115 #ifdef AFS_LINUX22_ENV
116 #include "h/sched.h"
117 #include "h/netdevice.h"
118 #include "linux/if.h"
119 #else
120 #if !defined(AFS_OBSD_ENV)
121 #include "h/proc.h"
122 #include "h/file.h"
123 #endif
124 #include "net/if.h"
125 #endif
126 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
127 #include "netinet/in_var.h"
128 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
129 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
130 #include "rpc/types.h"
131 #endif
132 #include "afs/afs_osi.h"
133 #include "rx_kmutex.h"
134 #include "afs/lock.h"
135 #include "rx/xdr.h"
136 #include "rx/rx.h"
137 #include "rx/rx_globals.h"
138 #include "afs/afs_stats.h"
139 #include "h/errno.h"
140 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
141 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
142 #include "stdarg.h"
143 #endif
144 #ifdef KERNEL
145 #include "afs/sysincludes.h"
146 #include "afsincludes.h"
147 #endif
148 #if defined(AFS_OBSD_ENV)
149 #include "afs/sysincludes.h"
150 #include "netinet/in_pcb.h"
151 #endif
152
153 #define        MAXRXPORTS  20
154 typedef unsigned short rxk_ports_t[MAXRXPORTS];
155 typedef char *rxk_portRocks_t[MAXRXPORTS];
156 extern rxk_ports_t rxk_ports;
157 extern rxk_portRocks_t rxk_portRocks;
158
159 #if defined(AFS_XBSD_ENV)
160 extern struct domain inetdomain;
161 #endif /* AFS_XBSD_ENV */
162
163 #if defined(AFS_SUN510_ENV)
164 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
165 #endif
166
167 #endif /* _RX_KCOMMON_H_ */
168
169 #endif