Lines Matching refs:pathw

355     req->file.pathw = NULL;  in fs__capture_path()
370 req->file.pathw = pos; in fs__capture_path()
373 req->file.pathw = NULL; in fs__capture_path()
581 file = CreateFileW(req->file.pathw, in fs__open()
1100 const WCHAR* pathw = req->file.pathw; in fs__unlink_rmdir() local
1109 handle = CreateFileW(pathw, in fs__unlink_rmdir()
1233 if (CreateDirectoryW(req->file.pathw, NULL)) { in fs__mkdir()
1258 len = wcslen(req->file.pathw); in fs__mktemp()
1259 ep = req->file.pathw + len; in fs__mktemp()
1296 if (CreateDirectoryW(req->file.pathw, NULL)) { in fs__mkdtemp_func()
1319 file = CreateFileW(req->file.pathw, in fs__mkstemp_func()
1397 CreateFileW(req->file.pathw, in fs__scandir()
1570 WCHAR* pathw; in fs__opendir() local
1576 pathw = req->file.pathw; in fs__opendir()
1581 if (!(GetFileAttributesW(pathw) & FILE_ATTRIBUTE_DIRECTORY)) { in fs__opendir()
1592 len = wcslen(pathw); in fs__opendir()
1596 else if (IS_SLASH(pathw[len - 1])) in fs__opendir()
1607 _snwprintf(find_path, len + 3, fmt, pathw); in fs__opendir()
1946 INLINE static void fs__stat_prepare_path(WCHAR* pathw) { in fs__stat_prepare_path() argument
1947 size_t len = wcslen(pathw); in fs__stat_prepare_path()
1950 if (len > 1 && pathw[len - 2] != L':' && in fs__stat_prepare_path()
1951 (pathw[len - 1] == L'\\' || pathw[len - 1] == L'/')) { in fs__stat_prepare_path()
1952 pathw[len - 1] = '\0'; in fs__stat_prepare_path()
2180 error = fs__stat_impl_from_path(req->file.pathw, do_lstat, &req->statbuf); in fs__stat_impl()
2232 fs__stat_prepare_path(req->file.pathw); in fs__stat()
2238 fs__stat_prepare_path(req->file.pathw); in fs__lstat()
2267 if (!MoveFileExW(req->file.pathw, req->fs.info.new_pathw, MOVEFILE_REPLACE_EXISTING)) { in fs__rename()
2392 if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) { in fs__copyfile()
2402 if (fs__stat_impl_from_path(req->file.pathw, 0, &statbuf) != 0 || in fs__copyfile()
2462 DWORD attr = GetFileAttributesW(req->file.pathw); in fs__access()
2488 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod()
2631 error = fs__utime_impl_from_path(req->file.pathw, in fs__utime_impl()
2684 DWORD r = CreateHardLinkW(req->fs.info.new_pathw, req->file.pathw, NULL); in fs__link()
2864 WCHAR* pathw; in fs__symlink() local
2869 pathw = req->file.pathw; in fs__symlink()
2873 fs__create_junction(req, pathw, new_pathw); in fs__symlink()
2882 if (CreateSymbolicLinkW(new_pathw, pathw, flags)) { in fs__symlink()
2907 handle = CreateFileW(req->file.pathw, in fs__readlink()
2989 handle = CreateFileW(req->file.pathw, in fs__realpath()
3035 WCHAR* pathw; in fs__statfs() local
3037 pathw = req->file.pathw; in fs__statfs()
3039 if (0 == GetDiskFreeSpaceW(pathw, in fs__statfs()
3051 is_second = pathw != req->file.pathw; in fs__statfs()
3054 uv__free(pathw); in fs__statfs()
3061 pathw = uv__malloc(len * sizeof(*pathw)); in fs__statfs()
3062 if (pathw == NULL) { in fs__statfs()
3067 ret = GetFullPathNameW(req->file.pathw, in fs__statfs()
3069 pathw, in fs__statfs()
3072 uv__free(pathw); in fs__statfs()
3077 pathw = uv__reallocf(pathw, len * sizeof(*pathw)); in fs__statfs()
3078 if (pathw == NULL) { in fs__statfs()
3089 if (pathw != req->file.pathw) { in fs__statfs()
3090 uv__free(pathw); in fs__statfs()
3185 uv__free(req->file.pathw); in uv_fs_req_cleanup()
3200 req->file.pathw = NULL; in uv_fs_req_cleanup()