Lines Matching refs:path

287 INLINE static int fs__capture_path(uv_fs_t* req, const char* path,  in fs__capture_path()  argument
297 assert(new_path == NULL || path != NULL); in fs__capture_path()
299 if (path != NULL) { in fs__capture_path()
300 pathw_len = uv_wtf8_length_as_utf16(path); in fs__capture_path()
306 if (path != NULL && copy_path) { in fs__capture_path()
307 path_len = 1 + strlen(path); in fs__capture_path()
322 req->path = NULL; in fs__capture_path()
333 if (path != NULL) { in fs__capture_path()
334 uv_wtf8_to_utf16(path, pos, pathw_len); in fs__capture_path()
349 req->path = path; in fs__capture_path()
350 if (path != NULL && copy_path) { in fs__capture_path()
351 memcpy(pos, path, path_len); in fs__capture_path()
353 req->path = (char*) pos; in fs__capture_path()
372 req->path = NULL; in uv__fs_req_init()
1184 char* path; in fs__mktemp() local
1186 path = (char*)req->path; in fs__mktemp()
1209 len = strlen(path); in fs__mktemp()
1210 wcstombs(path + len - num_x, ep - num_x, num_x); in fs__mktemp()
1219 path[0] = '\0'; in fs__mktemp()
1813 INLINE static DWORD fs__stat_impl_from_path(WCHAR* path, in fs__stat_impl_from_path() argument
1824 handle = CreateFileW(path, in fs__stat_impl_from_path()
2263 INLINE static DWORD fs__utime_impl_from_path(WCHAR* path, in fs__utime_impl_from_path() argument
2276 handle = CreateFileW(path, in fs__utime_impl_from_path()
2360 static void fs__create_junction(uv_fs_t* req, const WCHAR* path, in fs__create_junction() argument
2373 target_len = wcslen(path); in fs__create_junction()
2374 is_long_path = wcsncmp(path, LONG_PATH_PREFIX, LONG_PATH_PREFIX_LEN) == 0; in fs__create_junction()
2379 is_absolute = target_len >= 3 && IS_LETTER(path[0]) && in fs__create_junction()
2380 path[1] == L':' && IS_SLASH(path[2]); in fs__create_junction()
2413 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) { in fs__create_junction()
2414 if (IS_SLASH(path[i])) { in fs__create_junction()
2424 path_buf[path_buf_len++] = path[i]; in fs__create_junction()
2439 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) { in fs__create_junction()
2440 if (IS_SLASH(path[i])) { in fs__create_junction()
2450 path_buf[path_buf_len++] = path[i]; in fs__create_junction()
2866 req->path = NULL; in uv_fs_req_cleanup()
2876 int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, in uv_fs_open() argument
2881 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_open()
2966 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_unlink() argument
2971 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_unlink()
2981 int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, in uv_fs_mkdir() argument
2986 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_mkdir()
3031 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_rmdir() argument
3035 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_rmdir()
3045 int uv_fs_scandir(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, in uv_fs_scandir() argument
3050 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_scandir()
3062 const char* path, in uv_fs_opendir() argument
3067 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_opendir()
3105 int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_link() argument
3110 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_link()
3120 int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_symlink() argument
3125 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_symlink()
3136 int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_readlink() argument
3141 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_readlink()
3151 int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_realpath() argument
3157 if (!path) { in uv_fs_realpath()
3162 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_realpath()
3172 int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_chown() argument
3177 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_chown()
3194 int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_lchown() argument
3199 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lchown()
3209 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_stat() argument
3213 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_stat()
3223 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_lstat() argument
3227 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lstat()
3244 int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, in uv_fs_rename() argument
3249 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_rename()
3284 const char* path, in uv_fs_copyfile() argument
3299 err = fs__capture_path(req, path, new_path, cb != NULL); in uv_fs_copyfile()
3323 const char* path, in uv_fs_access() argument
3329 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_access()
3340 int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, in uv_fs_chmod() argument
3345 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_chmod()
3365 int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_utime() argument
3370 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_utime()
3391 int uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_lutime() argument
3396 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_lutime()
3410 const char* path, in uv_fs_statfs() argument
3415 err = fs__capture_path(req, path, NULL, cb != NULL); in uv_fs_statfs()