Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/include/zephyr/posix/
Ddirent.h22 struct dirent { struct
30 struct dirent *readdir(DIR *dirp); argument
31 int readdir_r(DIR *ZRESTRICT dirp, struct dirent *ZRESTRICT entry,
32 struct dirent **ZRESTRICT result);
/Zephyr-latest/tests/posix/headers/src/
Ddirent_h.c25 zassert_not_equal(-1, offsetof(struct dirent, d_ino)); in ZTEST()
26 zassert_not_equal(-1, offsetof(struct dirent, d_name)); in ZTEST()
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_dir.c57 static struct dirent *readdir_wrap(DIR *dirp, bool thread_safe) in readdir_wrap()
60 struct dirent entry; in readdir_wrap()
61 struct dirent *result = NULL; in readdir_wrap()
75 struct dirent *entry; in test_lsdir()
/Zephyr-latest/lib/posix/options/
Dfile_system_r.c21 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) in readdir_r()
Dfs.c30 static struct dirent pdirent;
304 struct dirent *readdir(DIR *dirp) in readdir()
/Zephyr-latest/subsys/fs/
Dshell.c281 struct fs_dirent dirent; in cmd_read() local
304 err = fs_stat(path, &dirent); in cmd_read()
311 if (dirent.type != FS_DIR_ENTRY_FILE) { in cmd_read()
316 shell_print(sh, "File size: %zd", dirent.size); in cmd_read()
376 struct fs_dirent dirent; in cmd_cat() local
386 err = fs_stat(path, &dirent); in cmd_cat()
393 if (dirent.type != FS_DIR_ENTRY_FILE) { in cmd_cat()
551 struct fs_dirent dirent; in cmd_read_test() local
576 err = fs_stat(path, &dirent); in cmd_read_test()
583 if (dirent.type != FS_DIR_ENTRY_FILE) { in cmd_read_test()
[all …]
/Zephyr-latest/subsys/llext/
Dshell.c197 struct fs_dirent dirent; in cmd_llext_load_fs() local
199 res = fs_stat(argv[2], &dirent); in cmd_llext_load_fs()
205 if (dirent.type != FS_DIR_ENTRY_FILE) { in cmd_llext_load_fs()
/Zephyr-latest/samples/subsys/fs/littlefs/src/
Dmain.c173 struct fs_dirent dirent; in littlefs_binary_file_adj() local
190 rc = fs_stat(fname, &dirent); in littlefs_binary_file_adj()
197 if (rc == 0 && dirent.type == FS_DIR_ENTRY_FILE && dirent.size == 0) { in littlefs_binary_file_adj()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_core.c753 struct fs_dirent dirent; in http_server_find_file() local
757 ret = fs_stat(fname, &dirent); in http_server_find_file()
761 ret = fs_stat(fname, &dirent); in http_server_find_file()
766 *file_size = dirent.size; in http_server_find_file()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt.c149 struct fs_dirent dirent; in fs_mgmt_filelen() local
152 rc = fs_stat(path, &dirent); in fs_mgmt_filelen()
162 if (dirent.type != FS_DIR_ENTRY_FILE) { in fs_mgmt_filelen()
166 *out_len = dirent.size; in fs_mgmt_filelen()