afs: Move osi_GetTime out of param.h
[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 AFS_KALLOC(x)   _MALLOC(x, M_TEMP, M_WAITOK)
123 #define AFS_KFREE(x,y)  _FREE(x,M_TEMP)
124 #define v_count         v_usecount
125 #define v_vfsp          v_mount
126 #define vfs_bsize       mnt_stat.f_bsize
127 #define vfs_fsid        mnt_stat.f_fsid
128 #define va_nodeid       va_fileid
129 #define vfs_vnodecovered mnt_vnodecovered
130 #define direct          dirent
131
132 #define BIND_8_COMPAT
133
134 #endif
135 #endif /* AFS_PARAM_H */
136
137 #else /* !defined(UKERNEL) */
138
139 /* This section for user space compiles only */
140
141 #ifndef AFS_PARAM_H
142 #define AFS_PARAM_H
143
144 #define AFS_ENV                 1
145 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
146 #define AFS_64BIT_CLIENT        1
147 #if defined(__ppc__)
148 #define AFS_PPC_ENV             1
149 #elif defined(__i386__) || defined(__amd64__)
150 #define AFS_X86_ENV             1
151 #else
152 #error Unsupported architecture
153 #endif
154 #ifdef __amd64__
155 #define AFS_64BITUSERPOINTER_ENV 1
156 #endif
157
158 #include <afs/afs_sysnames.h>
159 #define AFS_USERSPACE_ENV
160 #define AFS_USR_DARWIN_ENV
161 #define AFS_USR_DARWIN70_ENV
162 #define AFS_USR_DARWIN80_ENV
163 #define AFS_USR_DARWIN90_ENV
164 #define AFS_USR_DARWIN100_ENV
165 #define AFS_USR_DARWIN110_ENV
166 #define AFS_USR_DARWIN120_ENV
167 #undef  AFS_NONFSTRANS
168 #define AFS_NONFSTRANS
169 #define AFS_SYSCALL             230
170 #define DARWIN_REFBASE 0
171 #define AFS_WARNUSER_MARINER_ENV 1
172
173 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
174 #define AFS_MOUNT_AFS    "afs"
175
176 /* Machine / Operating system information */
177 #if defined(__ppc__)
178 #define sys_ppc_darwin_12       1
179 #define sys_ppc_darwin_13       1
180 #define sys_ppc_darwin_14       1
181 #define sys_ppc_darwin_60       1
182 #define sys_ppc_darwin_70       1
183 #define sys_ppc_darwin_80       1
184 #define sys_ppc_darwin_90       1
185 #define sys_ppc_darwin_100      1
186 #define SYS_NAME                "ppc_darwin_100"
187 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_100
188 #define AFSBIG_ENDIAN           1
189 #elif defined(__i386__)
190 #define sys_x86_darwin_12       1
191 #define sys_x86_darwin_13       1
192 #define sys_x86_darwin_14       1
193 #define sys_x86_darwin_60       1
194 #define sys_x86_darwin_70       1
195 #define sys_x86_darwin_80       1
196 #define sys_x86_darwin_100      1
197 #define sys_x86_darwin_110      1
198 #define sys_x86_darwin_120      1
199 #define SYS_NAME                "x86_darwin_120"
200 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_120
201 #define AFSLITTLE_ENDIAN        1
202 #elif defined(__amd64__)
203 #define sys_x86_darwin_12       1
204 #define sys_x86_darwin_13       1
205 #define sys_x86_darwin_14       1
206 #define sys_x86_darwin_60       1
207 #define sys_x86_darwin_70       1
208 #define sys_x86_darwin_80       1
209 #define sys_x86_darwin_100      1
210 #define sys_amd64_darwin_100    1
211 #define sys_amd64_darwin_110    1
212 #define sys_amd64_darwin_120    1
213 #define SYS_NAME                "amd64_darwin_120"
214 #define SYS_NAME_ID             SYS_NAME_ID_amd64_darwin_120
215 #define AFSLITTLE_ENDIAN        1
216 #else
217 #error Unsupported architecture
218 #endif
219 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
220
221 #define AFS_UIOSYS      UIO_SYSSPACE
222 #define AFS_UIOUSER     UIO_USERSPACE
223
224 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
225 #define RXK_LISTENER_ENV          1
226
227 #define AFS_VFS34       1       /* What is VFS34??? */
228 #define afsio_iov       uio_iov
229 #define afsio_iovcnt    uio_iovcnt
230 #define afsio_offset    uio_offset
231 #define afsio_seg       uio_segflg
232 #define afsio_resid     uio_resid
233 #define AFS_UIOSYS      UIO_SYSSPACE
234 #define AFS_UIOUSER     UIO_USERSPACE
235 #define        VATTR_NULL      usr_vattr_null
236
237 #define AFS_DIRENT
238 #ifndef CMSERVERPREF
239 #define CMSERVERPREF
240 #endif
241
242 #define BIND_8_COMPAT
243 #endif /* AFS_PARAM_H */
244
245 #endif /* !defined(UKERNEL) */