Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 - 25 of 738) sorted by relevance

12345678910>>...30

/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/
H A Dposix_fs_open_test.c43 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
49 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
71 int32_t fd = open(tmpFileName1, O_CREAT | O_RDWR);
75 fd = open(tmpFileName2, O_CREAT | O_RDWR);
94 fd = open(tmpFileName, O_CREAT | O_RDWR);
H A Dposix_fs_fstat_test.c45 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
127 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
154 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
H A Dposix_fs_lseek_test.c47 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
73 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
99 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
177 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
H A Dposix_fs_unlink_test.c43 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
65 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
/kernel/linux/build/test/unittest/accesstokenid/
H A Daccesstokenid_test.cpp88 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetTokenid()
107 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetTokenid()
126 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetfTokenid()
145 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetfTokenid()
368 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
388 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
408 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
428 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
450 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
480 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in HWTEST_F()
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/
H A Dmqueue_func_test.c112 mqueue = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
149 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL);
211 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
228 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
250 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL);
274 queue = mq_open(qName, O_RDWR, S_IRUSR | S_IWUSR, NULL);
302 queue[i] = mq_open(qName[i], O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL);
314 queue[i] = mq_open(qName[i], O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL);
340 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &setAttr);
378 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOC
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dopenat2_test.c165 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
167 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
177 { .name = "incompatible flags (O_PATH | O_RDWR)", in test_openat2_flags()
178 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
198 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
207 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
210 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
221 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dopenat2_test.c169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
181 { .name = "incompatible flags (O_PATH | O_RDWR)", in test_openat2_flags()
182 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
202 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
211 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
214 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
231 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
/kernel/liteos_m/testsuites/unittest/posix/src/fs/
H A Dposix_fs_func_test.c267 fd = open(TEST_FILE_PTAH_RIGHT, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
290 fd = open(TEST_FILE_PTAH_RIGHT, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
313 fd = open(TEST_FILE_PTAH_RIGHT, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
337 fd = open(TEST_FILE_PTAH_RIGHT, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1302 fd = open(TEST_FILE_PTAH_RIGHT, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1464 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1501 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1526 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1554 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
1581 fd = open(FILE1, O_CREAT | O_RDWR, TEST_MODE_NORMA
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/
H A Dposix_fs_full_test.c55 fd1 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
59 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
66 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
95 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
150 fd[i] = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
278 fd = open(tmpFileName, O_CREAT | O_RDWR);
320 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
348 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR);
412 int32_t fd = open(tmpFileName1, O_CREAT | O_RDWR, TEST_MODE_HIGH);
/kernel/linux/linux-5.10/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c49 fd = open(name, O_RDWR); in open_vgem()
99 fd = open(buf, O_RDWR); in dmabuf_heap_open()
129 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc()
234 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
266 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
346 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/
H A Dmq_exp_test.c63 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr);
142 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr);
173 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr);
235 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
286 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
319 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
359 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr);
420 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
475 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr);
511 queue = mq_open(qName, O_CREAT | O_RDWR, S_IRUS
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/build/test/fuzztest/accesstokenid/src/
H A Daccesstokenidcommon.cpp28 int fd = open(g_devaccesstokenid, O_RDWR); in GetTokenid()
43 int fd = open(g_devaccesstokenid, O_RDWR); in SetTokenid()
185 int fd = open(g_devaccesstokenid, O_RDWR); in GetfTokenid()
202 int fd = open(g_devaccesstokenid, O_RDWR); in SetfTokenid()
/kernel/liteos_m/testsuites/sample/posix/mqueue/
H A DIt_posix_queue_003.c48 mqueue1 = mq_open(mqname, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr); in Testcase()
51 mqueue2 = mq_open(mqname, O_RDWR | O_EXCL, S_IRUSR | S_IWUSR, &attr); in Testcase()
H A DIt_posix_queue_008.c43 mqueue = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
49 ICUNIT_GOTO_EQUAL(attr.mq_flags, O_CREAT | O_RDWR, attr.mq_flags, EXIT1); in Testcase()
H A DIt_posix_queue_007.c44 mqueue1 = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
50 mqueue2 = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
H A DIt_posix_queue_010.c43 mqueue1 = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
46 mqueue2 = mq_open(mqname, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIt_stdio_readv_001.cpp54 fd = open(pathname, O_CREAT | O_RDWR | O_TRUNC, 0666); // 0666, file authority in Testcase()
62 fd = open(pathname, O_RDWR); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/io/smoke/
H A DIO_test_008.cpp54 fd = open(file, O_CREAT | O_RDWR | O_TRUNC); in Testcase()
64 fd = open(file, O_RDWR); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_014.cpp44 mqueue = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
50 ICUNIT_GOTO_EQUAL(attr.mq_flags, O_CREAT | O_RDWR, attr.mq_flags, EXIT1); in Testcase()
H A DIt_posix_queue_016.cpp43 mqueue1 = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
46 mqueue2 = mq_open(mqname, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR, NULL); in Testcase()
H A DIt_posix_queue_127.cpp46 msgQId1 = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &msgAttr); in Testcase()
49 msgQId2 = mq_open(qName, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &msgAttr); in Testcase()
H A DIt_posix_queue_203.cpp49 mqueue1 = mq_open(mqname, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr); in Testcase()
52 mqueue2 = mq_open(mqname, O_RDWR | O_EXCL, S_IRUSR | S_IWUSR, &attr); in Testcase()

Completed in 11 milliseconds

12345678910>>...30