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