Linux: Don't preprocess osi_vfs.h
[openafs.git] / src / config / param.amd64_fbsd_53.h
1 #ifndef AFS_PARAM_H
2 #define AFS_PARAM_H
3
4 #ifndef UKERNEL
5 /* This section for kernel libafs compiles only */
6
7 #ifndef IGNORE_STDS_H
8 #include <sys/param.h>
9 #endif
10
11 #define AFS_XBSD_ENV 1          /* {Free,Open,Net}BSD */
12 #define AFS_X86_XBSD_ENV 1
13
14 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
15 #define AFS_64BIT_ENV 1
16 #define AFS_64BIT_CLIENT 1
17 #define AFS_64BIT_IOPS_ENV 1    /* Needed for NAMEI */
18 #define AFS_FBSD_ENV 1
19 #define AFS_FBSD40_ENV 1
20 #define AFS_FBSD42_ENV 1
21 #define AFS_FBSD43_ENV 1
22 #define AFS_FBSD44_ENV 1
23 #define AFS_FBSD45_ENV 1
24 #define AFS_FBSD46_ENV 1
25 #define AFS_FBSD47_ENV 1
26 #define AFS_FBSD50_ENV 1
27 #define AFS_FBSD51_ENV 1
28 #define AFS_FBSD52_ENV 1
29 #define AFS_FBSD53_ENV 1
30 #define AFS_X86_FBSD_ENV 1
31 #define AFS_X86_FBSD40_ENV 1
32 #define AFS_X86_FBSD42_ENV 1
33 #define AFS_X86_FBSD43_ENV 1
34 #define AFS_X86_FBSD46_ENV 1
35 #define AFS_X86_FBSD47_ENV 1
36 #define AFS_X86_FBSD50_ENV 1
37 #define AFS_X86_ENV 1
38 #undef  AFS_NONFSTRANS
39 #define AFS_NONFSTRANS 1
40 #define FTRUNC O_TRUNC
41
42 #define IUPD 0x0010
43 #define IACC 0x0020
44 #define ICHG 0x0040
45 #define IMOD 0x0080
46
47 #define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
48                                 NULL, curproc)
49 #define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
50                                 NULL, curproc)
51
52 #include <afs/afs_sysnames.h>
53
54 #define AFS_VM_RDWR_ENV 1
55 #define AFS_VFS_ENV     1
56 #define AFS_VFSINCL_ENV 1
57 #define AFS_GREEDY43_ENV        1
58 #define AFS_ENV         1
59
60 #define AFS_SYSCALL     339
61 #define AFS_MOUNT_AFS   "afs"
62
63 #ifndef MOUNT_UFS
64 #define MOUNT_UFS "ufs"
65 #endif
66
67 #ifndef MOUNT_AFS
68 #define MOUNT_AFS AFS_MOUNT_AFS
69 #endif
70 #define SYS_NAME        "amd64_fbsd_53"
71 #define SYS_NAME_ID     SYS_NAME_ID_amd64_fbsd_53
72
73 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
74 #define AFS_HAVE_STATVFS        0       /* System doesn't supports statvfs */
75
76 #define RXK_LISTENER_ENV 1
77 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
78 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
79
80 #define AFSLITTLE_ENDIAN 1
81
82 /* Extra kernel definitions (from kdefs file) */
83 #ifdef _KERNEL
84 #define AFS_GLOBAL_SUNLOCK        1
85 #define AFS_VFS34       1       /* What is VFS34??? */
86 #define AFS_SHORTGID    0       /* are group id's short? */
87 #define afsio_iov       uio_iov
88 #define afsio_iovcnt    uio_iovcnt
89 #define afsio_offset    uio_offset
90 #define afsio_seg       uio_segflg
91 #define afsio_resid     uio_resid
92 #define AFS_UIOSYS      UIO_SYSSPACE
93 #define AFS_UIOUSER     UIO_USERSPACE
94 #define AFS_CLBYTES     CLBYTES
95 #define osi_GetTime(x)  microtime(x)
96 #define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
97 #undef  AFS_KALLOC_NOSLEEP
98 #define AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
99 #define AFS_KFREE(x,y)  osi_fbsd_free((x))
100 #define v_count         v_usecount
101 #define v_vfsp          v_mount
102 #define vfs_bsize       mnt_stat.f_bsize
103 #define vfs_fsid        mnt_stat.f_fsid
104 #define va_nodeid       va_fileid
105 #define vfs_vnodecovered mnt_vnodecovered
106 #define direct          dirent
107 #define vnode_t         struct vnode
108
109 #ifndef MUTEX_DEFAULT
110 #define MUTEX_DEFAULT   0
111 #endif /* MUTEX_DEFAULT */
112
113 #ifndef SSYS
114 #define SSYS            0x00002
115 #endif /* SSYS */
116
117 #define p_rcred         p_ucred
118
119 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
120 enum vcexcl { NONEXCL, EXCL };
121
122 #ifdef KERNEL
123 #ifndef MIN
124 #define MIN(A,B) ((A) < (B) ? (A) : (B))
125 #endif
126 #ifndef MAX
127 #define MAX(A,B) ((A) > (B) ? (A) : (B))
128 #endif
129 #endif /* KERNEL */
130
131 #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
132 #endif /* _KERNEL */
133
134 #else /* !defined(UKERNEL) */
135
136 /* This section for user space compiles only */
137
138 #define UKERNEL                 1       /* user space kernel */
139 #define AFS_ENV                 1
140 #define AFS_VFSINCL_ENV         1
141 #define AFS_USR_FBSD40_ENV      1
142 #define AFS_USR_FBSD42_ENV      1
143 #define AFS_USR_FBSD43_ENV      1
144 #define AFS_USR_FBSD44_ENV      1
145 #define AFS_USR_FBSD45_ENV      1
146 #define AFS_USR_FBSD46_ENV      1
147 #define AFS_USR_FBSD47_ENV      1
148 #define AFS_USR_FBSD50_ENV      1
149 #define AFS_USR_FBSD51_ENV      1
150 #define AFS_USR_FBSD52_ENV      1
151 #define AFS_USR_FBSD53_ENV      1
152 #define AFS_USR_FBSD_ENV        1
153 #undef  AFS_NONFSTRANS
154 #define AFS_NONFSTRANS 1
155
156 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
157 #define AFS_SYSCALL 339
158 #define AFS_NAMEI_ENV         1 /* User space interface to file system */
159 #define AFS_64BIT_ENV 1
160 #define AFS_64BITPOINTER_ENV  1
161 #define AFS_64BIT_IOPS_ENV    1 /* Needed for NAMEI */
162 #define AFS_USERSPACE_IP_ADDR 1
163 #define RXK_LISTENER_ENV      1
164 #define AFS_GCPAGS            0 /* if nonzero, garbage collect PAGs */
165
166 /* Machine / Operating system information */
167 #include <afs/afs_sysnames.h>
168 #define SYS_NAME        "i386_fbsd_53"
169 #define SYS_NAME_ID     SYS_NAME_ID_i386_fbsd_53
170
171 #define AFSLITTLE_ENDIAN    1
172 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
173 #define AFS_HAVE_STATVFS    1   /* System doesn't support statvfs */
174 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
175
176 #define afsio_iov       uio_iov
177 #define afsio_iovcnt    uio_iovcnt
178 #define afsio_offset    uio_offset
179 #define afsio_seg       uio_segflg
180 #define afsio_fmode     uio_fmode
181 #define afsio_resid     uio_resid
182 #define AFS_UIOSYS      1
183 #define AFS_UIOUSER     UIO_USERSPACE
184 #define AFS_CLBYTES     MCLBYTES
185 #define AFS_MINCHANGE   2
186 #define VATTR_NULL      usr_vattr_null
187
188 #define AFS_DIRENT
189 #ifndef CMSERVERPREF
190 #define CMSERVERPREF
191 #endif
192
193 #include <limits.h>
194 #include <sys/param.h>
195 #include <sys/types.h>
196 #include <sys/mount.h>
197 #include <sys/fcntl.h>
198 #include <netinet/in.h>
199 #include <sys/uio.h>
200 #include <sys/socket.h>
201
202 #endif /* !defined(UKERNEL) */
203
204 #endif /* AFS_PARAM_H */