Fix warnings in tviced
[openafs.git] / src / config / param.ppc_darwin_70.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_IOPS_ENV 1
10 #define AFS_PPC_ENV 1
11 #define AFS_VFSINCL_ENV 1
12
13 #include <afs/afs_sysnames.h>
14
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 #undef  AFS_NONFSTRANS
21 #define AFS_NONFSTRANS
22 #define AFS_SYSCALL             230
23 #define AFS_NAMEI_ENV 1
24 #define DARWIN_REFBASE 3
25
26 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
27 #define AFS_MOUNT_AFS    "afs"
28
29 /* Machine / Operating system information */
30 #define sys_ppc_darwin_12   1
31 #define sys_ppc_darwin_13   1
32 #define sys_ppc_darwin_14   1
33 #define sys_ppc_darwin_60   1
34 #define sys_ppc_darwin_70   1
35 #define SYS_NAME        "ppc_darwin_70"
36 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_70
37 #define AFSBIG_ENDIAN   1
38 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
39
40 #define AFS_GCPAGS                1     /* if nonzero, garbage collect PAGs */
41 #define RXK_LISTENER_ENV         1
42
43 #ifdef KERNEL
44 #undef MACRO_BEGIN
45 #undef MACRO_END
46 #include <kern/macro_help.h>
47 #define AFS_GLOBAL_SUNLOCK        1
48 #define AFS_VFS34       1       /* What is VFS34??? */
49 #define afsio_iov       uio_iov
50 #define afsio_iovcnt    uio_iovcnt
51 #define afsio_offset    uio_offset
52 #define afsio_seg       uio_segflg
53 #define afsio_resid     uio_resid
54 #define AFS_UIOSYS      UIO_SYSSPACE
55 #define AFS_UIOUSER     UIO_USERSPACE
56 #define AFS_CLBYTES     CLBYTES
57 #define osi_GetTime(x)  microtime(x)
58 #define AFS_KALLOC(x)   kalloc(x)
59 #define AFS_KFREE(x,y)  kfree(x,y)
60 #define v_count         v_usecount
61 #define v_vfsp          v_mount
62 #define vfs_bsize       mnt_stat.f_bsize
63 #define vfs_fsid        mnt_stat.f_fsid
64 #define va_nodeid       va_fileid
65 #define vfs_vnodecovered mnt_vnodecovered
66 #define direct          dirent
67 #define vnode_t         struct vnode *
68 #define mount_t         struct mount *
69
70 //#define VN_RELE(vp)     vrele(((struct vnode *)(vp)))
71 //#define VN_HOLD(vp)     VREF(((struct vnode *)(vp)))
72 #define BIND_8_COMPAT
73
74 #endif
75 #endif /* AFS_PARAM_H */
76
77 #else /* !defined(UKERNEL) */
78
79 /* This section for user space compiles only */
80
81 #ifndef AFS_PARAM_H
82 #define AFS_PARAM_H
83
84 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
85 #define AFS_ENV                 1
86 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
87 #define AFS_PPC_ENV 1
88
89 #include <afs/afs_sysnames.h>
90 #define AFS_USERSPACE_ENV
91 #define AFS_USR_DARWIN_ENV
92 #define AFS_USR_DARWIN13_ENV
93 #define AFS_USR_DARWIN14_ENV
94 #define AFS_USR_DARWIN60_ENV
95 #define AFS_USR_DARWIN70_ENV
96 #undef  AFS_NONFSTRANS
97 #define AFS_NONFSTRANS
98 #define AFS_SYSCALL             230
99 #define DARWIN_REFBASE 0
100
101 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
102 #define AFS_MOUNT_AFS    "afs"
103
104 /* Machine / Operating system information */
105 #define sys_ppc_darwin_12   1
106 #define sys_ppc_darwin_13   1
107 #define sys_ppc_darwin_14   1
108 #define sys_ppc_darwin_60   1
109 #define sys_ppc_darwin_70   1
110 #define SYS_NAME        "ppc_darwin_70"
111 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_70
112 #define AFSBIG_ENDIAN   1
113 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
114
115 #define AFS_UIOSYS      UIO_SYSSPACE
116 #define AFS_UIOUSER     UIO_USERSPACE
117
118 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
119 #define RXK_LISTENER_ENV          1
120
121 #define AFS_VFS34       1       /* What is VFS34??? */
122 #define afsio_iov       uio_iov
123 #define afsio_iovcnt    uio_iovcnt
124 #define afsio_offset    uio_offset
125 #define afsio_seg       uio_segflg
126 #define afsio_resid     uio_resid
127 #define AFS_UIOSYS      UIO_SYSSPACE
128 #define AFS_UIOUSER     UIO_USERSPACE
129 #define        VATTR_NULL      usr_vattr_null
130
131 #define AFS_DIRENT
132 #ifndef CMSERVERPREF
133 #define CMSERVERPREF
134 #endif
135
136 #define BIND_8_COMPAT
137 #endif /* AFS_PARAM_H */
138
139 #endif /* !defined(UKERNEL) */