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