Pass -shared when linking some shared libraries
[openafs.git] / src / config / param.ppc_darwin_80.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_CLIENT        1
9 #define AFS_64BIT_IOPS_ENV      1
10 #if defined(__ppc__)
11 #define AFS_PPC_ENV             1
12 #elif defined(__i386__)
13 #define AFS_X86_ENV             1
14 #else
15 #error Unsupported architecture
16 #endif
17 #define AFS_VFSINCL_ENV         1
18
19 #include <afs/afs_sysnames.h>
20
21 #define AFS_DARWIN_ENV
22 #define AFS_DARWIN70_ENV
23 #define AFS_DARWIN80_ENV
24 #undef  AFS_NONFSTRANS
25 #define AFS_NONFSTRANS
26 #define AFS_SYSCALL             230
27 #define AFS_NAMEI_ENV 1
28 #define DARWIN_REFBASE 3
29 #define AFS_WARNUSER_MARINER_ENV 1
30
31 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
32 #define AFS_MOUNT_AFS    "afs"
33
34 /* Machine / Operating system information */
35 #if defined(__ppc__)
36 #define sys_ppc_darwin_12       1
37 #define sys_ppc_darwin_13       1
38 #define sys_ppc_darwin_14       1
39 #define sys_ppc_darwin_60       1
40 #define sys_ppc_darwin_70       1
41 #define sys_ppc_darwin_80       1
42 #define SYS_NAME                "ppc_darwin_80"
43 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_80
44 #define AFSBIG_ENDIAN           1
45 #elif defined(__i386__)
46 #define sys_x86_darwin_12       1
47 #define sys_x86_darwin_13       1
48 #define sys_x86_darwin_14       1
49 #define sys_x86_darwin_60       1
50 #define sys_x86_darwin_70       1
51 #define sys_x86_darwin_80       1
52 #define SYS_NAME                "x86_darwin_80"
53 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_80
54 #define AFSLITTLE_ENDIAN        1
55 #else
56 #error Unsupported architecture
57 #endif
58 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
59
60 #define AFS_GCPAGS               0
61 #define RXK_LISTENER_ENV         1
62 #define RXK_TIMEDSLEEP_ENV       1
63
64 #ifdef KERNEL
65 #undef MACRO_BEGIN
66 #undef MACRO_END
67 #include <kern/macro_help.h>
68 #define AFS_GLOBAL_SUNLOCK        1
69 #define AFS_VFS34       1       /* What is VFS34??? */
70 #define afsio_iov       uio_iov
71 #define afsio_iovcnt    uio_iovcnt
72 #define afsio_offset    uio_offset
73 #define afsio_seg       uio_segflg
74 #define afsio_resid     uio_resid
75 #define AFS_UIOSYS      UIO_SYSSPACE
76 #define AFS_UIOUSER     UIO_USERSPACE
77 #define AFS_CLBYTES     CLBYTES
78 #define osi_GetTime(x)  microtime(x)
79 #define AFS_KALLOC(x)   _MALLOC(x, M_TEMP, M_WAITOK)
80 #define AFS_KFREE(x,y)  _FREE(x,M_TEMP)
81 #define v_count         v_usecount
82 #define v_vfsp          v_mount
83 #define vfs_bsize       mnt_stat.f_bsize
84 #define vfs_fsid        mnt_stat.f_fsid
85 #define va_nodeid       va_fileid
86 #define vfs_vnodecovered mnt_vnodecovered
87 #define direct          dirent
88
89 #define BIND_8_COMPAT
90
91 #endif
92 #endif /* AFS_PARAM_H */
93
94 #else /* !defined(UKERNEL) */
95
96 /* This section for user space compiles only */
97
98 #ifndef AFS_PARAM_H
99 #define AFS_PARAM_H
100
101 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
102 #define AFS_ENV                 1
103 #if defined(__ppc__)
104 #define AFS_PPC_ENV             1
105 #elif defined(__i386__)
106 #define AFS_X86_ENV             1
107 #else
108 #error Unsupported architecture
109 #endif
110
111 #include <afs/afs_sysnames.h>
112 #define AFS_USERSPACE_ENV
113 #define AFS_USR_DARWIN_ENV
114 #define AFS_USR_DARWIN70_ENV
115 #define AFS_USR_DARWIN80_ENV
116 #undef  AFS_NONFSTRANS
117 #define AFS_NONFSTRANS
118 #define AFS_SYSCALL             230
119 #define DARWIN_REFBASE 0
120 #define AFS_WARNUSER_MARINER_ENV 1
121
122 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
123 #define AFS_MOUNT_AFS    "afs"
124
125 /* Machine / Operating system information */
126 #if defined(__ppc__)
127 #define sys_ppc_darwin_12       1
128 #define sys_ppc_darwin_13       1
129 #define sys_ppc_darwin_14       1
130 #define sys_ppc_darwin_60       1
131 #define sys_ppc_darwin_70       1
132 #define sys_ppc_darwin_80       1
133 #define SYS_NAME                "ppc_darwin_80"
134 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_80
135 #define AFSBIG_ENDIAN           1
136 #elif defined(__i386__)
137 #define sys_x86_darwin_12       1
138 #define sys_x86_darwin_13       1
139 #define sys_x86_darwin_14       1
140 #define sys_x86_darwin_60       1
141 #define sys_x86_darwin_70       1
142 #define sys_x86_darwin_80       1
143 #define SYS_NAME                "x86_darwin_80"
144 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_80
145 #define AFSLITTLE_ENDIAN        1
146 #else
147 #error Unsupported architecture
148 #endif
149 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
150
151 #define AFS_UIOSYS      UIO_SYSSPACE
152 #define AFS_UIOUSER     UIO_USERSPACE
153
154 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
155 #define RXK_LISTENER_ENV          1
156
157 #define AFS_VFS34       1       /* What is VFS34??? */
158 #define afsio_iov       uio_iov
159 #define afsio_iovcnt    uio_iovcnt
160 #define afsio_offset    uio_offset
161 #define afsio_seg       uio_segflg
162 #define afsio_resid     uio_resid
163 #define AFS_UIOSYS      UIO_SYSSPACE
164 #define AFS_UIOUSER     UIO_USERSPACE
165 #define        VATTR_NULL      usr_vattr_null
166
167 #define AFS_DIRENT
168 #ifndef CMSERVERPREF
169 #define CMSERVERPREF
170 #endif
171
172 #define BIND_8_COMPAT
173 #endif /* AFS_PARAM_H */
174
175 #endif /* !defined(UKERNEL) */