Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / config / param.x86_darwin_120.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 #define AFS_ENV 1
8 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
9 #define AFS_64BIT_CLIENT 1
10 #define AFS_64BIT_IOPS_ENV 1
11 #if defined(__ppc__)
12 #define AFS_PPC_ENV 1
13 #elif defined(__i386__) || defined(__amd64__)
14 #define AFS_X86_ENV 1
15 #else
16 #error Unsupported architecture
17 #endif
18 #ifdef __amd64__
19 #define AFS_64BITUSERPOINTER_ENV 1
20 #endif
21 #define AFS_64BIT_SIZEOF 1 /* seriously? */
22 #include <afs/afs_sysnames.h>
23
24 #define AFS_DARWIN_ENV
25 #define AFS_DARWIN70_ENV
26 #define AFS_DARWIN80_ENV
27 #define AFS_DARWIN90_ENV
28 #define AFS_DARWIN100_ENV
29 #define AFS_DARWIN110_ENV
30 #define AFS_DARWIN120_ENV
31 #undef AFS_NONFSTRANS
32 #define AFS_NONFSTRANS
33 #define AFS_SYSCALL 230
34 #define AFS_NAMEI_ENV 1
35 #define DARWIN_REFBASE 3
36 #define AFS_WARNUSER_MARINER_ENV 1
37 #define AFS_CACHE_VNODE_PATH
38 #define AFS_NEW_BKG 1
39 #define NEED_IOCTL32
40
41 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
42 #define AFS_MOUNT_AFS "afs"
43
44 /* Machine / Operating system information */
45 #if defined(__ppc__)
46 #define sys_ppc_darwin_12 1
47 #define sys_ppc_darwin_13 1
48 #define sys_ppc_darwin_14 1
49 #define sys_ppc_darwin_60 1
50 #define sys_ppc_darwin_70 1
51 #define sys_ppc_darwin_80 1
52 #define sys_ppc_darwin_90 1
53 #define sys_ppc_darwin_100 1
54 #define SYS_NAME "ppc_darwin_100"
55 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
56 #define AFSBIG_ENDIAN 1
57 #elif defined(__ppc64__)
58 #define sys_ppc_darwin_12 1
59 #define sys_ppc_darwin_13 1
60 #define sys_ppc_darwin_14 1
61 #define sys_ppc_darwin_60 1
62 #define sys_ppc_darwin_70 1
63 #define sys_ppc_darwin_80 1
64 #define sys_ppc_darwin_90 1
65 #define sys_ppc_darwin_100 1
66 #define sys_ppc64_darwin_100 1
67 #define SYS_NAME "ppc64_darwin_100"
68 #define SYS_NAME_ID SYS_NAME_ID_ppc64_darwin_100
69 #define AFSBIG_ENDIAN 1
70 #elif defined(__i386__)
71 #define sys_x86_darwin_12 1
72 #define sys_x86_darwin_13 1
73 #define sys_x86_darwin_14 1
74 #define sys_x86_darwin_60 1
75 #define sys_x86_darwin_70 1
76 #define sys_x86_darwin_80 1
77 #define sys_x86_darwin_90 1
78 #define sys_x86_darwin_100 1
79 #define sys_x86_darwin_110 1
80 #define sys_x86_darwin_120 1
81 #define SYS_NAME "x86_darwin_120"
82 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_120
83 #define AFSLITTLE_ENDIAN 1
84 #elif defined(__amd64__)
85 #define sys_x86_darwin_12 1
86 #define sys_x86_darwin_13 1
87 #define sys_x86_darwin_14 1
88 #define sys_x86_darwin_60 1
89 #define sys_x86_darwin_70 1
90 #define sys_x86_darwin_80 1
91 #define sys_x86_darwin_90 1
92 #define sys_x86_darwin_100 1
93 #define sys_amd64_darwin_100 1
94 #define sys_amd64_darwin_110 1
95 #define sys_amd64_darwin_120 1
96 #define SYS_NAME "amd64_darwin_120"
97 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_120
98 #define AFSLITTLE_ENDIAN 1
99 #else
100 #error Unsupported architecture
101 #endif
102 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
103
104 #define AFS_GCPAGS 0
105 #define RXK_UPCALL_ENV 1
106 #define RXK_TIMEDSLEEP_ENV 1
107
108 #ifdef KERNEL
109 #undef MACRO_BEGIN
110 #undef MACRO_END
111 #include <kern/macro_help.h>
112 #define AFS_GLOBAL_SUNLOCK 1
113 #define AFS_VFS34 1 /* What is VFS34??? */
114 #define afsio_iov uio_iov
115 #define afsio_iovcnt uio_iovcnt
116 #define afsio_offset uio_offset
117 #define afsio_seg uio_segflg
118 #define afsio_resid uio_resid
119 #define AFS_UIOSYS UIO_SYSSPACE
120 #define AFS_UIOUSER UIO_USERSPACE
121 #define AFS_CLBYTES CLBYTES
122 #define osi_GetTime(x) microtime(x)
123 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
124 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
125 #define v_count v_usecount
126 #define v_vfsp v_mount
127 #define vfs_bsize mnt_stat.f_bsize
128 #define vfs_fsid mnt_stat.f_fsid
129 #define va_nodeid va_fileid
130 #define vfs_vnodecovered mnt_vnodecovered
131 #define direct dirent
132
133 #define BIND_8_COMPAT
134
135 #endif
136 #endif /* AFS_PARAM_H */
137
138 #else /* !defined(UKERNEL) */
139
140 /* This section for user space compiles only */
141
142 #ifndef AFS_PARAM_H
143 #define AFS_PARAM_H
144
145 #define AFS_ENV 1
146 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
147 #define AFS_64BIT_CLIENT 1
148 #if defined(__ppc__)
149 #define AFS_PPC_ENV 1
150 #elif defined(__i386__) || defined(__amd64__)
151 #define AFS_X86_ENV 1
152 #else
153 #error Unsupported architecture
154 #endif
155 #ifdef __amd64__
156 #define AFS_64BITUSERPOINTER_ENV 1
157 #endif
158
159 #include <afs/afs_sysnames.h>
160 #define AFS_USERSPACE_ENV
161 #define AFS_USR_DARWIN_ENV
162 #define AFS_USR_DARWIN70_ENV
163 #define AFS_USR_DARWIN80_ENV
164 #define AFS_USR_DARWIN90_ENV
165 #define AFS_USR_DARWIN100_ENV
166 #define AFS_USR_DARWIN110_ENV
167 #define AFS_USR_DARWIN120_ENV
168 #undef AFS_NONFSTRANS
169 #define AFS_NONFSTRANS
170 #define AFS_SYSCALL 230
171 #define DARWIN_REFBASE 0
172 #define AFS_WARNUSER_MARINER_ENV 1
173
174 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
175 #define AFS_MOUNT_AFS "afs"
176
177 /* Machine / Operating system information */
178 #if defined(__ppc__)
179 #define sys_ppc_darwin_12 1
180 #define sys_ppc_darwin_13 1
181 #define sys_ppc_darwin_14 1
182 #define sys_ppc_darwin_60 1
183 #define sys_ppc_darwin_70 1
184 #define sys_ppc_darwin_80 1
185 #define sys_ppc_darwin_90 1
186 #define sys_ppc_darwin_100 1
187 #define SYS_NAME "ppc_darwin_100"
188 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
189 #define AFSBIG_ENDIAN 1
190 #elif defined(__i386__)
191 #define sys_x86_darwin_12 1
192 #define sys_x86_darwin_13 1
193 #define sys_x86_darwin_14 1
194 #define sys_x86_darwin_60 1
195 #define sys_x86_darwin_70 1
196 #define sys_x86_darwin_80 1
197 #define sys_x86_darwin_100 1
198 #define sys_x86_darwin_110 1
199 #define sys_x86_darwin_120 1
200 #define SYS_NAME "x86_darwin_120"
201 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_120
202 #define AFSLITTLE_ENDIAN 1
203 #elif defined(__amd64__)
204 #define sys_x86_darwin_12 1
205 #define sys_x86_darwin_13 1
206 #define sys_x86_darwin_14 1
207 #define sys_x86_darwin_60 1
208 #define sys_x86_darwin_70 1
209 #define sys_x86_darwin_80 1
210 #define sys_x86_darwin_100 1
211 #define sys_amd64_darwin_100 1
212 #define sys_amd64_darwin_110 1
213 #define sys_amd64_darwin_120 1
214 #define SYS_NAME "amd64_darwin_120"
215 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_120
216 #define AFSLITTLE_ENDIAN 1
217 #else
218 #error Unsupported architecture
219 #endif
220 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
221
222 #define AFS_UIOSYS UIO_SYSSPACE
223 #define AFS_UIOUSER UIO_USERSPACE
224
225 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
226 #define RXK_LISTENER_ENV 1
227
228 #define AFS_VFS34 1 /* What is VFS34??? */
229 #define afsio_iov uio_iov
230 #define afsio_iovcnt uio_iovcnt
231 #define afsio_offset uio_offset
232 #define afsio_seg uio_segflg
233 #define afsio_resid uio_resid
234 #define AFS_UIOSYS UIO_SYSSPACE
235 #define AFS_UIOUSER UIO_USERSPACE
236 #define VATTR_NULL usr_vattr_null
237
238 #define AFS_DIRENT
239 #ifndef CMSERVERPREF
240 #define CMSERVERPREF
241 #endif
242
243 #define BIND_8_COMPAT
244 #endif /* AFS_PARAM_H */
245
246 #endif /* !defined(UKERNEL) */