Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-fs-readdir.c58 uv_dir_t* dir; in empty_readdir_cb() local
64 dir = req->ptr; in empty_readdir_cb()
74 uv_dir_t* dir; in empty_opendir_cb() local
81 dir = req->ptr; in empty_opendir_cb()
86 dir, in empty_opendir_cb()
104 uv_dir_t* dir; in TEST_IMPL() local
283 uv_dir_t* dir; in non_empty_readdir_cb() local
287 dir = req->ptr; in non_empty_readdir_cb()
323 uv_dir_t* dir; in non_empty_opendir_cb() local
331 dir = req->ptr; in non_empty_opendir_cb()
[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.c1503 uv_dir_t* dir; in fs__opendir() local
1506 dir = NULL; in fs__opendir()
1515 dir = uv__malloc(sizeof(*dir)); in fs__opendir()
1537 dir->dir_handle = FindFirstFileW(find_path, &dir->find_data); in fs__opendir()
1547 req->ptr = dir; in fs__opendir()
1552 uv__free(dir); in fs__opendir()
1558 uv_dir_t* dir; in fs__readdir() local
1567 dir = req->ptr; in fs__readdir()
1569 memset(dirents, 0, dir->nentries * sizeof(*dir->dirents)); in fs__readdir()
1622 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.c598 uv_dir_t* dir; in uv__fs_opendir() local
600 dir = uv__malloc(sizeof(*dir)); in uv__fs_opendir()
604 dir->dir = opendir(req->path); in uv__fs_opendir()
605 if (dir->dir == NULL) in uv__fs_opendir()
612 uv__free(dir); in uv__fs_opendir()
618 uv_dir_t* dir; in uv__fs_readdir() local
631 res = readdir(dir->dir); in uv__fs_readdir()
668 if (dir->dir != NULL) { in uv__fs_closedir()
669 closedir(dir->dir); in uv__fs_closedir()
670 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.c780 int uv_chdir(const char* dir) { in uv_chdir() argument
781 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.rst289 .. c:function:: int uv_fs_closedir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb)
291 Closes the directory stream represented by `dir` and frees the memory
296 .. c:function:: int uv_fs_readdir(uv_loop_t* loop, uv_fs_t* req, uv_dir_t* dir, uv_fs_cb cb)
298 Iterates over the directory stream, `dir`, returned by a successful
300 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.h1529 uv_dir_t* dir,
1533 uv_dir_t* dir,
1804 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 DChangeLog1977 * unix,win: add uv_fs_{open,read,close}dir() (cjihrig)

Completed in 108 milliseconds