ad72476bcbc3ae1f84d6e9bb105940fc6dd6af6f
[openafs.git] / src / config / param.i386_obsd31.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /*
5  * Jim Rees, University of Michigan CITI
6  */
7
8 #ifndef AFS_PARAM_H
9 #define AFS_PARAM_H
10
11 #ifndef IGNORE_STDS_H
12 #include <sys/param.h>
13 #include <afs/afs_sysnames.h>
14 #endif
15
16 #define AFS_XBSD_ENV 1             /* {Free,Open,Net}BSD */
17 #define AFS_X86_XBSD_ENV 1
18
19 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
20 #define AFS_64BIT_IOPS_ENV 1  /* Needed for NAMEI */
21 #define AFS_OBSD_ENV    1
22 #define AFS_NONFSTRANS 1
23 #define AFS_KERBEROS_ENV 1
24 #define AFS_VM_RDWR_ENV 1
25 #define AFS_VFS_ENV     1
26 #define AFS_VFSINCL_ENV 1
27
28 #define FTRUNC O_TRUNC
29
30 #define AFS_SYSCALL     210
31 #define AFS_MOUNT_AFS   "afs"
32
33 #define SYS_NAME        "i386_obsd31"
34 #define SYS_NAME_ID     2002
35
36 #define RXK_LISTENER_ENV        1
37 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
38 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
39
40 #define AFSLITTLE_ENDIAN 1
41
42 /* Extra kernel definitions (from kdefs file) */
43 #ifdef _KERNEL
44 #define AFS_GLOBAL_SUNLOCK 1
45 #define AFS_SHORTGID    0       /* are group id's short? */
46
47 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
48 enum vcexcl {NONEXCL, EXCL};
49
50 #ifndef MIN
51 #define MIN(A,B) ((A) < (B) ? (A) : (B))
52 #endif
53 #ifndef MAX
54 #define MAX(A,B) ((A) > (B) ? (A) : (B))
55 #endif
56
57 #endif  /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
58 #endif /* _KERNEL */
59
60 #endif  /* AFS_PARAM_H */
61
62 #else /* !defined(UKERNEL) */
63
64 /* This section for user space compiles only */
65
66 /*
67  * Jim Rees, University of Michigan CITI
68  */
69
70 #ifndef AFS_PARAM_H
71 #define AFS_PARAM_H
72
73
74 #define UKERNEL                 1       /* user space kernel */
75 #define AFS_ENV                 1
76 #define AFS_VFSINCL_ENV         1
77 #define AFS_OBSD_ENV    1
78 #define AFS_386i_ENV    1       /* 386 Architecture--for lwp stuff */
79 #define AFS_NONFSTRANS 1
80 #define AFS_KERBEROS_ENV
81
82 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
83 #define AFS_SYSCALL 210
84 #define AFS_NAMEI_ENV         1   /* User space interface to file system */
85 #define AFS_64BIT_IOPS_ENV    1   /* Needed for NAMEI */
86 #include <afs/afs_sysnames.h>
87
88 #define AFS_USERSPACE_IP_ADDR 1
89 #define RXK_LISTENER_ENV      1
90 #define AFS_GCPAGS            0       /* if nonzero, garbage collect PAGs */
91
92 /* Machine / Operating system information */
93 #define SYS_NAME        "i386_obsd31"
94 #define SYS_NAME_ID     2002
95 #define AFSLITTLE_ENDIAN    1
96 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
97 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
98
99 #define afsio_iov       uio_iov
100 #define afsio_iovcnt    uio_iovcnt
101 #define afsio_offset    uio_offset
102 #define afsio_seg       uio_segflg
103 #define afsio_fmode     uio_fmode
104 #define afsio_resid     uio_resid
105 #define AFS_UIOSYS      1
106 #define AFS_UIOUSER     UIO_USERSPACE
107 #define AFS_CLBYTES     MB_CLBYTES
108 #define AFS_MINCHANGE   2
109 #define VATTR_NULL      usr_vattr_null
110
111 #define AFS_DIRENT
112 #ifndef CMSERVERPREF
113 #define CMSERVERPREF
114 #endif
115
116 #include <limits.h>
117 #include <sys/param.h>
118 #include <sys/types.h>
119 #include <sys/mount.h>
120 #include <sys/fcntl.h>
121 #include <netinet/in.h>
122 #include <sys/uio.h>
123 #include <sys/socket.h>
124
125 #endif /* AFS_PARAM_H */
126
127 #endif /* !defined(UKERNEL) */