Change AFS*_LINUXnn_ENV to AFS*_LINUX_ENV
[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 #include <linux/version.h>
17
18 #define AFS_LINUX_ENV           1
19
20 #define AFS_64BIT_IOPS_ENV      1
21 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
22 #define AFS_64BIT_CLIENT        1
23 #undef  AFS_NONFSTRANS
24 #define AFS_NONFSTRANS          1
25 #define AFS_USERSPACE_IP_ADDR   1
26 #define RXK_LISTENER_ENV        1
27 #define AFS_GCPAGS              1       /* Set to Userdisabled, allow sysctl to override */
28 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,4)
29 # define AFS_PAG_ONEGROUP_ENV   1
30 #endif
31 #define AFS_HAVE_FFS            1       /* Use system's ffs */
32 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
33 #define AFS_VM_RDWR_ENV         1       /* read/write implemented via VM */
34 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
35 #define AFS_MAXVCOUNT_ENV       1
36 #define AFS_NEW_BKG             1
37
38 #define AFS_PRIVATE_OSI_ALLOCSPACES     1
39
40 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
41 #define AFS_GLOBAL_SUNLOCK
42 #endif /* __KERNEL__    && !DUMP_KERNEL */
43
44 #ifdef KERNEL
45 #ifndef MIN
46 #define MIN(A,B) ((A) < (B) ? (A) : (B))
47 #endif
48 #ifndef MAX
49 #define MAX(A,B) ((A) > (B) ? (A) : (B))
50 #endif
51
52 #endif /* KERNEL */
53
54 #ifndef KERNEL
55 #define __USE_LARGEFILE64 1
56 #if !defined off64_t
57 #define off64_t __off64_t
58 #endif
59 #endif
60
61 #else /* !defined(UKERNEL) */
62
63 /* This section for user space compiles only */
64
65 #define AFS_USR_LINUX_ENV       1
66
67 #define AFS_ENV                 1
68 #define AFS_64BIT_CLIENT        1
69 #undef  AFS_NONFSTRANS
70 #define AFS_NONFSTRANS          1
71 #define AFS_64BIT_IOPS_ENV      1
72 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
73 #define AFS_USERSPACE_IP_ADDR   1
74 #define RXK_LISTENER_ENV        1
75 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
76 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
77 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
78
79 #define afsio_iov       uio_iov
80 #define afsio_iovcnt    uio_iovcnt
81 #define afsio_offset    uio_offset
82 #define afsio_seg       uio_segflg
83 #define afsio_fmode     uio_fmode
84 #define afsio_resid     uio_resid
85 #define AFS_UIOSYS      1
86 #define AFS_UIOUSER     UIO_USERSPACE
87 #define AFS_CLBYTES     MCLBYTES
88 #define AFS_MINCHANGE   2
89 #define VATTR_NULL      usr_vattr_null
90
91 #define AFS_DIRENT
92 #ifndef CMSERVERPREF
93 #define CMSERVERPREF
94 #endif
95
96 #endif /* !defined(UKERNEL) */
97
98 #if defined(UKERNEL) || !defined(KERNEL)
99 #include <features.h>
100 #endif
101
102 #if defined(HAVE_LINUX_ERRQUEUE_H) && defined(HAVE_SETSOCKOPT_IP_RECVERR) && !defined(UKERNEL)
103 # define AFS_RXERRQ_ENV
104 #endif
105 #ifdef AFS_RXERRQ_ENV
106 # define AFS_ADAPT_PMTU
107 #endif
108
109 #ifdef __GLIBC__
110 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
111 #define USE_UCONTEXT
112 #endif
113 #endif
114
115 #include <afs/afs_sysnames.h>
116
117 #endif /* AFS_PARAM_COMMON_H */