Lines Matching refs:oflags
565 int dfs_file_open(struct dfs_file *file, const char *path, int oflags, mode_t mode) in dfs_file_open() argument
570 int fflags = dfs_fflags(oflags); in dfs_file_open()
596 dentry = dfs_dentry_lookup(mnt, fullpath, oflags); in dfs_file_open()
600 if (oflags & O_NOFOLLOW) in dfs_file_open()
612 target_dentry = dfs_dentry_lookup(mnt, path, oflags); in dfs_file_open()
622 if (oflags & O_DIRECTORY) in dfs_file_open()
639 oflags |= O_DIRECTORY; in dfs_file_open()
644 if (oflags & O_CREAT) in dfs_file_open()
648 oflags &= ~O_CREAT; in dfs_file_open()
650 if (oflags & O_EXCL) in dfs_file_open()
652 oflags &= ~O_EXCL; in dfs_file_open()
675 … vnode = mnt->fs_ops->create_vnode(dentry, oflags & O_DIRECTORY ? FT_DIRECTORY:FT_REGULAR, mode); in dfs_file_open()
702 file->flags = oflags; in dfs_file_open()
705 if (!(oflags & O_CREAT)) in dfs_file_open()
723 if (oflags & O_EXEC) in dfs_file_open()
777 if (ret >= 0 && (oflags & O_TRUNC)) in dfs_file_open()