Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / config / param.obsd31.h
1 /*
2 * Thanks to Jim Rees and University of Michigan CITI, for the initial
3 * OpenBSD porting work.
4 */
5
6 /* OpenBSD shared section */
7
8 #ifndef AFS_PARAM_H
9 #define AFS_PARAM_H
10
11 #ifndef IGNORE_STDS_H
12 #include <sys/param.h>
13 #endif
14
15 #define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
16
17 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
18 #define AFS_64BIT_CLIENT 1
19 #define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
20
21 #define AFS_OBSD_ENV 1
22 #define AFS_OBSD31_ENV 1
23
24 #undef AFS_NONFSTRANS
25 #define AFS_NONFSTRANS 1
26 #define AFS_VFS_ENV 1
27 #define AFS_VFSINCL_ENV 1
28
29 #define FTRUNC O_TRUNC
30
31 #define AFS_SYSCALL 208
32 #define AFS_MOUNT_AFS "afs"
33
34 #define RXK_LISTENER_ENV 1
35 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
36 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
37
38 #ifndef IGNORE_STDS_H
39 #include <afs/afs_sysnames.h>
40 #endif
41
42 /* Extra kernel definitions (from kdefs file) */
43 #ifdef _KERNEL
44 #define AFS_GLOBAL_SUNLOCK 1
45
46 #if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
47 enum vcexcl { NONEXCL, EXCL };
48
49 #ifndef MIN
50 #define MIN(A,B) ((A) < (B) ? (A) : (B))
51 #endif
52 #ifndef MAX
53 #define MAX(A,B) ((A) > (B) ? (A) : (B))
54 #endif
55
56 #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
57 #endif /* _KERNEL */
58
59 #endif /* AFS_PARAM_H */