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