Searched refs:O_WRONLY (Results 1 - 25 of 160) sorted by relevance

1234567

/linux-master/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY);
/linux-master/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);
60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600);
/linux-master/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY);
/linux-master/tools/testing/selftests/wireguard/qemu/
H A Dinit.c66 fd = open("/dev/random", O_WRONLY);
114 fd = open("/proc/sys/kernel/printk", O_WRONLY);
120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY);
195 fd = open(success_dev, O_WRONLY);
238 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY);
250 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY);
/linux-master/scripts/
H A Djobserver-exec36 writer = os.open(path, os.O_WRONLY)
/linux-master/tools/testing/selftests/firmware/
H A Dfw_namespace.c39 fd = open(sys_path, O_WRONLY);
53 fd = open(fw_path, O_WRONLY | O_CREAT, 0600);
/linux-master/tools/testing/selftests/landlock/
H A Dfs_test.c895 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY));
898 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
926 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
932 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
938 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
982 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
988 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
994 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
1007 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
1013 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
[all...]
/linux-master/arch/um/drivers/
H A Dtty.c50 mode = O_WRONLY;
/linux-master/tools/testing/selftests/timens/
H A Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY);
H A Dfutex.c80 fd = open("/proc/self/timens_offsets", O_WRONLY);
/linux-master/tools/power/cpupower/utils/helpers/
H A Dmsr.c61 fd = open(msr_file_name, O_WRONLY);
/linux-master/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-master/fs/nfsd/
H A Dlockd.c41 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bprm_opts.c38 null_fd = open("/dev/null", O_WRONLY);
H A Draw_tp_test_run.c35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC);
/linux-master/samples/cgroup/
H A Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY);
/linux-master/fs/lockd/
H A Dsvcsubs.c76 return lock_is_write(lock) ? O_WRONLY : O_RDONLY;
171 if (file->f_file[O_WRONLY])
172 nlmsvc_ops->fclose(file->f_file[O_WRONLY]);
194 lock.c.flc_file = file->f_file[O_WRONLY];
291 if (file->f_file[O_WRONLY])
292 nlmsvc_ops->fclose(file->f_file[O_WRONLY]);
/linux-master/tools/testing/selftests/efivarfs/
H A Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600);
91 perror("open(O_WRONLY)");
/linux-master/fs/ceph/
H A Dutil.c65 case O_WRONLY:
/linux-master/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c70 fd = open(filename, O_WRONLY);
165 int fd = open(add_uid_whitelist_policy_file, O_WRONLY);
189 fd = open(add_uid_whitelist_policy_file, O_WRONLY);
213 fd = open(add_gid_whitelist_policy_file, O_WRONLY);
/linux-master/include/trace/misc/
H A Dfs.h26 { O_WRONLY, "O_WRONLY" }, \
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h21 #define O_WRONLY 00000001 macro
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h21 #define O_WRONLY 00000001 macro
/linux-master/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
/linux-master/scripts/clang-tools/
H A Drun-clang-tools.py94 devnull = os.open(os.devnull, os.O_WRONLY)

Completed in 297 milliseconds

1234567