Lines Matching refs:oflag
867 static int prepare_open(struct dentry *dentry, int oflag, int ro, in prepare_open() argument
876 if (!(oflag & O_CREAT)) in prepare_open()
886 if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL)) in prepare_open()
888 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) in prepare_open()
890 acc = oflag2acc[oflag & O_ACCMODE]; in prepare_open()
894 static int do_mq_open(const char __user *u_name, int oflag, umode_t mode, in do_mq_open() argument
904 audit_mq_open(oflag, mode, attr); in do_mq_open()
921 error = prepare_open(path.dentry, oflag, ro, mode, name, attr); in do_mq_open()
923 struct file *file = dentry_open(&path, oflag, current_cred()); in do_mq_open()
943 SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, in SYSCALL_DEFINE4() argument
950 return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL); in SYSCALL_DEFINE4()
1562 int, oflag, compat_mode_t, mode, in COMPAT_SYSCALL_DEFINE4() argument
1566 if (u_attr && oflag & O_CREAT) { in COMPAT_SYSCALL_DEFINE4()
1571 return do_mq_open(u_name, oflag, mode, p); in COMPAT_SYSCALL_DEFINE4()