Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/openbmc/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c170 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
183 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
203 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
212 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
215 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
232 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.cpp73 assert(flags == O_RDWR); in getPartitionFilePath()
118 if (!(flags == O_RDONLY || flags == O_RDWR)) in fulfil()
122 << std::hex << O_RDWR << " for flags, got: 0x" << std::hex << flags; in fulfil()
135 int mprot = PROT_READ | ((flags == O_RDWR) ? PROT_WRITE : 0); in fulfil()
/openbmc/qemu/net/
H A Dtap-solaris.c87 ip_fd = RETRY_ON_EINTR(open("/dev/udp", O_RDWR, 0)); in tap_alloc()
93 tap_fd = RETRY_ON_EINTR(open("/dev/tap", O_RDWR, 0)); in tap_alloc()
107 if_fd = RETRY_ON_EINTR(open("/dev/tap", O_RDWR, 0)); in tap_alloc()
140 arp_fd = RETRY_ON_EINTR(open("/dev/tap", O_RDWR, 0)); in tap_alloc()
H A Dtap-bsd.c59 fd = RETRY_ON_EINTR(open(dname, O_RDWR)); in tap_open()
114 fd = RETRY_ON_EINTR(open(PATH_NET_TAP, O_RDWR)); in tap_open_clone()
162 fd = RETRY_ON_EINTR(open(dname, O_RDWR)); in tap_open()
/openbmc/openbmc/poky/meta/recipes-extended/shadow/files/
H A Dcommonio.c-fix-unexpected-open-failure-in-chroot-env.patch31 - (db->readonly ? O_RDONLY : O_RDWR)
36 + (true ? O_RDONLY : O_RDWR)
41 + (false ? O_RDONLY : O_RDWR)
/openbmc/qemu/util/
H A Ddrm.c32 return open(rendernode, O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK); in qemu_drm_rendernode_open()
48 r = open(p, O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK); in qemu_drm_rendernode_open()
/openbmc/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c95 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first()
238 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
306 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
343 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
388 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
467 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
523 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
587 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
/openbmc/linux/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c50 fd = open(name, O_RDWR); in open_vgem()
100 fd = open(buf, O_RDWR); in dmabuf_heap_open()
130 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc()
313 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
345 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
426 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/openbmc/phosphor-ipmi-flash/tools/
H A Dio.cpp57 devMemFd = sys->open(devMemPath.c_str(), O_RDWR); in write()
112 ppcMemFd = sys->open(ppcMemPath.c_str(), O_RDWR); in read()
136 ppcMemFd = sys->open(ppcMemPath.c_str(), O_RDWR); in write()
/openbmc/linux/tools/testing/selftests/user_events/
H A Dftrace_test.c132 fd = open(data_file, O_RDWR); in clear()
171 fd = open(data_file, O_RDWR); in check_print_fmt()
216 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
271 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
338 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
376 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
414 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
457 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
H A Dabi_test.c29 int fd = open(enable_file, O_RDWR); in change_event()
53 int fd = open(data_file, O_RDWR); in reg_enable()
75 int fd = open(data_file, O_RDWR); in reg_disable()
/openbmc/qemu/backends/
H A Dhostmem-epc.c32 fd = qemu_open("/dev/sgx_vepc", O_RDWR, errp); in sgx_epc_backend_memory_alloc()
70 int fd = qemu_open_old("/dev/sgx_vepc", O_RDWR); in register_types()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/byacc/byacc/
H A Dbyacc-open.patch21 - fd = open(name, O_CREAT | O_EXCL | O_RDWR);
22 + fd = open(name, O_CREAT | O_EXCL | O_RDWR, 0666);
/openbmc/qemu/migration/
H A Dexec.c52 ioc = QIO_CHANNEL(qio_channel_command_new_spawn(args, O_RDWR, errp)); in exec_start_outgoing_migration()
79 ioc = QIO_CHANNEL(qio_channel_command_new_spawn(args, O_RDWR, errp)); in exec_start_incoming_migration()
/openbmc/qemu/chardev/
H A Dchar-pipe.c134 fd_in = RETRY_ON_EINTR(qemu_open_old(filename_in, O_RDWR | O_BINARY)); in qemu_chr_open_pipe()
135 fd_out = RETRY_ON_EINTR(qemu_open_old(filename_out, O_RDWR | O_BINARY)); in qemu_chr_open_pipe()
146 qemu_open_old(filename, O_RDWR | O_BINARY) in qemu_chr_open_pipe()
/openbmc/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c216 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem()
290 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
298 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_uboot_glue.c287 O_CREAT | O_RDWR | O_TRUNC, in make_a_file()
316 h = yaffs_open(fn, O_RDWR, 0); in read_a_file()
370 h = yaffs_open(fn, O_RDWR, 0); in cmd_yaffs_mread_file()
387 outh = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in cmd_yaffs_mwrite_file()
H A Dyportenv.h105 #ifndef O_RDWR
106 #define O_RDWR 02 macro
/openbmc/linux/tools/testing/selftests/kcmp/
H A Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
94 fd2 = open(kpath, O_RDWR); in main()
/openbmc/hiomapd/vpnor/
H A Dpartition.cpp86 assert(flags == O_RDWR); in getPartitionFilePath()
198 fs::path path = getPartitionFilePath(O_RDWR); in write()
204 int fd = ::open(path.c_str(), O_RDWR); in write()
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dlpc_nuvoton.cpp50 mappedFd = sys->open(devmem, O_RDWR | O_SYNC); in open()
158 if ((fd = sys->open("/dev/mem", O_RDWR | O_SYNC)) == -1) in mapWindow()
/openbmc/linux/fs/ecryptfs/
H A Dkthread.c63 (O_RDWR | O_LARGEFILE), current_cred()); in ecryptfs_threadfn()
134 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open()
/openbmc/qemu/ui/
H A Dudmabuf.c24 udmabuf = open("/dev/udmabuf", O_RDWR); in udmabuf_fd()
/openbmc/linux/tools/testing/selftests/landlock/
H A Dfs_test.c806 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
846 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
880 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
886 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
943 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
968 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1146 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1159 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1170 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
3244 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
[all …]
/openbmc/linux/Documentation/userspace-api/media/dvb/
H A Dca-fopen.rst39 - - ``O_RDWR``
59 Only one user can open the CA Device in ``O_RDWR`` mode. All other

12345678910>>...19