Lines Matching refs:oflag
866 static int prepare_open(struct dentry *dentry, int oflag, int ro,
875 if (!(oflag & O_CREAT))
885 if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
887 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY))
889 acc = oflag2acc[oflag & O_ACCMODE];
893 static int do_mq_open(const char __user *u_name, int oflag, umode_t mode,
903 audit_mq_open(oflag, mode, attr);
920 error = prepare_open(path.dentry, oflag, ro, mode, name, attr);
922 struct file *file = dentry_open(&path, oflag, current_cred());
942 SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode,
949 return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL);
1563 int, oflag, compat_mode_t, mode,
1567 if (u_attr && oflag & O_CREAT) {
1572 return do_mq_open(u_name, oflag, mode, p);