netbsd: rebase cm at NetBSD 4.0
[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 #if defined(AFS_FBSD50_ENV)
67 #include "h/bio.h"
68 #endif
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 #if defined(HAVE_LINUX_FREEZER_H)
120 #include "h/freezer.h"
121 #endif
122 #include "h/netdevice.h"
123 #include "linux/if.h"
124 #else
125 #if !defined(AFS_OBSD_ENV)
126 #include "h/proc.h"
127 #include "h/file.h"
128 #endif
129 #include "net/if.h"
130 #endif
131 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN_ENV)
132 #include "netinet/in_var.h"
133 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
134 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
135 #include "rpc/types.h"
136 #endif
137 #include "afs/afs_osi.h"
138 #include "rx_kmutex.h"
139 #include "afs/lock.h"
140 #include "rx/xdr.h"
141 #include "rx/rx.h"
142 #include "rx/rx_globals.h"
143 #include "afs/afs_stats.h"
144 #include "h/errno.h"
145 #if !(defined(AFS_SUN5_ENV) && defined(KERNEL))
146 /* if sys/systm.h includes varargs.h some versions of solaris have conflicts */
147 #include "stdarg.h"
148 #endif
149 #ifdef KERNEL
150 #include "afs/sysincludes.h"
151 #include "afsincludes.h"
152 #endif
153 #if defined(AFS_OBSD_ENV)
154 #include "afs/sysincludes.h"
155 #include "netinet/in_pcb.h"
156 #endif
157
158 #define        MAXRXPORTS  20
159 typedef unsigned short rxk_ports_t[MAXRXPORTS];
160 typedef char *rxk_portRocks_t[MAXRXPORTS];
161 extern rxk_ports_t rxk_ports;
162 extern rxk_portRocks_t rxk_portRocks;
163
164 #if defined(AFS_XBSD_ENV)
165 extern struct domain inetdomain;
166 #endif /* AFS_XBSD_ENV */
167
168 #if defined(AFS_SUN510_ENV)
169 extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
170 #endif
171
172 #endif /* _RX_KCOMMON_H_ */
173
174 #endif