2 /* This section for kernel libafs compiles only */
8 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
10 #define AFS_VFSINCL_ENV 1
12 #include <afs/afs_sysnames.h>
14 #define AFS_DARWIN_ENV
15 #define AFS_DARWIN13_ENV
16 #define AFS_DARWIN14_ENV
17 #define AFS_NONFSTRANS
18 #define AFS_SYSCALL 230
19 #define AFS_NAMEI_ENV 1
20 #define DARWIN_REFBASE 0
22 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
23 #define AFS_MOUNT_AFS "afs"
25 /* Machine / Operating system information */
26 #define sys_ppc_darwin_12 1
27 #define sys_ppc_darwin_13 1
28 #define sys_ppc_darwin_14 1
29 #define SYS_NAME "ppc_darwin_14"
30 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_14
31 #define AFSBIG_ENDIAN 1
32 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
34 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
35 #define RXK_LISTENER_ENV 1
40 #include <kern/macro_help.h>
41 #define AFS_GLOBAL_SUNLOCK 1
42 #define AFS_VFS34 1 /* What is VFS34??? */
43 #define afsio_iov uio_iov
44 #define afsio_iovcnt uio_iovcnt
45 #define afsio_offset uio_offset
46 #define afsio_seg uio_segflg
47 #define afsio_resid uio_resid
48 #define AFS_UIOSYS UIO_SYSSPACE
49 #define AFS_UIOUSER UIO_USERSPACE
50 #define AFS_CLBYTES CLBYTES
51 #define osi_GetTime(x) microtime(x)
52 #define AFS_KALLOC(x) kalloc(x)
53 #define AFS_KFREE(x,y) kfree(x,y)
54 #define v_count v_usecount
55 #define v_vfsp v_mount
56 #define vfs_bsize mnt_stat.f_bsize
57 #define vfs_fsid mnt_stat.f_fsid
58 #define va_nodeid va_fileid
59 #define vfs_vnodecovered mnt_vnodecovered
61 #define vnode_t struct vnode
63 #define VN_RELE(vp) vrele(((struct vnode *)(vp)))
64 #define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
67 #endif /* AFS_PARAM_H */
69 #else /* !defined(UKERNEL) */
71 /* This section for user space compiles only */
76 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
78 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
81 #include <afs/afs_sysnames.h>
82 #define AFS_USERSPACE_ENV
83 #define AFS_USR_DARWIN_ENV
84 #define AFS_USR_DARWIN13_ENV
85 #define AFS_USR_DARWIN14_ENV
86 #define AFS_NONFSTRANS
87 #define AFS_SYSCALL 230
88 #define DARWIN_REFBASE 0
90 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
91 #define AFS_MOUNT_AFS "afs"
93 /* Machine / Operating system information */
94 #define sys_ppc_darwin_12 1
95 #define sys_ppc_darwin_13 1
96 #define sys_ppc_darwin_14 1
97 #define SYS_NAME "ppc_darwin_14"
98 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_14
99 #define AFSBIG_ENDIAN 1
100 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
102 #define AFS_UIOSYS UIO_SYSSPACE
103 #define AFS_UIOUSER UIO_USERSPACE
105 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
106 #define RXK_LISTENER_ENV 1
108 #define AFS_VFS34 1 /* What is VFS34??? */
109 #define afsio_iov uio_iov
110 #define afsio_iovcnt uio_iovcnt
111 #define afsio_offset uio_offset
112 #define afsio_seg uio_segflg
113 #define afsio_resid uio_resid
114 #define AFS_UIOSYS UIO_SYSSPACE
115 #define AFS_UIOUSER UIO_USERSPACE
116 #define VATTR_NULL usr_vattr_null
123 #endif /* AFS_PARAM_H */
125 #endif /* !defined(UKERNEL) */