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