Lines Matching refs:path
309 INLINE static int fs__capture_path(uv_fs_t* req, const char* path, in fs__capture_path() argument
319 assert(new_path == NULL || path != NULL); in fs__capture_path()
321 if (path != NULL) { in fs__capture_path()
322 pathw_len = uv_wtf8_length_as_utf16(path); in fs__capture_path()
328 if (path != NULL && copy_path) { in fs__capture_path()
329 path_len = 1 + strlen(path); in fs__capture_path()
344 req->path = NULL; in fs__capture_path()
355 if (path != NULL) { in fs__capture_path()
356 uv_wtf8_to_utf16(path, pos, pathw_len); in fs__capture_path()
371 req->path = path; in fs__capture_path()
372 if (path != NULL && copy_path) { in fs__capture_path()
373 memcpy(pos, path, path_len); in fs__capture_path()
375 req->path = (char*) pos; in fs__capture_path()
394 req->path = NULL; in uv__fs_req_init()
1242 char* path; in fs__mktemp() local
1244 path = (char*)req->path; in fs__mktemp()
1267 len = strlen(path); in fs__mktemp()
1268 wcstombs(path + len - num_x, ep - num_x, num_x); in fs__mktemp()
1277 path[0] = '\0'; in fs__mktemp()
1688 INLINE static fs__stat_path_return_t fs__stat_path(WCHAR* path, in fs__stat_path() argument
1698 if (!pGetFileInformationByName(path, FileStatBasicByNameInfo, &stat_info, in fs__stat_path()
1945 INLINE static DWORD fs__stat_impl_from_path(WCHAR* path, in fs__stat_impl_from_path() argument
1953 switch (fs__stat_path(path, statbuf, do_lstat)) { in fs__stat_impl_from_path()
1967 handle = CreateFileW(path, in fs__stat_impl_from_path()
2406 INLINE static DWORD fs__utime_impl_from_path(WCHAR* path, in fs__utime_impl_from_path() argument
2419 handle = CreateFileW(path, in fs__utime_impl_from_path()
2503 static void fs__create_junction(uv_fs_t* req, const WCHAR* path, in fs__create_junction() argument
2516 target_len = wcslen(path); in fs__create_junction()
2517 is_long_path = wcsncmp(path, LONG_PATH_PREFIX, LONG_PATH_PREFIX_LEN) == 0; in fs__create_junction()
2522 is_absolute = target_len >= 3 && IS_LETTER(path[0]) && in fs__create_junction()
2523 path[1] == L':' && IS_SLASH(path[2]); in fs__create_junction()
2556 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) { in fs__create_junction()
2557 if (IS_SLASH(path[i])) { in fs__create_junction()
2567 path_buf[path_buf_len++] = path[i]; in fs__create_junction()
2583 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) { in fs__create_junction()
2584 if (IS_SLASH(path[i])) { in fs__create_junction()
2594 path_buf[path_buf_len++] = path[i]; in fs__create_junction()
3010 req->path = NULL; in uv_fs_req_cleanup()
3020 int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, in uv_fs_open() argument
3025 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_open()
3110 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_unlink() argument
3115 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_unlink()
3125 int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, in uv_fs_mkdir() argument
3130 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_mkdir()
3175 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_rmdir() argument
3179 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_rmdir()
3189 int uv_fs_scandir(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, in uv_fs_scandir() argument
3194 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_scandir()
3206 const char* path, in uv_fs_opendir() argument
3211 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_opendir()
3249 int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_link() argument
3254 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_link()
3264 int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_symlink() argument
3269 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_symlink()
3280 int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_readlink() argument
3285 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_readlink()
3295 int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_realpath() argument
3301 if (!path) { in uv_fs_realpath()
3306 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_realpath()
3316 int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_chown() argument
3321 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_chown()
3338 int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_lchown() argument
3343 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lchown()
3353 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_stat() argument
3357 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_stat()
3367 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_lstat() argument
3371 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lstat()
3388 int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_rename() argument
3393 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_rename()
3428 const char* path, in uv_fs_copyfile() argument
3443 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_copyfile()
3467 const char* path, in uv_fs_access() argument
3473 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_access()
3484 int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, in uv_fs_chmod() argument
3489 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_chmod()
3509 int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_utime() argument
3514 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_utime()
3535 int uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_lutime() argument
3540 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lutime()
3554 const char* path, in uv_fs_statfs() argument
3559 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_statfs()