Lines Matching defs:fmode
154 * fmode is the open flags, converted from O_* to F*
167 * O_NOFOLLOW in fmode. Neither FOLLOW nor NOFOLLOW in nmode is
172 int nmode, int fmode, int cmode,
188 if ((fmode & (O_CREAT | O_DIRECTORY)) == (O_CREAT | O_DIRECTORY))
197 if (fmode & O_CREAT) {
200 if ((fmode & O_EXCL) == 0 &&
201 ((fmode & O_NOFOLLOW) == 0))
203 if ((fmode & O_EXCL) == 0)
208 if ((fmode & O_NOFOLLOW) == 0)
232 error = veriexec_openchk(l, nd.ni_vp, pathstring, fmode);
240 if ((fmode & O_CREAT) != 0 && nd.ni_dvp != NULL) {
264 if ((fmode & O_CREAT) != 0 && nd.ni_dvp != NULL) {
269 if (fmode & O_EXCL)
277 fmode &= ~O_TRUNC;
289 if (fmode & O_EXCL) {
293 fmode &= ~O_CREAT;
295 } else if ((fmode & O_CREAT) != 0) {
304 KASSERT((fmode & O_EXCL) == 0);
305 fmode &= ~O_CREAT;
318 if ((fmode & O_CREAT) == 0) {
319 error = vn_openchk(vp, cred, fmode);
324 if (fmode & O_TRUNC) {
331 if ((error = VOP_OPEN(vp, fmode, cred)) != 0)
333 if (fmode & FWRITE) {