/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 170 .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 D | pnor_partition.cpp | 73 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 D | tap-solaris.c | 87 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 D | tap-bsd.c | 59 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/linux/tools/testing/selftests/iommu/ |
H A D | iommufd_fail_nth.c | 95 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 D | dmabuf-heap.c | 50 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/openbmc/poky/meta/recipes-extended/shadow/files/ |
H A D | commonio.c-fix-unexpected-open-failure-in-chroot-env.patch | 31 - (db->readonly ? O_RDONLY : O_RDWR) 36 + (true ? O_RDONLY : O_RDWR) 41 + (false ? O_RDONLY : O_RDWR)
|
/openbmc/linux/tools/testing/selftests/user_events/ |
H A D | ftrace_test.c | 132 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 D | abi_test.c | 29 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()
|
H A D | dyn_test.c | 69 int fd = open(abi_file, O_RDWR); in parse() 95 int fd = open(abi_file, O_RDWR); in check_match()
|
/openbmc/qemu/util/ |
H A D | drm.c | 32 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/phosphor-ipmi-flash/tools/ |
H A D | io.cpp | 57 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/qemu/backends/ |
H A D | hostmem-epc.c | 32 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/qemu/chardev/ |
H A D | char-pipe.c | 134 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/openbmc/meta-openembedded/meta-oe/recipes-extended/byacc/byacc/ |
H A D | byacc-open.patch | 21 - 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 D | exec.c | 52 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/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 216 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 D | yaffs_uboot_glue.c | 287 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 D | yportenv.h | 105 #ifndef O_RDWR 106 #define O_RDWR 02 macro
|
/openbmc/hiomapd/vpnor/ |
H A D | partition.cpp | 86 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/linux/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 94 fd2 = open(kpath, O_RDWR); in main()
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 806 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK() 843 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 846 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 874 ASSERT_EQ(EACCES, test_open(file1_s1d1, 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() 930 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 936 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 943 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK() 955 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() [all …]
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | lpc_nuvoton.cpp | 50 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 D | kthread.c | 63 (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/linux/Documentation/userspace-api/media/dvb/ |
H A D | ca-fopen.rst | 39 - - ``O_RDWR`` 59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
|