Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/include/zephyr/posix/
Dfcntl.h11 #define O_CREAT 0x0040 macro
15 #define O_CREAT 0x0200 macro
/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c177 sem1 = sem_open("sem1", O_CREAT, 0, (CONFIG_POSIX_SEM_VALUE_MAX + 1)); in ZTEST()
183 sem1 = sem_open("sem1", O_CREAT, 0, 0); in ZTEST()
186 sem2 = sem_open("sem2", O_CREAT, 0, 0); in ZTEST()
195 new_sem1 = sem_open("sem1", i % 2 == 0 ? O_CREAT : 0, 0, 0); in ZTEST()
198 new_sem2 = sem_open("sem2", i % 2 == 0 ? O_CREAT : 0, 0, 0); in ZTEST()
211 zassert_equal_ptr((sem_open("sem1", O_CREAT | O_EXCL, 0, 0)), SEM_FAILED); in ZTEST()
262 different_sem1 = sem_open("sem1", O_CREAT, 0, 0); in ZTEST()
298 sem1 = sem_open("nsem", O_CREAT, 0, 0); in ZTEST()
/Zephyr-latest/lib/libc/armstdc/include/
Dfcntl.h10 #define O_CREAT 0x0200 macro
/Zephyr-latest/tests/posix/common/src/
Dmqueue.c73 int flags = O_RDWR | O_CREAT; in ZTEST()
130 int flags = O_RDWR | O_CREAT; in ZTEST()
179 int flags = O_RDWR | O_CREAT; in ZTEST()
211 int flags = O_RDWR | O_CREAT; in ZTEST()
251 int flags = O_RDWR | O_CREAT; in ZTEST()
/Zephyr-latest/lib/libc/arcmwdt/include/
Dfcntl.h23 #if O_NONBLOCK & (O_RDONLY | O_WRONLY | O_RDWR | O_NDELAY | O_CREAT | O_APPEND | O_TRUNC | O_EXCL)
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_dir.c33 res = open(TEST_DIR_FILE, O_CREAT | O_RDWR, 0770); in test_mkdir()
175 zassert_not_equal(open(TEST_DIR_FILE, O_CREAT | O_RDWR), -1, in ZTEST()
Dtest_fs_stat.c27 fh = open(filename, O_CREAT | O_WRONLY, 0440); in create_file()
Dtest_fs_open_flags.c63 fd = open(THE_FILE, O_CREAT | O_WRONLY, 0440); in test_file_open_flags()
239 fd = open(THE_FILE, O_CREAT | O_WRONLY, 0440); in test_file_open_flags()
Dtest_fs_file.c19 res = open(TEST_FILE, O_CREAT | O_RDWR, 0660); in test_file_open()
/Zephyr-latest/lib/posix/options/
Dfs.c60 int mode = (mf & O_CREAT) ? FS_O_CREATE : 0; in posix_mode_to_zephyr()
105 if (flags & O_CREAT) { in zvfs_open()
106 flags &= ~O_CREAT; in zvfs_open()
Dmqueue.c66 if ((oflags & O_CREAT) != 0) { in mq_open()
78 if ((name == NULL) || ((oflags & O_CREAT) != 0 && (msg_size <= 0 || in mq_open()
94 if ((msg_queue != NULL) && (oflags & O_CREAT) != 0 && in mq_open()
101 if ((msg_queue == NULL) && (oflags & O_CREAT) == 0) { in mq_open()
Dsemaphore.c258 if (((oflags & O_CREAT) != 0) && ((oflags & O_EXCL) != 0)) { in sem_open()
270 if ((oflags & O_CREAT) == 0) { in sem_open()
Ddevice_io.c67 if ((flags & O_CREAT) != 0) { in open()
Dshm.c306 bool creat = (oflag & O_CREAT) != 0; in shm_open()
/Zephyr-latest/drivers/flash/
Dflash_simulator_native.c53 *flash_fd = open(flash_file_path, O_RDWR | O_CREAT, (mode_t)0600); in flash_mock_init_native()
/Zephyr-latest/drivers/eeprom/
Deeprom_simulator_native.c49 *eeprom_fd = open(eeprom_file_path, O_RDWR | O_CREAT, (mode_t)0600); in eeprom_mock_init_native()
/Zephyr-latest/tests/posix/shm/src/
Dmain.c27 #define VALID_FLAGS (O_RDWR | O_CREAT)
29 #define OPEN_FLAGS (VALID_FLAGS & ~O_CREAT)
/Zephyr-latest/scripts/kconfig/
Dkconfiglib.py6433 sym_path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o644))