Lines Matching refs:oflag
854 static int prepare_open(struct dentry *dentry, int oflag, int ro, in prepare_open() argument
863 if (!(oflag & O_CREAT)) in prepare_open()
873 if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL)) in prepare_open()
875 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) in prepare_open()
877 acc = oflag2acc[oflag & O_ACCMODE]; in prepare_open()
881 static int do_mq_open(const char __user *u_name, int oflag, umode_t mode, in do_mq_open() argument
891 audit_mq_open(oflag, mode, attr); in do_mq_open()
908 error = prepare_open(path.dentry, oflag, ro, mode, name, attr); in do_mq_open()
910 struct file *file = dentry_open(&path, oflag, current_cred()); in do_mq_open()
930 SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, in SYSCALL_DEFINE4() argument
937 return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL); in SYSCALL_DEFINE4()
1552 int, oflag, compat_mode_t, mode, in COMPAT_SYSCALL_DEFINE4() argument
1556 if (u_attr && oflag & O_CREAT) { in COMPAT_SYSCALL_DEFINE4()
1561 return do_mq_open(u_name, oflag, mode, p); in COMPAT_SYSCALL_DEFINE4()