no-copy-libafs-builds-20021015
[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_DARWIN_ENV
22 #ifndef _MACH_ETAP_H_
23 #define _MACH_ETAP_H_
24 typedef unsigned short                  etap_event_t;
25 #endif
26 #endif  
27 #include "h/types.h"
28 #include "h/param.h"
29 #ifndef AFS_LINUX22_ENV
30 #include "h/systm.h"
31 #endif
32 #include "h/time.h"
33 #ifdef AFS_SUN56_ENV
34 #include "h/vfs.h"              /* stops SUN56 socketvar.h warnings */
35 #include "h/stropts.h"  /* stops SUN56 socketvar.h warnings */
36 #include "h/stream.h"   /* stops SUN56 socketvar.h errors */
37 #include "h/disp.h"
38 #endif
39 #include "h/socket.h"
40 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
41 #include "h/socketvar.h"
42 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
43 #include "h/domain.h"
44 #include "h/dir.h"
45 #include "h/buf.h"
46 #include "h/mbuf.h"
47 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
48 #if defined(AFS_FBSD_ENV)
49 #include "h/dirent.h"
50 #include "h/socket.h"
51 #include "h/domain.h"
52 #include "h/buf.h"
53 #include "h/mbuf.h"
54 #endif /* AFS_FBSD_ENV */
55 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
56 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
57 #ifdef AFS_SGI62_ENV
58 #include "h/hashing.h"
59 #endif
60 #ifdef AFS_FBSD_ENV
61 #include "h/sysctl.h"
62 #endif
63 #ifdef AFS_OBSD_ENV
64 #include "h/socket.h"
65 #include "h/domain.h"
66 #include "h/buf.h"
67 #include "net/if.h"
68 #include "h/signalvar.h"
69 #endif /* AFS_OBSD_ENV */
70 #include "netinet/in.h"
71 #include "net/route.h"
72 #include "netinet/in_systm.h"
73 #include "netinet/ip.h"
74 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV) && !defined(AFS_OBSD_ENV)
75 #include "netinet/in_pcb.h"
76 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
77 #ifndef AFS_LINUX22_ENV
78 #if !defined(AFS_DARWIN60_ENV)
79 #include "netinet/ip_var.h"
80 #endif
81 #include "netinet/ip_icmp.h"
82 #endif /* AFS_LINUX22_ENV */
83 #include "netinet/udp.h"
84 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
85 #include "netinet/udp_var.h"
86 #endif
87 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
88 #include "h/user.h"
89 #endif
90 #ifdef AFS_LINUX22_ENV
91 #define _LINUX_CODA_FS_I
92 struct coda_inode_info {};
93 #include "h/sched.h"
94 #include "h/netdevice.h"
95 #else
96 #if !defined(AFS_OBSD_ENV)
97 #include "h/proc.h"
98 #include "h/file.h"
99 #endif
100 #endif
101 #include "net/if.h"
102 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
103 #include "netinet/in_var.h"
104 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
105 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV) 
106 #include "rpc/types.h"
107 #endif
108 #include "afs/afs_osi.h"
109 #include "rx_kmutex.h"
110 #include "afs/lock.h"
111 #include "rx/xdr.h"
112 #include "rx/rx.h"
113 #include "rx/rx_globals.h"
114 #include "afs/longc_procs.h"
115 #include "afs/afs_stats.h"
116 #include "h/errno.h"
117 #ifdef KERNEL
118 #include "afs/sysincludes.h"
119 #include "afsincludes.h"
120 #endif
121 #if defined(AFS_OBSD_ENV)
122 #include "../netinet/in_pcb.h"
123 #endif
124
125 #define        MAXRXPORTS  20
126 typedef unsigned short rxk_ports_t[MAXRXPORTS];
127 typedef char *rxk_portRocks_t[MAXRXPORTS];
128 extern rxk_ports_t rxk_ports;
129 extern rxk_portRocks_t rxk_portRocks;
130
131 #if defined(AFS_XBSD_ENV)
132 extern struct domain inetdomain;
133 #endif /* AFS_XBSD_ENV */
134
135 #endif /* _RX_KCOMMON_H_ */
136
137 #endif