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