Home
last modified time | relevance | path

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

1234567891011

/OK3568_Linux_fs/kernel/tools/testing/selftests/wireguard/qemu/
H A Dinit.c72 fd = open("/dev/urandom", O_WRONLY); in seed_rng()
113 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
119 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
125 fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); in enable_logging()
200 fd = open(success_dev, O_WRONLY); in launch_tests()
243 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks()
255 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
/OK3568_Linux_fs/yocto/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)
/OK3568_Linux_fs/buildroot/package/patch/
H A D0005-Don-t-follow-symlinks-unless--follow-symlinks-is-given.patch66 - while ((fd = safe_open (bakname, O_CREAT | O_WRONLY | O_TRUNC, 0666)) < 0)
67 + while ((fd = safe_open (bakname, O_CREAT | O_EXCL | O_WRONLY | O_TRUNC, 0666)) < 0)
92 tofd = create_file (to, O_WRONLY | O_BINARY | to_flags, mode,
99 + int to_flags = O_WRONLY | O_APPEND | O_BINARY;
102 - if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0)
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/beep/files/
H A Dlinux-input.patch110 - if((console_fd = open("/dev/console", O_WRONLY)) == -1) {
114 + console_fd = open(console_device, O_WRONLY);
116 + if((console_fd = open("/dev/input/event0", O_WRONLY)) == -1)
117 + if((console_fd = open("/dev/tty0", O_WRONLY)) == -1)
118 + console_fd = open("/dev/vc/0", O_WRONLY);
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/buildroot/package/duma/
H A D0004-Fix-build-with-latest-glibc.patch18 - fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY);
19 + fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY, 0600);
/OK3568_Linux_fs/kernel/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c58 fd = open(filename, O_WRONLY); in vmaybe_write_file()
125 int fd = open(add_whitelist_policy_file, O_WRONLY); in ensure_securityfs_mounted()
153 fd = open(add_whitelist_policy_file, O_WRONLY); in write_policies()
/OK3568_Linux_fs/u-boot/fs/yaffs2/
H A Dyportenv.h101 #ifndef O_WRONLY
102 #define O_WRONLY 01 macro
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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,
1529 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/OK3568_Linux_fs/kernel/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_watchdogrestart/
H A Dwatchdogrestart.c19 fd = open("/dev/watchdog", O_WRONLY); in main()
/OK3568_Linux_fs/kernel/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_watchdog/
H A Dwatchdog.c36 fd = open("/dev/watchdog", O_WRONLY); in main()
/OK3568_Linux_fs/kernel/tools/cgroup/
H A Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/OK3568_Linux_fs/kernel/Documentation/input/
H A Duinput.rst66 int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
129 int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
198 fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
/OK3568_Linux_fs/kernel/tools/testing/selftests/timens/
H A Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()
H A Dfutex.c80 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
/OK3568_Linux_fs/kernel/arch/um/drivers/
H A Dtty.c50 mode = O_WRONLY; in tty_open()
/OK3568_Linux_fs/kernel/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/OK3568_Linux_fs/kernel/tools/power/cpupower/utils/helpers/
H A Dmsr.c62 fd = open(msr_file_name, O_WRONLY); in write_msr()
/OK3568_Linux_fs/kernel/kernel/bpf/preload/iterators/
H A Diterators.c45 debug_fd = open("/dev/console", O_WRONLY | O_NOCTTY | O_CLOEXEC); in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/capabilities/
H A Dtest_execve.c49 fd = open(filename, O_WRONLY); in vmaybe_write_file()
160 int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700); in copy_fromat_to()
/OK3568_Linux_fs/kernel/kernel/power/
H A Duser.c85 data->mode = O_WRONLY; in snapshot_open()
317 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
/OK3568_Linux_fs/u-boot/board/samsung/smdkv310/tools/
H A Dmksmdkv310spl.c52 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main()

1234567891011