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