/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_open_test.c | 43 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 D | posix_fs_read_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 71 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 98 int32_t fd = open(tmpFileName, O_CREAT | O_WRONLY);
|
H A D | posix_fs_fstat_test.c | 45 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 D | posix_fs_ftruncate_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 113 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 137 int32_t fd = open(tmpFileName, O_CREAT | O_RDONLY, TEST_MODE_HIGH);
|
H A D | posix_fs_pwrite_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 71 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 99 int32_t fd = open(tmpFileName, O_CREAT | O_RDONLY, TEST_MODE_HIGH);
|
H A D | posix_fs_pread_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 71 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 99 int32_t fd = open(tmpFileName, O_CREAT | O_WRONLY, TEST_MODE_HIGH);
|
H A D | posix_fs_write_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 71 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 102 int32_t fd = open(tmpFileName, O_CREAT | O_RDONLY);
|
H A D | posix_fs_lseek_test.c | 47 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);
|
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/ |
H A D | mqueue_func_test.c | 112 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); 152 queueOther = mq_open(qName, O_CREAT | O_EXCL, 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); 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_RDW [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 163 /* O_TMPFILE is incompatible with O_PATH and O_CREAT. */ in test_openat2_flags() 166 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags() 167 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 179 { .name = "incompatible flags (O_PATH | O_CREAT)", in test_openat2_flags() 180 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 195 { .name = "valid how.mode and O_CREAT", in test_openat2_flags() 196 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags() 200 { .name = "invalid how.mode and O_CREAT", in test_openat2_flags() 201 .how.flags = O_CREAT, in test_openat2_flags() 203 { .name = "invalid (very large) how.mode and O_CREAT", in test_openat2_flags() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 167 /* O_TMPFILE is incompatible with O_PATH and O_CREAT. */ in test_openat2_flags() 170 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags() 171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 183 { .name = "incompatible flags (O_PATH | O_CREAT)", in test_openat2_flags() 184 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags() 199 { .name = "valid how.mode and O_CREAT", in test_openat2_flags() 200 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags() 204 { .name = "invalid how.mode and O_CREAT", in test_openat2_flags() 205 .how.flags = O_CREAT, in test_openat2_flags() 207 { .name = "invalid (very large) how.mode and O_CREAT", in test_openat2_flags() [all...] |
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
H A D | mq_exp_test.c | 63 queue = mq_open(qName, O_CREAT | O_RDWR | O_NONBLOCK, S_IRUSR | S_IWUSR, &attr); 106 queue = mq_open(qName, O_CREAT | O_WRONLY | 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); 197 queue = mq_open(qName, O_CREAT | O_RDONLY | 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); 380 queue = mq_open(qName, O_CREAT | O_WRONL [all...] |
/kernel/linux/linux-5.10/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 22 #ifndef O_CREAT 23 #define O_CREAT 00000100 /* not fcntl */ macro 93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/kernel/linux/linux-5.10/include/uapi/asm-generic/ |
H A D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro 94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 13 #ifndef O_CREAT 14 #define O_CREAT 00000100 macro 66 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 27 #ifndef O_CREAT 28 #define O_CREAT 00000100 macro 80 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/ |
H A D | fcntl.h | 27 #ifndef O_CREAT 28 #define O_CREAT 00000100 macro 80 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
H A D | posix_fs_full_test.c | 55 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/fs/cifs/ |
H A D | dir.c | 326 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create() 328 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create() 330 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create() 486 if (!(oflags & O_CREAT)) { in cifs_atomic_open() 535 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_atomic_open() 581 unsigned oflags = O_EXCL | O_CREAT | O_RDW in cifs_create() [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | dir.c | 281 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) 283 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) 285 else if ((oflags & O_CREAT) == O_CREAT) 446 if (!(oflags & O_CREAT)) { 494 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) 545 unsigned oflags = O_EXCL | O_CREAT | O_RDW [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/fs/ |
H A D | posix_fs_func_test.c | 267 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_RDW [all...] |
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
H A D | sys_test_027.cpp | 46 fd = open(str1, O_CREAT); in TestCase() 50 fd = open(str2, O_CREAT); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_devices_009.cpp | 55 fd = open(test_dev.c_str(), O_RDONLY|O_CREAT); in ItProcessPlimitsDevices009() 59 fd = open(test_dev.c_str(), O_WRONLY|O_CREAT); in ItProcessPlimitsDevices009()
|
/kernel/liteos_m/testsuites/sample/posix/mqueue/ |
H A D | It_posix_queue_008.c | 43 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 D | It_posix_queue_007.c | 44 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()
|