O_WRONLY           99 arch/alpha/boot/tools/objstrip.c 	ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_WRONLY          507 arch/mips/boot/elf2ecoff.c 	if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) {
O_WRONLY         1999 arch/powerpc/kvm/book3s_64_mmu_hv.c 	rwflag = (ghf->flags & KVM_GET_HTAB_WRITE) ? O_WRONLY : O_RDONLY;
O_WRONLY           50 arch/um/drivers/tty.c 		mode = O_WRONLY;
O_WRONLY          185 arch/um/os-Linux/file.c 		f = O_WRONLY;
O_WRONLY          483 drivers/acpi/acpi_dbg.c 	if ((file->f_flags & O_ACCMODE) != O_WRONLY) {
O_WRONLY         1522 drivers/ide/ide-tape.c 		if ((filp->f_flags & O_ACCMODE) == O_WRONLY ||
O_WRONLY          188 drivers/media/dvb-core/dmxdev.c 	if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
O_WRONLY          217 drivers/media/dvb-core/dmxdev.c 	if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
O_WRONLY          261 drivers/media/dvb-core/dmxdev.c 	if ((file->f_flags & O_ACCMODE) != O_WRONLY)
O_WRONLY          806 drivers/media/pci/ddbridge/ddbridge-core.c 	} else if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
O_WRONLY          831 drivers/media/pci/ddbridge/ddbridge-core.c 	} else if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
O_WRONLY          843 drivers/media/pci/ddbridge/ddbridge-core.c 	else if ((file->f_flags & O_ACCMODE) == O_WRONLY)
O_WRONLY          226 drivers/s390/char/hmcdrv_dev.c 	if (((fp->f_flags & O_ACCMODE) == O_WRONLY) ||
O_WRONLY          735 drivers/s390/char/vmur.c 	    ((accmode == O_WRONLY) && (urd->class != DEV_CLASS_UR_O))) {
O_WRONLY         1201 drivers/scsi/st.c 		    ((st_flags & O_ACCMODE) == O_WRONLY ||
O_WRONLY          648 drivers/staging/axis-fifo/axis-fifo.c 	if (((f->f_flags & O_ACCMODE) == O_WRONLY) ||
O_WRONLY          534 drivers/staging/greybus/tools/loopback_test.c 		fd = open(file_name, O_WRONLY | O_CREAT | O_APPEND, 0644);
O_WRONLY          131 drivers/staging/most/cdev/cdev.c 		((filp->f_flags & O_ACCMODE) != O_WRONLY))) {
O_WRONLY          223 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->filp = filp_open(fn_play, O_WRONLY, 0);
O_WRONLY          171 fs/9p/vfs_inode.c 	case O_WRONLY:
O_WRONLY           28 fs/ceph/file.c 	case O_WRONLY:
O_WRONLY          189 fs/ceph/file.c 	if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
O_WRONLY          314 fs/ceph/file.c 		flags = O_WRONLY;
O_WRONLY           52 fs/cifs/file.c 	else if ((flags & O_ACCMODE) == O_WRONLY)
O_WRONLY           72 fs/cifs/file.c 	else if ((flags & O_ACCMODE) == O_WRONLY)
O_WRONLY         3824 fs/cifs/file.c 	if ((file->f_flags & O_ACCMODE) == O_WRONLY)
O_WRONLY         3987 fs/cifs/file.c 	if ((file->f_flags & O_ACCMODE) == O_WRONLY)
O_WRONLY         4610 fs/cifs/file.c 	if ((file->f_flags & O_ACCMODE) != O_WRONLY && !oncethru) {
O_WRONLY         4696 fs/cifs/file.c 			break_lease(inode, O_WRONLY);
O_WRONLY           54 fs/coda/coda_linux.c 	if ((flags & O_ACCMODE) == O_WRONLY)
O_WRONLY           77 fs/hostfs/hostfs_user.c 		mode = O_WRONLY;
O_WRONLY         3185 fs/namei.c     	} else if ((open_flag & (O_TRUNC|O_WRONLY|O_RDWR)) &&
O_WRONLY         3303 fs/namei.c     	if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
O_WRONLY         1481 fs/nfs/dir.c   	if ((flags & O_ACCMODE) != O_WRONLY)
O_WRONLY         2551 fs/nfs/dir.c   		if ((openflags & O_ACCMODE) != O_WRONLY)
O_WRONLY          331 fs/nfs/nfstrace.h TRACE_DEFINE_ENUM(O_WRONLY);
O_WRONLY          349 fs/nfs/nfstrace.h 		{ O_WRONLY, "O_WRONLY" }, \
O_WRONLY          450 fs/nfsd/nfs4state.c 	ret = __nfs4_get_fd(f, O_WRONLY);
O_WRONLY          501 fs/nfsd/nfs4state.c 		ret = __nfs4_get_fd(f, O_WRONLY);
O_WRONLY          551 fs/nfsd/nfs4state.c 		atomic_inc(&fp->fi_access[O_WRONLY]);
O_WRONLY          586 fs/nfsd/nfs4state.c 		    atomic_read(&fp->fi_access[O_WRONLY]))
O_WRONLY          616 fs/nfsd/nfs4state.c 		__nfs4_file_put_access(fp, O_WRONLY);
O_WRONLY         1187 fs/nfsd/nfs4state.c 		return O_WRONLY;
O_WRONLY          696 fs/nfsd/vfs.c  	mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY;
O_WRONLY          746 fs/nfsd/vfs.c  			flags = O_WRONLY|O_LARGEFILE;
O_WRONLY          792 fs/notify/fanotify/fanotify_user.c 	case O_WRONLY:
O_WRONLY          106 fs/ocfs2/dlmfs/dlmfs.c 	if (open_flags & (O_WRONLY|O_RDWR))
O_WRONLY          102 fs/open.c      	error = break_lease(inode, O_WRONLY);
O_WRONLY         1152 fs/open.c      	return ksys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode);
O_WRONLY          135 fs/overlayfs/copy_up.c 	new_file = ovl_path_open(new, O_LARGEFILE | O_WRONLY);
O_WRONLY          926 fs/overlayfs/copy_up.c 	return ovl_copy_up_flags(dentry, O_WRONLY);
O_WRONLY          432 fs/overlayfs/file.c 	ret = ovl_maybe_copy_up(file_dentry(file), O_WRONLY);
O_WRONLY          777 fs/pipe.c      				O_WRONLY | (flags & (O_NONBLOCK | O_DIRECT)),
O_WRONLY            9 include/linux/fcntl.h 	(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
O_WRONLY         2459 include/linux/fs.h 	ret = break_deleg(inode, O_WRONLY|O_NONBLOCK);
O_WRONLY         2471 include/linux/fs.h 	ret = break_deleg(*delegated_inode, O_WRONLY);
O_WRONLY         2482 include/linux/fs.h 				wait ? O_WRONLY : O_WRONLY | O_NONBLOCK,
O_WRONLY          332 init/initramfs.c 			int openflags = O_WRONLY|O_CREAT;
O_WRONLY          629 init/initramfs.c 	fd = ksys_open("/initrd.image", O_WRONLY | O_CREAT, 0700);
O_WRONLY          809 ipc/mqueue.c   	if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY))
O_WRONLY          207 kernel/acct.c  	file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0);
O_WRONLY          458 kernel/bpf/syscall.c 		return O_WRONLY;
O_WRONLY           85 kernel/power/user.c 		data->mode = O_WRONLY;
O_WRONLY          268 kernel/power/user.c 		if (data->mode != O_WRONLY || !data->frozen ||
O_WRONLY         1016 kernel/printk/printk.c 	if ((file->f_flags & O_ACCMODE) != O_WRONLY) {
O_WRONLY         1297 kernel/sysctl_binary.c 		flags = O_WRONLY;
O_WRONLY           67 net/ceph/ceph_fs.c 	case O_WRONLY:
O_WRONLY           64 samples/bpf/bpf_load.c 		flags = O_WRONLY | O_TRUNC;
O_WRONLY           66 samples/bpf/bpf_load.c 		flags = O_WRONLY | O_APPEND;
O_WRONLY          157 samples/bpf/cpustat_user.c 	fd = open(CPUFREQ_MAX_SYSFS_PATH, O_WRONLY);
O_WRONLY          228 samples/bpf/task_fd_query_user.c 	kfd = open(buf, O_WRONLY | O_APPEND, 0);
O_WRONLY           39 samples/bpf/test_overhead_user.c 	fd = open("/proc/self/comm", O_WRONLY|O_TRUNC);
O_WRONLY            9 samples/watchdog/watchdog-simple.c 	int fd = open("/dev/watchdog", O_WRONLY);
O_WRONLY          299 scripts/dtc/util.c 		fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_WRONLY          147 scripts/kconfig/confdata.c 	fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_WRONLY          157 scripts/kconfig/confdata.c 		fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_WRONLY          330 scripts/recordmcount.c 	fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode);
O_WRONLY          428 security/integrity/ima/ima_crypto.c 		int flags = file->f_flags & ~(O_WRONLY | O_APPEND |
O_WRONLY          385 security/integrity/ima/ima_fs.c 	if (!(filp->f_flags & O_WRONLY)) {
O_WRONLY          303 security/tomoyo/tomoyo.c 					    O_WRONLY | (arg & O_APPEND));
O_WRONLY           86 sound/core/compress_offload.c 	if ((f->f_flags & O_ACCMODE) == O_WRONLY)
O_WRONLY          249 sound/core/info.c 	    ((mode == O_WRONLY || mode == O_RDWR) && !entry->c.ops->write)) {
O_WRONLY          288 sound/core/seq/oss/seq_oss_init.c 	if ((file->f_flags & O_ACCMODE) != O_WRONLY)
O_WRONLY          377 tools/accounting/getdelays.c 		fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC,
O_WRONLY          306 tools/bpf/bpf_jit_disasm.c 	ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
O_WRONLY          525 tools/bpf/bpftool/prog.c 		fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
O_WRONLY           43 tools/cgroup/cgroup_event_listener.c 	event_control = open(event_control_path, O_WRONLY);
O_WRONLY          120 tools/firmware/ihex2fw.c 		outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
O_WRONLY          243 tools/io_uring/io_uring-cp.c 	outfd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_WRONLY          410 tools/lib/api/fs/fs.c 	int fd = open(filename, O_WRONLY), err = -1;
O_WRONLY           75 tools/perf/builtin-ftrace.c 	int flags = O_WRONLY;
O_WRONLY          353 tools/perf/tests/builtin-test.c 				int nullfd = open("/dev/null", O_WRONLY);
O_WRONLY           90 tools/perf/util/jitdump.c 	fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
O_WRONLY         1342 tools/perf/util/symbol-elf.c 		kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
O_WRONLY          214 tools/power/acpi/tools/ec/ec_access.c 		file_mode = O_WRONLY;
O_WRONLY           46 tools/power/cpupower/lib/cpufreq.c 	fd = open(path, O_WRONLY);
O_WRONLY           98 tools/power/cpupower/lib/cpuidle.c 	fd = open(path, O_WRONLY);
O_WRONLY           62 tools/power/cpupower/utils/helpers/msr.c 	fd = open(msr_file_name, O_WRONLY);
O_WRONLY          169 tools/power/cpupower/utils/helpers/sysfs.c 	fd = open(path, O_WRONLY);
O_WRONLY          177 tools/power/x86/intel-speed-select/isst-config.c 	fd = open(buffer, O_WRONLY);
O_WRONLY          149 tools/spi/spidev_test.c 		out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_WRONLY          152 tools/testing/selftests/bpf/cgroup_helpers.c 	fd = open(cgroup_procs_path, O_WRONLY);
O_WRONLY          119 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY          615 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY          685 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY          735 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY          774 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY          843 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY         1355 tools/testing/selftests/bpf/test_sysctl.c 		.open_flags = O_WRONLY,
O_WRONLY         1506 tools/testing/selftests/bpf/test_sysctl.c 	} else if (test->open_flags == O_WRONLY) {
O_WRONLY           49 tools/testing/selftests/capabilities/test_execve.c 	fd = open(filename, O_WRONLY);
O_WRONLY          160 tools/testing/selftests/capabilities/test_execve.c 	int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
O_WRONLY           42 tools/testing/selftests/cgroup/cgroup_util.c 	fd = open(path, O_WRONLY | O_APPEND);
O_WRONLY          399 tools/testing/selftests/cgroup/cgroup_util.c 	fd = open(path, O_WRONLY | O_APPEND);
O_WRONLY           89 tools/testing/selftests/efivarfs/open-unlink.c 	fd = open(path, O_WRONLY | O_CREAT, 0600);
O_WRONLY           37 tools/testing/selftests/filesystems/binderfs/binderfs_test.c 	fd = open(filename, O_WRONLY | O_CLOEXEC);
O_WRONLY           40 tools/testing/selftests/ipc/msgque.c 	fd = open("/proc/sys/kernel/msg_next_id", O_WRONLY);
O_WRONLY          118 tools/testing/selftests/ir/ir_loopback.c 	protocolfd = open(buf, O_WRONLY);
O_WRONLY           73 tools/testing/selftests/mount/unprivileged-remount-test.c 	fd = open(filename, O_WRONLY);
O_WRONLY          161 tools/testing/selftests/powerpc/utils.c 	if ((fd = open(path, O_WRONLY)) < 0)
O_WRONLY          194 tools/testing/selftests/proc/proc-pid-vm.c 	fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700);
O_WRONLY           58 tools/testing/selftests/proc/read.c 	fd = openat(dirfd(d), filename, O_WRONLY);
O_WRONLY           58 tools/testing/selftests/safesetid/safesetid-test.c 	fd = open(filename, O_WRONLY);
O_WRONLY          125 tools/testing/selftests/safesetid/safesetid-test.c 	int fd = open(add_whitelist_policy_file, O_WRONLY);
O_WRONLY          153 tools/testing/selftests/safesetid/safesetid-test.c 	fd = open(add_whitelist_policy_file, O_WRONLY);
O_WRONLY           91 tools/testing/selftests/timers/clocksource-switch.c 	fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY);
O_WRONLY           49 tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c 	fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);
O_WRONLY           60 tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c 	fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);
O_WRONLY          111 tools/testing/selftests/watchdog/watchdog-test.c 	fd = open(file, O_WRONLY);
O_WRONLY           16 tools/usb/usbip/libsrc/sysfs_utils.c 	fd = open(attr_path, O_WRONLY);
O_WRONLY           63 tools/usb/usbip/src/usbip_attach.c 	fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
O_WRONLY           58 tools/virtio/virtio-trace/trace-agent-rw.c 		rw_ti->out_fd = open(out_path, O_WRONLY);
O_WRONLY          538 tools/vm/page-types.c 		hwpoison_inject_fd = checked_open(buf, O_WRONLY);
O_WRONLY          544 tools/vm/page-types.c 		hwpoison_forget_fd = checked_open(buf, O_WRONLY);