Home
last modified time | relevance | path

Searched refs:FS_O_CREATE (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_open_flags.c128 ZOPEN(ts, FS_O_CREATE, 0); \
167 ZOPEN(&ts, FS_O_CREATE | 0, 0); in test_fs_open_flags()
179 ZOPEN(&ts, FS_O_CREATE | FS_O_READ, 0); in test_fs_open_flags()
192 ZOPEN(&ts, FS_O_CREATE | FS_O_WRITE, 0); in test_fs_open_flags()
205 ZOPEN(&ts, FS_O_CREATE | FS_O_RDWR, 0); in test_fs_open_flags()
328 ZOPEN(&ts, FS_O_CREATE | FS_O_TRUNC, -EACCES); in test_fs_open_flags()
334 ZOPEN(&ts, FS_O_CREATE | FS_O_WRITE | FS_O_TRUNC, 0); in test_fs_open_flags()
401 ZOPEN(&ts, FS_O_CREATE | FS_O_WRITE, 0); in test_fs_open_flags()
417 ZOPEN(&ts, FS_O_CREATE | FS_O_WRITE, 0); in test_fs_open_flags()
434 ZOPEN(&ts, FS_O_CREATE | FS_O_WRITE, 0); in test_fs_open_flags()
[all …]
Dtest_fs_mount_flags.c42 ret = fs_open(&fs, "/sml/some", FS_O_CREATE); in test_fs_mount_flags()
59 ret = fs_open(&fs, "/sml/nosome", FS_O_CREATE); in test_fs_mount_flags()
67 ret = fs_open(&fs, "/sml/other", FS_O_CREATE); in test_fs_mount_flags()
Dtest_fs_basic.c34 FS_O_CREATE | FS_O_RDWR), in create_write_hello()
99 FS_O_CREATE | FS_O_RDWR), in verify_hello()
131 FS_O_CREATE | FS_O_RDWR), in seek_within_hello()
199 FS_O_CREATE | FS_O_RDWR), in truncate_hello()
290 FS_O_CREATE | FS_O_RDWR), in sync_goodbye()
354 FS_O_CREATE | FS_O_RDWR), in verify_goodbye()
Dtest_fs_mkfs.c63 ret = fs_open(&fs, some_file_path, FS_O_CREATE); in test_fs_mkfs_ops()
86 ret = fs_open(&fs, some_file_path, FS_O_CREATE); in test_fs_mkfs_ops()
Dtest_fs_util.c240 FS_O_CREATE | FS_O_RDWR); in testfs_build()
301 rc = fs_open(&file, pp->path, FS_O_CREATE | FS_O_RDWR); in check_layout_entry()
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs_mount_flags.c31 ret = fs_open(&fs, TEST_FS_MNTP"/some", FS_O_CREATE); in test_mount_flags()
49 ret = fs_open(&fs, TEST_FS_MNTP"/nosome", FS_O_CREATE); in test_mount_flags()
57 ret = fs_open(&fs, TEST_FS_MNTP"/other", FS_O_CREATE); in test_mount_flags()
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_dirops.c28 zassert_equal(fs_open(&file, "/sml/file1", FS_O_CREATE), 0, "Create file1 failed"); in ZTEST()
30 zassert_equal(fs_open(&file, "/sml/dir1/file2", FS_O_CREATE), 0, "Create file2 failed"); in ZTEST()
32 zassert_equal(fs_open(&file, "/sml/dir2/file3", FS_O_CREATE), 0, "Create file3 failed"); in ZTEST()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_rd_only_mount.c23 zassert_equal(fs_open(&fs, FATFS_MNTP"/testfile.txt", FS_O_CREATE), in test_prepare()
47 ret = fs_open(&fs, FATFS_MNTP"/nosome", FS_O_CREATE); in test_ops_on_rd()
Dtest_fat_file_reentrant.c47 res = fs_open(&filep, TEST_FILE, FS_O_CREATE | FS_O_RDWR); in test_reentrant_access()
73 res = fs_open(&filep, TEST_FILE, FS_O_CREATE | FS_O_RDWR); in test_reentrant_parallel_file_access()
148 res = fs_open(&filep2, TEST_FILE2, FS_O_CREATE | FS_O_RDWR); in tfile2_access()
Dtest_fat_dir.c38 res = fs_open(&filep, TEST_DIR_FILE, FS_O_CREATE | FS_O_RDWR); in test_mkdir()
Dtest_fat_rename.c31 res = fs_open(&fp, path, FS_O_CREATE | FS_O_RDWR); in create_file()
/Zephyr-latest/tests/lib/c_lib/stdio/src/
Dmain.c41 zassert_equal(fs_open(&file, TEST_FILE, FS_O_CREATE), 0, in ZTEST()
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c154 rc = fs_open(&file, path, FS_O_CREATE | FS_O_RDWR); in fsutil_read_file()
177 rc = fs_open(&file, path, FS_O_CREATE | FS_O_RDWR); in fsutil_write_file()
/Zephyr-latest/tests/subsys/fs/multi-fs/src/
Dtest_common_file.c25 res = fs_open(filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_file_open()
Dtest_common_dir.c47 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir()
/Zephyr-latest/tests/subsys/fs/littlefs/src/
Dtest_lfs_perf.c81 rc = fs_open(&file, path.path, FS_O_CREATE | FS_O_RDWR); in write_read()
120 rc = fs_open(&file, path.path, FS_O_CREATE | FS_O_RDWR); in write_read()
/Zephyr-latest/subsys/settings/src/
Dsettings_file.c220 return fs_open(zfp, file_name, FS_O_CREATE | FS_O_RDWR); in settings_file_create_or_replace()
256 if (fs_open(&rf, cf->cf_name, FS_O_CREATE | FS_O_RDWR) != 0) { in settings_file_save_and_compress()
398 rc = fs_open(&file, cf->cf_name, FS_O_CREATE | FS_O_RDWR); in settings_file_save_priv()
/Zephyr-latest/lib/posix/options/
Dfs.c60 int mode = (mf & O_CREAT) ? FS_O_CREATE : 0; in posix_mode_to_zephyr()
108 rc = fs_open(&ptr->file, name, FS_O_CREATE | (mode & O_ACCMODE)); in zvfs_open()
/Zephyr-latest/samples/subsys/fs/fs_sample/src/
Dmain.c91 if (fs_open(&file, path, FS_O_CREATE) != 0) { in create_some_entries()
/Zephyr-latest/tests/lib/gui/lvgl/src/
Dmain.c146 ret = fs_open(&img, IMG_FILE_PATH, FS_O_CREATE | FS_O_WRITE); in setup_fs()
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat_dir.c43 res = fs_open(&filep, file, FS_O_CREATE | FS_O_RDWR); in test_mkdir()
/Zephyr-latest/include/zephyr/fs/
Dfs.h160 #define FS_O_CREATE 0x10 macro
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_fs.c346 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE | FS_O_APPEND); in allocate_new_file()
410 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE); in allocate_new_file()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c75 rc = fs_open(&file, fname, FS_O_CREATE | FS_O_RDWR); in littlefs_increase_infile_value()
184 rc = fs_open(&file, fname, FS_O_CREATE | FS_O_RDWR); in littlefs_binary_file_adj()
/Zephyr-latest/subsys/fs/ext2/
Dext2_ops.c40 (flags & FS_O_CREATE) != 0); in ext2_open()
49 if (flags & FS_O_CREATE) { in ext2_open()
66 if (flags & FS_O_CREATE && found_inode == NULL) { in ext2_open()

12