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