48e4b8734f67fd08d5b6cb0f3ba7c45e11df781a
[openafs.git] / src / config / param.linux26.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef AFS_PARAM_COMMON_H
11 #define AFS_PARAM_COMMON_H
12
13 #ifndef UKERNEL
14
15 /* This section for kernel libafs compiles only */
16 #define AFS_LINUX20_ENV         1
17 #define AFS_LINUX22_ENV         1
18 #define AFS_LINUX24_ENV         1
19 #define AFS_LINUX26_ENV         1
20
21 #define AFS_MOUNT_AFS           "afs"   /* The name of the filesystem type */
22 #define AFS_64BIT_IOPS_ENV      1
23 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
24 #define AFS_64BIT_CLIENT        1
25 #undef  AFS_NONFSTRANS
26 #define AFS_NONFSTRANS          1
27 #define AFS_USERSPACE_IP_ADDR   1
28 #define RXK_LISTENER_ENV        1
29 #define AFS_GCPAGS              1       /* Set to Userdisabled, allow sysctl to override */
30 #define AFS_HAVE_FFS            1       /* Use system's ffs */
31 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
32 #define AFS_VM_RDWR_ENV         1       /* read/write implemented via VM */
33 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
34 #define AFS_MAXVCOUNT_ENV       1
35
36 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
37 #define AFS_GLOBAL_SUNLOCK
38 #endif /* __KERNEL__    && !DUMP_KERNEL */
39
40 #ifdef KERNEL
41 #ifndef MIN
42 #define MIN(A,B) ((A) < (B) ? (A) : (B))
43 #endif
44 #ifndef MAX
45 #define MAX(A,B) ((A) > (B) ? (A) : (B))
46 #endif
47
48 #endif /* KERNEL */
49
50 #ifndef KERNEL
51 #define __USE_LARGEFILE64 1
52 #if !defined off64_t
53 #define off64_t __off64_t
54 #endif
55 #endif
56
57 #else /* !defined(UKERNEL) */
58
59 /* This section for user space compiles only */
60 #define AFS_USR_LINUX20_ENV     1
61 #define AFS_USR_LINUX22_ENV     1
62 #define AFS_USR_LINUX24_ENV     1
63 #define AFS_USR_LINUX26_ENV     1
64
65 #define AFS_ENV                 1
66 #undef  AFS_NONFSTRANS
67 #define AFS_NONFSTRANS          1
68 #define AFS_MOUNT_AFS           "afs"   /* The name of the filesystem type. */
69 #define AFS_64BIT_IOPS_ENV      1
70 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
71 #define AFS_USERSPACE_IP_ADDR   1
72 #define RXK_LISTENER_ENV        1
73 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
74 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
75 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
76 #define AFS_VM_RDWR_ENV         1       /* read/write implemented via VM */
77
78 #define afsio_iov       uio_iov
79 #define afsio_iovcnt    uio_iovcnt
80 #define afsio_offset    uio_offset
81 #define afsio_seg       uio_segflg
82 #define afsio_fmode     uio_fmode
83 #define afsio_resid     uio_resid
84 #define AFS_UIOSYS      1
85 #define AFS_UIOUSER     UIO_USERSPACE
86 #define AFS_CLBYTES     MCLBYTES
87 #define AFS_MINCHANGE   2
88 #define VATTR_NULL      usr_vattr_null
89
90 #define AFS_DIRENT
91 #ifndef CMSERVERPREF
92 #define CMSERVERPREF
93 #endif
94
95 #endif /* !defined(UKERNEL) */
96
97 /* needed so glibc version will be defined */
98 #include <afs/afs_sysnames.h>
99
100 #ifdef __GLIBC__
101 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
102 #define USE_UCONTEXT
103 #endif
104 #endif
105
106 #endif /* AFS_PARAM_COMMON_H */