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