Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 231) sorted by relevance

12345678910

/openbmc/linux/tools/testing/selftests/wireguard/qemu/
H A Dinit.c66 fd = open("/dev/random", O_WRONLY); in seed_rng()
114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
195 fd = open(success_dev, O_WRONLY); in launch_tests()
238 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks()
250 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
/openbmc/qemu/trace/
H A Dftrace.c61 trace_fd = open(path, O_WRONLY); in ftrace_init()
64 trace_marker_fd = open("/dev/null", O_WRONLY); in ftrace_init()
84 trace_marker_fd = open(path, O_WRONLY); in ftrace_init()
/openbmc/linux/tools/testing/selftests/landlock/
H A Dfs_test.c842 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
845 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
879 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
885 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
941 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
3525 fd_layer0 = open(path, O_WRONLY); in TEST_F_FORK()
3533 fd_layer1 = open(path, O_WRONLY); in TEST_F_FORK()
3542 fd_layer2 = open(path, O_WRONLY); in TEST_F_FORK()
3552 fd_layer3 = open(path, O_WRONLY); in TEST_F_FORK()
3651 fd = open(path, O_WRONLY); in TEST_F_FORK()
[all …]
/openbmc/linux/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch68 - while ((fd = safe_open (bakname, O_CREAT | O_WRONLY | O_TRUNC, 0666)) < 0)
69 + while ((fd = safe_open (bakname, O_CREAT | O_EXCL | O_WRONLY | O_TRUNC, 0666)) < 0)
94 tofd = create_file (to, O_WRONLY | O_BINARY | to_flags, mode,
101 + int to_flags = O_WRONLY | O_APPEND | O_BINARY;
104 - if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0)
/openbmc/linux/fs/lockd/
H A Dsvcsubs.c76 return (lock->fl_type == F_WRLCK) ? O_WRONLY : O_RDONLY; in lock_to_openmode()
171 if (file->f_file[O_WRONLY]) in nlm_delete_file()
172 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_delete_file()
194 lock.fl_file = file->f_file[O_WRONLY]; in nlm_unlock_files()
291 if (file->f_file[O_WRONLY]) in nlm_close_files()
292 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_close_files()
/openbmc/linux/include/linux/
H A Dfilelock.h382 ret = break_deleg(inode, O_WRONLY|O_NONBLOCK); in try_break_deleg()
394 ret = break_deleg(*delegated_inode, O_WRONLY); in break_deleg_wait()
405 wait ? O_WRONLY : O_WRONLY | O_NONBLOCK, in break_layout()
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/openbmc/u-boot/fs/yaffs2/
H A Dyportenv.h101 #ifndef O_WRONLY
102 #define O_WRONLY 01 macro
/openbmc/linux/tools/testing/selftests/firmware/
H A Dfw_namespace.c43 fd = open(sys_path, O_WRONLY); in trigger_fw()
57 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
/openbmc/qemu/tests/unit/
H A Dtest-io-channel-file.c78 test_io_channel_file_helper(O_WRONLY | O_CREAT | O_TRUNC | O_BINARY); in test_io_channel_file()
91 fd = open(TEST_FILE, O_CREAT | O_TRUNC | O_WRONLY, 0600); in test_io_channel_fd()
/openbmc/linux/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c70 fd = open(filename, O_WRONLY); in vmaybe_write_file()
165 int fd = open(add_uid_whitelist_policy_file, O_WRONLY); in ensure_securityfs_mounted()
189 fd = open(add_uid_whitelist_policy_file, O_WRONLY); in write_uid_policies()
213 fd = open(add_gid_whitelist_policy_file, O_WRONLY); in write_gid_policies()
/openbmc/linux/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/openbmc/linux/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/openbmc/qemu/backends/tpm/
H A Dtpm_passthrough.c218 fd = qemu_open_old(tpm_pt->options->cancel_path, O_WRONLY); in tpm_passthrough_open_sysfs_cancel()
236 fd = qemu_open_old(path, O_WRONLY); in tpm_passthrough_open_sysfs_cancel()
240 fd = qemu_open_old(path, O_WRONLY); in tpm_passthrough_open_sysfs_cancel()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/beep/files/
H A D0001-beep-library-Make-it-compatible-with-c99.patch27 - const int fd = open(device_name, O_WRONLY);
28 + fd = open(device_name, O_WRONLY);
/openbmc/obmc-console/
H A Dlog-handler.c65 lh->fd = open(lh->log_filename, O_WRONLY | O_CREAT | O_TRUNC, 0644); in log_trim()
133 lh->fd = open(lh->log_filename, O_WRONLY | O_CREAT | O_APPEND, 0644); in log_create()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sysctl.c119 .open_flags = O_WRONLY,
142 .open_flags = O_WRONLY,
638 .open_flags = O_WRONLY,
708 .open_flags = O_WRONLY,
758 .open_flags = O_WRONLY,
797 .open_flags = O_WRONLY,
866 .open_flags = O_WRONLY,
1378 .open_flags = O_WRONLY,
1523 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0017-img2simg-Add-support-for-converting-holes-to-don-t-c.patch95 - out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
96 + out = open(arg_out, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
/openbmc/linux/tools/power/cpupower/utils/helpers/
H A Dmsr.c61 fd = open(msr_file_name, O_WRONLY); in write_msr()
/openbmc/linux/tools/cgroup/
H A Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/openbmc/linux/fs/nfsd/
H A Dlockd.c41 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ; in nlm_fopen()
/openbmc/linux/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c58 fd = open(path, O_WRONLY); in write_file()
256 fd = open(testfile, O_CREAT|O_WRONLY, 0664); in split_file_backed_thp()
/openbmc/linux/arch/um/drivers/
H A Dtty.c50 mode = O_WRONLY; in tty_open()
/openbmc/linux/tools/testing/selftests/timens/
H A Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()

12345678910