Lines Matching defs:oflag
867 static int prepare_open(struct dentry *dentry, int oflag, int ro,
876 if (!(oflag & O_CREAT))
886 if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
888 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY))
890 acc = oflag2acc[oflag & O_ACCMODE];
894 static int do_mq_open(const char __user *u_name, int oflag, umode_t mode,
904 audit_mq_open(oflag, mode, attr);
921 error = prepare_open(path.dentry, oflag, ro, mode, name, attr);
923 struct file *file = dentry_open(&path, oflag, current_cred());
943 SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode,
950 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);