Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 17 of 17) sorted by relevance

/libuv/test/
H A Dtest-fs-readdir.c59 uv_dir_t* dir; in empty_readdir_cb() local
65 dir = req->ptr; in empty_readdir_cb()
75 uv_dir_t* dir; in empty_opendir_cb() local
82 dir = req->ptr; in empty_opendir_cb()
105 uv_dir_t* dir; in TEST_IMPL() local
284 uv_dir_t* dir; in non_empty_readdir_cb() local
288 dir = req->ptr; in non_empty_readdir_cb()
324 uv_dir_t* dir; in non_empty_opendir_cb() local
351 uv_dir_t* dir; in TEST_IMPL() local
466 uv_dir_t* dir; in readdir_symlink_readdir_cb() local
[all …]
H A Dtest-tty-escape-sequence-processing.c234 if (dir == 0) { in make_expect_screen_erase()
840 int dir; in TEST_IMPL() local
852 dir = 0; in TEST_IMPL()
879 dir = 1; in TEST_IMPL()
892 dir = 2; in TEST_IMPL()
914 int dir; in TEST_IMPL() local
926 dir = 0; in TEST_IMPL()
953 dir = 1; in TEST_IMPL()
966 dir = 2; in TEST_IMPL()
1359 int dir; in TEST_IMPL()
[all …]
/libuv/src/win/
H A Dfs-event.c89 if (dir != NULL) in uv__split_path()
90 *dir = NULL; in uv__split_path()
100 if (dir) { in uv__split_path()
106 if (!*dir) { in uv__split_path()
111 uv__free(*dir); in uv__split_path()
112 *dir = NULL; in uv__split_path()
119 if (dir) { in uv__split_path()
121 if (!*dir) { in uv__split_path()
270 if (dir) { in uv_fs_event_start()
271 uv__free(dir); in uv_fs_event_start()
[all …]
H A Dprocess.c162 ((dir[0] == L'\\' || dir[0] == L'/') && in search_path_join_test()
163 (dir[1] == L'\\' || dir[1] == L'/'))) { in search_path_join_test()
166 } else if (dir_len >= 1 && (dir[0] == L'/' || dir[0] == L'\\')) { in search_path_join_test()
169 } else if (dir_len >= 2 && dir[1] == L':' && in search_path_join_test()
170 (dir_len < 3 || (dir[2] != L'/' && dir[2] != L'\\'))) { in search_path_join_test()
178 dir += 2; in search_path_join_test()
181 } else if (dir_len > 2 && dir[1] == L':') { in search_path_join_test()
203 wcsncpy(result_pos, dir, dir_len); in search_path_join_test()
257 result = search_path_join_test(dir, dir_len, in path_search_walk_ext()
267 result = search_path_join_test(dir, dir_len, in path_search_walk_ext()
[all …]
H A Dfs.c1561 uv_dir_t* dir; in fs__opendir() local
1564 dir = NULL; in fs__opendir()
1573 dir = uv__malloc(sizeof(*dir)); in fs__opendir()
1595 dir->dir_handle = FindFirstFileW(find_path, &dir->find_data); in fs__opendir()
1605 req->ptr = dir; in fs__opendir()
1610 uv__free(dir); in fs__opendir()
1616 uv_dir_t* dir; in fs__readdir() local
1625 dir = req->ptr; in fs__readdir()
1627 memset(dirents, 0, dir->nentries * sizeof(*dir->dirents)); in fs__readdir()
1680 uv_dir_t* dir; in fs__closedir() local
[all …]
H A Dtty.c1304 static int uv__tty_clear(uv_tty_t* handle, int dir, char entire_screen, in uv__tty_clear() argument
1317 if (dir == 0) { in uv__tty_clear()
1327 if (dir == 1) { in uv__tty_clear()
H A Dutil.c210 int uv_chdir(const char* dir) { in uv_chdir() argument
217 r = uv__convert_utf8_to_utf16(dir, &utf16_buffer); in uv_chdir()
/libuv/src/unix/
H A Dfs.c606 uv_dir_t* dir; in uv__fs_opendir() local
608 dir = uv__malloc(sizeof(*dir)); in uv__fs_opendir()
612 dir->dir = opendir(req->path); in uv__fs_opendir()
613 if (dir->dir == NULL) in uv__fs_opendir()
620 uv__free(dir); in uv__fs_opendir()
626 uv_dir_t* dir; in uv__fs_readdir() local
639 res = readdir(dir->dir); in uv__fs_readdir()
676 if (dir->dir != NULL) { in uv__fs_closedir()
677 closedir(dir->dir); in uv__fs_closedir()
678 dir->dir = NULL; in uv__fs_closedir()
[all …]
H A Daix.c508 static int uv__makedir_p(const char *dir) { in uv__makedir_p() argument
515 uv__strscpy(tmp, dir, sizeof(tmp)); in uv__makedir_p()
H A Dcore.c790 int uv_chdir(const char* dir) { in uv_chdir() argument
791 if (chdir(dir)) in uv_chdir()
/libuv/src/
H A Duv-common.c785 uv_dir_t* dir; in uv__fs_readdir_cleanup() local
792 dir = req->ptr; in uv__fs_readdir_cleanup()
793 dirents = dir->dirents; in uv__fs_readdir_cleanup()
/libuv/docs/src/
H A Dfs.rst299 .. c:function:: int uv_fs_closedir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb)
301 Closes the directory stream represented by `dir` and frees the memory
306 .. c:function:: int uv_fs_readdir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb)
308 Iterates over the directory stream, `dir`, returned by a successful
310 must set `dir->dirents` and `dir->nentries`, representing the array of
H A Dmisc.rst530 .. c:function:: int uv_chdir(const char* dir)
/libuv/include/uv/
H A Dunix.h171 DIR* dir;
/libuv/include/
H A Duv.h1532 uv_dir_t* dir,
1536 uv_dir_t* dir,
1807 UV_EXTERN int uv_chdir(const char* dir);
/libuv/docs/src/guide/
H A Dfilesystem.rst140 int uv_fs_readdir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb);
141 int uv_fs_closedir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb);
/libuv/
H A DChangeLog2228 * unix,win: add uv_fs_{open,read,close}dir() (cjihrig)

Completed in 65 milliseconds