darwin-optimize-and-fix-dirpath-20010920
[openafs.git] / src / config / param.sparc64_linux24.h
1 /* Copyright (C) 1998 by Transarc Corporation */
2
3
4 #ifndef _PARAM_SPARC64_LINUX24_H_
5 #define _PARAM_SPARC64_LINUX24_H_
6
7 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
8  * it's a judgment call. If something is obviously sparc64 specific, use that
9  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
10  * in the sysname is the current version of the client. This takes into
11  * account the perferred OS user space configuration as well as the kernel.
12  */
13
14 #define AFS_LINUX20_ENV 1
15 #define AFS_LINUX22_ENV 1
16 #define AFS_LINUX24_ENV 1
17 #define AFS_SPARC64_LINUX20_ENV 1
18 #define AFS_SPARC64_LINUX22_ENV 1
19 #define AFS_SPARC64_LINUX24_ENV 1
20 #define AFS_LINUX_64BIT_KERNEL 1
21 #define AFS_NONFSTRANS 1
22
23 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
24 #define AFS_SYSCALL 227
25 #define AFS_64BIT_IOPS_ENV  1
26 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
27
28 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
29 #define AFS_32BIT_USR_ENV       1
30 #define AFS_64BITPOINTER_ENV    1       /* pointers are 64 bits. */
31
32 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
33 #include <linux/config.h>
34 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
35 #define MODVERSIONS
36 #include <linux/modversions.h>
37 #endif
38 #ifdef CONFIG_SMP
39 #undef CONFIG_SMP
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 #define CONFIG_SMP
46 #define __SMP__
47 #define AFS_GLOBAL_SUNLOCK
48 #endif
49
50 #endif /* __KERNEL__  && !DUMP_KERNEL*/
51 #include <afs/afs_sysnames.h>
52
53 #define AFS_USERSPACE_IP_ADDR 1
54 #define RXK_LISTENER_ENV 1
55 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
56
57 /* Machine / Operating system information */
58 #define SYS_NAME        "sparc64_linux24"
59 #define SYS_NAME_ID     SYS_NAME_ID_sparc64_linux24
60 #define AFSBIG_ENDIAN    1
61 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
62 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
63 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
64
65
66 #ifdef KERNEL
67 #ifndef MIN
68 #define MIN(A,B) ((A) < (B) ? (A) : (B))
69 #endif
70 #ifndef MAX
71 #define MAX(A,B) ((A) > (B) ? (A) : (B))
72 #endif
73 #endif /* KERNEL */
74
75 /* on sparclinux is O_LARGEFILE defined but there is not off64_t,
76    so small hack to get usd_file.c work */
77 #ifndef KERNEL
78 #define __USE_FILE_OFFSET64 1
79 #define __USE_LARGEFILE64 1
80 #if !defined off64_t
81 #define off64_t __off64_t
82 #endif
83 #endif
84
85 #endif /* _PARAM_SPARC64_LINUX24_H_ */