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