Lines Matching refs:dir
67 const WCHAR* dir, in uv__relative_path() argument
71 size_t dirlen = wcslen(dir); in uv__relative_path()
72 assert(!_wcsnicmp(filename, dir, dirlen)); in uv__relative_path()
73 if (dirlen > 0 && dir[dirlen - 1] == '\\') in uv__relative_path()
83 static int uv__split_path(const WCHAR* filename, WCHAR** dir, in uv__split_path() argument
89 if (dir != NULL) in uv__split_path()
90 *dir = NULL; in uv__split_path()
100 if (dir) { in uv__split_path()
105 *dir = (WCHAR*)uv__malloc(dir_len * sizeof(WCHAR)); in uv__split_path()
106 if (!*dir) { in uv__split_path()
110 if (!GetCurrentDirectoryW(dir_len, *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()
120 *dir = (WCHAR*)uv__malloc((i + 2) * sizeof(WCHAR)); in uv__split_path()
121 if (!*dir) { in uv__split_path()
124 wcsncpy(*dir, filename, i + 1); in uv__split_path()
125 (*dir)[i + 1] = L'\0'; in uv__split_path()
163 WCHAR* dir = NULL, *dir_to_watch, *pathw = NULL; in uv_fs_event_start() local
245 if (uv__split_path(pathw, &dir, &handle->filew) != 0) { in uv_fs_event_start()
255 dir_to_watch = dir; in uv_fs_event_start()
270 if (dir) { in uv_fs_event_start()
271 uv__free(dir); in uv_fs_event_start()
272 dir = NULL; in uv_fs_event_start()