Home
last modified time | relevance | path

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

/libuv/src/unix/
H A Dos390-syscalls.c37 const struct dirent **)) { in scandir()
38 struct dirent** nl; in scandir()
39 struct dirent** nl_copy; in scandir()
40 struct dirent* dirent; in scandir() local
53 dirent = readdir(mdir); in scandir()
54 if (!dirent) in scandir()
56 if (!filter || filter(dirent)) { in scandir()
57 struct dirent* copy; in scandir()
61 memcpy(copy, dirent, sizeof(*copy)); in scandir()
84 dirent = nl[--count]; in scandir()
[all …]
H A Dos390-syscalls.h61 int scandir(const char* maindir, struct dirent*** namelist,
62 int (*filter)(const struct dirent *),
63 int (*compar)(const struct dirent **,
64 const struct dirent **));
H A Dfs.c627 uv_dirent_t* dirent; in uv__fs_readdir() local
628 struct dirent* res; in uv__fs_readdir()
650 dirent = &dir->dirents[dirent_idx]; in uv__fs_readdir()
651 dirent->name = uv__strdup(res->d_name); in uv__fs_readdir()
653 if (dirent->name == NULL) in uv__fs_readdir()
656 dirent->type = uv__fs_get_dirent_type(res); in uv__fs_readdir()
/libuv/src/win/
H A Dfs.c1419 uv__dirent_t* dirent; in fs__scandir() local
1471 dirent = uv__malloc(sizeof *dirent + wtf8_len); in fs__scandir()
1472 if (dirent == NULL) in fs__scandir()
1475 dirents[dirents_used++] = dirent; in fs__scandir()
1478 wtf8 = &dirent->d_name[0]; in fs__scandir()
1484 dirent->d_type = UV__DT_CHAR; in fs__scandir()
1486 dirent->d_type = UV__DT_LINK; in fs__scandir()
1488 dirent->d_type = UV__DT_DIR; in fs__scandir()
1490 dirent->d_type = UV__DT_FILE; in fs__scandir()
/libuv/include/uv/
H A Dunix.h168 typedef struct dirent uv__dirent_t;
/libuv/docs/src/
H A Dfs.rst137 Type of dirent.
155 Cross platform (reduced) equivalent of ``struct dirent``.
/libuv/test/
H A Dtest-fs.c2622 uv_dirent_t dirent; in TEST_IMPL() local
2647 while (uv_fs_scandir_next(&req, &dirent) != UV_EOF) { in TEST_IMPL()
2648 if (dirent.type != UV_DIRENT_LINK) { in TEST_IMPL()
2655 dirent.name) < 0) { in TEST_IMPL()
/libuv/
H A DChangeLog4446 * windows: fix setting dirent types on uv_fs_scandir_next (Saúl Ibarra

Completed in 39 milliseconds