Fix warnings in tviced
[openafs.git] / src / config / param.linux22.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
19 #define AFS_MOUNT_AFS           "afs"   /* The name of the filesystem type */
20 #define AFS_64BIT_IOPS_ENV      1
21 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
22 #define AFS_64BIT_ENV           1
23 #define AFS_64BIT_CLIENT        1
24 #undef  AFS_NONFSTRANS
25 #define AFS_NONFSTRANS          1
26 #define AFS_USERSPACE_IP_ADDR   1
27 #define RXK_LISTENER_ENV        1
28 #define AFS_GCPAGS              2       /* Set to Userdisabled, allow sysctl to override */
29 #define AFS_HAVE_FFS            1       /* Use system's ffs */
30 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
31 #define AFS_VM_RDWR_ENV         1       /* read/write implemented via VM */
32 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
33
34 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
35 #include <linux/config.h>
36 #ifdef CONFIG_SMP
37 #ifndef AFS_SMP
38 #define AFS_SMP 1
39 #endif
40 #endif
41 /* Using "AFS_SMP" to map to however many #define's are required to get
42  * MP to compile for Linux
43  */
44 #ifdef AFS_SMP
45 #ifndef CONFIG_SMP
46 #define CONFIG_SMP 1
47 #endif
48 #ifndef __SMP__
49 #define __SMP__
50 #endif
51 #endif
52 #define AFS_GLOBAL_SUNLOCK
53 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
54 #define MODVERSIONS
55 #include <linux/modversions.h>
56 #endif
57 #endif /* __KERNEL__    && !DUMP_KERNEL */
58
59 #ifdef KERNEL
60 #ifndef MIN
61 #define MIN(A,B) ((A) < (B) ? (A) : (B))
62 #endif
63 #ifndef MAX
64 #define MAX(A,B) ((A) > (B) ? (A) : (B))
65 #endif
66 #endif /* KERNEL */
67
68 #ifndef KERNEL
69 #define __USE_LARGEFILE64 1
70 #if !defined off64_t
71 #define off64_t __off64_t
72 #endif
73 #endif
74
75 #else /* !defined(UKERNEL) */
76
77 /* This section for user space compiles only */
78 #define AFS_USR_LINUX20_ENV     1
79 #define AFS_USR_LINUX22_ENV     1
80
81 #define AFS_ENV                 1
82 #undef  AFS_NONFSTRANS
83 #define AFS_NONFSTRANS          1
84 #define AFS_MOUNT_AFS           "afs"   /* The name of the filesystem type. */
85 #define AFS_64BIT_IOPS_ENV      1
86 #define AFS_NAMEI_ENV           1       /* User space interface to file system */
87 #define AFS_USERSPACE_IP_ADDR   1
88 #define RXK_LISTENER_ENV        1
89 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
90 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
91 #define AFS_HAVE_STATVFS        0       /* System doesn't support statvfs */
92 #define AFS_VM_RDWR_ENV         1       /* read/write implemented via VM */
93
94 #define afsio_iov       uio_iov
95 #define afsio_iovcnt    uio_iovcnt
96 #define afsio_offset    uio_offset
97 #define afsio_seg       uio_segflg
98 #define afsio_fmode     uio_fmode
99 #define afsio_resid     uio_resid
100 #define AFS_UIOSYS      1
101 #define AFS_UIOUSER     UIO_USERSPACE
102 #define AFS_CLBYTES     MCLBYTES
103 #define AFS_MINCHANGE   2
104 #define VATTR_NULL      usr_vattr_null
105
106 #define AFS_DIRENT
107 #ifndef CMSERVERPREF
108 #define CMSERVERPREF
109 #endif
110
111 #endif /* !defined(UKERNEL) */
112
113 #ifdef __GLIBC__
114 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
115 #define USE_UCONTEXT
116 #endif
117 #endif
118
119 #include <afs/afs_sysnames.h>
120
121 #endif /* AFS_PARAM_COMMON_H */