2 /* This section for kernel libafs compiles only */
8 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
9 #define AFS_64BIT_IOPS_ENV 1
11 #define AFS_VFSINCL_ENV 1
13 #include <afs/afs_sysnames.h>
15 #define AFS_DARWIN_ENV
16 #define AFS_DARWIN13_ENV
17 #define AFS_DARWIN14_ENV
18 #define AFS_DARWIN60_ENV
19 #define AFS_DARWIN70_ENV
20 #define AFS_NONFSTRANS
21 #define AFS_SYSCALL 230
22 #define AFS_NAMEI_ENV 1
24 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
25 #define AFS_MOUNT_AFS "afs"
27 /* Machine / Operating system information */
28 #define sys_ppc_darwin_12 1
29 #define sys_ppc_darwin_13 1
30 #define sys_ppc_darwin_14 1
31 #define sys_ppc_darwin_60 1
32 #define sys_ppc_darwin_70 1
33 #define SYS_NAME "ppc_darwin_70"
34 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
35 #define AFSBIG_ENDIAN 1
36 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
38 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
39 #define RXK_LISTENER_ENV 1
44 #include <kern/macro_help.h>
45 #define AFS_GLOBAL_SUNLOCK 1
46 #define AFS_VFS34 1 /* What is VFS34??? */
47 #define afsio_iov uio_iov
48 #define afsio_iovcnt uio_iovcnt
49 #define afsio_offset uio_offset
50 #define afsio_seg uio_segflg
51 #define afsio_resid uio_resid
52 #define AFS_UIOSYS UIO_SYSSPACE
53 #define AFS_UIOUSER UIO_USERSPACE
54 #define AFS_CLBYTES CLBYTES
55 #define osi_GetTime(x) microtime(x)
56 #define AFS_KALLOC(x) kalloc(x)
57 #define AFS_KFREE(x,y) kfree(x,y)
58 #define v_count v_usecount
59 #define v_vfsp v_mount
60 #define vfs_bsize mnt_stat.f_bsize
61 #define vfs_fsid mnt_stat.f_fsid
62 #define va_nodeid va_fileid
63 #define vfs_vnodecovered mnt_vnodecovered
65 #define vnode_t struct vnode
67 #define VN_RELE(vp) vrele(((struct vnode *)(vp)))
68 #define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
72 #endif /* AFS_PARAM_H */
74 #else /* !defined(UKERNEL) */
76 /* This section for user space compiles only */
81 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
83 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
86 #include <afs/afs_sysnames.h>
87 #define AFS_USERSPACE_ENV
88 #define AFS_USR_DARWIN_ENV
89 #define AFS_USR_DARWIN13_ENV
90 #define AFS_USR_DARWIN14_ENV
91 #define AFS_USR_DARWIN60_ENV
92 #define AFS_USR_DARWIN70_ENV
93 #define AFS_NONFSTRANS
94 #define AFS_SYSCALL 230
96 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
97 #define AFS_MOUNT_AFS "afs"
99 /* Machine / Operating system information */
100 #define sys_ppc_darwin_12 1
101 #define sys_ppc_darwin_13 1
102 #define sys_ppc_darwin_14 1
103 #define sys_ppc_darwin_60 1
104 #define sys_ppc_darwin_70 1
105 #define SYS_NAME "ppc_darwin_70"
106 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
107 #define AFSBIG_ENDIAN 1
108 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
110 #define AFS_UIOSYS UIO_SYSSPACE
111 #define AFS_UIOUSER UIO_USERSPACE
113 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
114 #define RXK_LISTENER_ENV 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 VATTR_NULL usr_vattr_null
131 #define BIND_8_COMPAT
132 #endif /* AFS_PARAM_H */
134 #endif /* !defined(UKERNEL) */