Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / config / param.rs_aix42.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /*
5 * Copyright 2000, International Business Machines Corporation and others.
6 * All Rights Reserved.
7 *
8 * This software has been released under the terms of the IBM Public
9 * License. For details, see the LICENSE file in the top-level source
10 * directory or online at http://www.openafs.org/dl/license10.html
11 */
12
13 #ifndef AFS_PARAM_H
14 #define AFS_PARAM_H
15
16 #define AFS_AIX_ENV 1
17 #define AFS_AIX32_ENV 1
18 #define AFS_AIX41_ENV 1
19 #define AFS_AIX42_ENV 1
20
21 #define AFS_64BIT_CLIENT 1
22
23 #ifdef AFS_NAMEI_ENV
24 #define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
25 #endif
26
27 #define AFS_HAVE_FLOCK_SYSID 1
28
29 #include <afs/afs_sysnames.h>
30
31 /* Global lock in AFS part of client. */
32 #define AFS_GLOBAL_SUNLOCK 1
33 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
34
35 /* File system entry (used if vmount.h doesn't define MNT_AFS */
36 #define AFS_MOUNT_AFS 4
37 #define AFS_SYSCALL 31
38
39 /* Machine / Operating system information */
40 #define SYS_NAME "rs_aix42"
41 #define SYS_NAME_ID SYS_NAME_ID_rs_aix42
42 #define AFSBIG_ENDIAN 1
43 #define RIOS 1 /* POWERseries 6000. (sj/pc) */
44 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
45 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
46 #define AFS_HAVE_STATVFS 1 /* System supports statvfs */
47
48 #ifndef _POWER
49 #define _POWER 1 /* _POWERseries! */
50 #endif
51 #ifndef COMPAT_43
52 #define COMPAT_43
53 #endif
54
55 #define KERNEL_HAVE_UERROR 1
56 #define KERNEL_HAVE_PIN 1
57
58 /* Extra kernel definitions (from kdefs file) */
59 #ifdef _KERNEL
60 #define AFS_UIOFMODE 1
61 #define afsio_iov uio_iov
62 #define afsio_iovcnt uio_iovcnt
63 #define afsio_offset uio_offset
64 #define afsio_seg uio_segflg
65 #define afsio_fmode uio_fmode
66 #define afsio_resid uio_resid
67 #define AFS_UIOSYS UIO_SYSSPACE
68 #define AFS_UIOUSER UIO_USERSPACE
69 #define AFS_CLBYTES CLBYTES
70 #define AFS_MINCHANGE 2
71 #define osi_GetTime(x) do {curtime(x); (x)->tv_usec = (x)->tv_usec/1000;} while (0)
72 #define osi_GTime(x) time /* something for the silly time(0)?? */
73 #define AFS_KALLOC kmem_alloc
74 #define AFS_KFREE kmem_free
75 #define VATTR_NULL(V) memset((void*)V, -1, sizeof(*(V)))
76 #define va_nodeid va_serialno
77 #endif /* !_KERNEL */
78 #define AFS_DIRENT
79 #endif /* AFS_PARAM_H */
80
81 #else /* !defined(UKERNEL) */
82
83 /* This section for user space compiles only */
84
85 /*
86 * Copyright 2000, International Business Machines Corporation and others.
87 * All Rights Reserved.
88 *
89 * This software has been released under the terms of the IBM Public
90 * License. For details, see the LICENSE file in the top-level source
91 * directory or online at http://www.openafs.org/dl/license10.html
92 */
93
94 #ifndef AFS_PARAM_H
95 #define AFS_PARAM_H
96
97 #define AFS_64BIT_CLIENT 1
98
99 #define AFS_VFS_ENV 1
100 /* Used only in vfsck code; is it needed any more???? */
101 #define RXK_LISTENER_ENV 1
102 #define AFS_USERSPACE_IP_ADDR 1
103 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
104
105 #ifdef KERNEL
106
107 #define UKERNEL 1 /* user space kernel */
108 #define AFS_ENV 1
109 #define AFS_USR_AIX_ENV 1
110 #define AFS_USR_AIX41_ENV 1
111 #define AFS_USR_AIX42_ENV 1
112
113 #else /* KERNEL */
114
115 #define AFS_AIX_ENV 1
116 #define AFS_AIX32_ENV 1
117 #define AFS_AIX41_ENV 1
118 #define AFS_AIX42_ENV 1
119
120 #define AFS_HAVE_FLOCK_SYSID 1
121
122 #endif /* KERNEL */
123
124 #include <afs/afs_sysnames.h>
125
126 /*#define AFS_GLOBAL_SUNLOCK 1 *//* For global locking */
127
128 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
129 #define AFS_SYSCALL 105
130
131 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
132 #define AFS_MOUNT_AFS 4
133
134 /* Machine / Operating system information */
135 #define sys_rs_aix42 1
136 #define SYS_NAME "rs_aix42"
137 #define SYS_NAME_ID SYS_NAME_ID_rs_aix42
138 #define AFSBIG_ENDIAN 1
139 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
140 #define AFS_HAVE_STATVFS 1 /* System supports statvfs */
141
142 /* Extra kernel definitions (from kdefs file) */
143 #ifdef KERNEL
144 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
145 #define AFS_SYSVLOCK 1 /* sys v locking supported */
146 #define afsio_iov uio_iov
147 #define afsio_iovcnt uio_iovcnt
148 #define afsio_offset uio_offset
149 #define afsio_seg uio_segflg
150 #define afsio_fmode uio_fmode
151 #define afsio_resid uio_resid
152 #define AFS_UIOSYS 1
153 #define AFS_UIOUSER UIO_USERSPACE
154 #define AFS_CLBYTES MCLBYTES
155 #define AFS_MINCHANGE 2
156 #define VATTR_NULL usr_vattr_null
157 #endif /* KERNEL */
158 #define AFS_DIRENT
159 #ifndef CMSERVERPREF
160 #define CMSERVERPREF
161 #endif
162
163 #endif /* AFS_PARAM_H */
164
165 #endif /* !defined(UKERNEL) */