Lines Matching refs:fmode
140 vn_open(struct nameidata *ndp, int fmode, int cmode)
142 return(vn_open_modflags(ndp, &fmode, cmode));
208 int fmode;
214 fmode = *fmodep;
215 if (fmode & O_CREAT) {
216 if ( (fmode & O_DIRECTORY) ) {
228 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0)
255 if (fmode & O_EXCL)
303 if ((error == EEXIST) && !(fmode & O_EXCL)) {
308 fmode &= ~O_TRUNC;
314 if (fmode & O_EXCL) {
318 fmode &= ~O_CREAT;
329 if (fmode & O_NOFOLLOW || fmode & O_SYMLINK) {
339 if ( (fmode & O_DIRECTORY) && vp->v_type != VDIR ) {
350 if (vp->v_type == VLNK && (fmode & O_NOFOLLOW) != 0) {
356 if ((fmode & O_CREAT) == 0) {
359 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
365 error = mac_vnode_check_open(ctx, vp, fmode);
372 if (fmode & FREAD) {
375 if (fmode & (FWRITE | O_TRUNC)) {
382 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
402 fmode |= O_EVTONLY;
407 if ( (error = VNOP_OPEN(vp, fmode, ctx)) ) {
410 if ( (error = vnode_ref_ext(vp, fmode)) ) {
420 *fmodep = fmode;
423 VNOP_CLOSE(vp, fmode, ctx);