Lines Matching defs:path

145 INLINE static int fs__capture_path(uv_fs_t* req, const char* path,
151 /* new_path can only be set if path is also set. */
152 assert(new_path == NULL || path != NULL);
154 if (path != NULL) {
157 path,
168 if (path != NULL && copy_path) {
169 path_len = 1 + strlen(path);
191 req->path = NULL;
202 if (path != NULL) {
205 path,
230 req->path = path;
231 if (path != NULL && copy_path) {
232 memcpy(pos, path, path_len);
234 req->path = pos;
254 req->path = NULL;
341 * path that CreateSymbolicLink will perform on absolute paths. If the path
364 /* \??\UNC\<server>\<share>\ - make sure the final path looks like
383 * understand such a path when returned by uv_readlink(). UNC paths are
424 /* Make sure it is an absolute path. */
624 * specified, it means the path referred to a directory. */
1168 * path refers to a non-symlink directory, report EPERM as mandated by
1250 char* path;
1252 path = (char*)req->path;
1275 len = strlen(path);
1276 wcstombs(path + len - num_x, ep - num_x, num_x);
1285 path[0] = '\0';
1586 /* Figure out whether path is a file or a directory. */
1863 INLINE static DWORD fs__stat_impl_from_path(WCHAR* path,
1874 handle = CreateFileW(path,
2282 INLINE static DWORD fs__utime_impl_from_path(WCHAR* path,
2295 handle = CreateFileW(path,
2379 static void fs__create_junction(uv_fs_t* req, const WCHAR* path,
2392 target_len = wcslen(path);
2393 is_long_path = wcsncmp(path, LONG_PATH_PREFIX, LONG_PATH_PREFIX_LEN) == 0;
2398 is_absolute = target_len >= 3 && IS_LETTER(path[0]) &&
2399 path[1] == L':' && IS_SLASH(path[2]);
2424 /* Copy the substitute (internal) target path */
2432 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) {
2433 if (IS_SLASH(path[i])) {
2443 path_buf[path_buf_len++] = path[i];
2455 /* Copy the print name of the target path */
2458 for (i = is_long_path ? LONG_PATH_PREFIX_LEN : 0; path[i] != L'\0'; i++) {
2459 if (IS_SLASH(path[i])) {
2469 path_buf[path_buf_len++] = path[i];
2644 /* convert UNC path to long path */
2879 req->path = NULL;
2889 int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags,
2894 err = fs__capture_path(req, path, NULL, cb != NULL);
2979 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path,
2984 err = fs__capture_path(req, path, NULL, cb != NULL);
2994 int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode,
2999 err = fs__capture_path(req, path, NULL, cb != NULL);
3044 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
3048 err = fs__capture_path(req, path, NULL, cb != NULL);
3058 int uv_fs_scandir(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags,
3063 err = fs__capture_path(req, path, NULL, cb != NULL);
3075 const char* path,
3080 err = fs__capture_path(req, path, NULL, cb != NULL);
3118 int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path,
3123 err = fs__capture_path(req, path, new_path, cb != NULL);
3133 int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path,
3138 err = fs__capture_path(req, path, new_path, cb != NULL);
3149 int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char* path,
3154 err = fs__capture_path(req, path, NULL, cb != NULL);
3164 int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char* path,
3170 if (!path) {
3175 err = fs__capture_path(req, path, NULL, cb != NULL);
3185 int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid,
3190 err = fs__capture_path(req, path, NULL, cb != NULL);
3207 int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid,
3212 err = fs__capture_path(req, path, NULL, cb != NULL);
3222 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
3226 err = fs__capture_path(req, path, NULL, cb != NULL);
3236 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
3240 err = fs__capture_path(req, path, NULL, cb != NULL);
3257 int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path,
3262 err = fs__capture_path(req, path, new_path, cb != NULL);
3297 const char* path,
3312 err = fs__capture_path(req, path, new_path, cb != NULL);
3336 const char* path,
3342 err = fs__capture_path(req, path, NULL, cb != NULL);
3353 int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode,
3358 err = fs__capture_path(req, path, NULL, cb != NULL);
3378 int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime,
3383 err = fs__capture_path(req, path, NULL, cb != NULL);
3404 int uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime,
3409 err = fs__capture_path(req, path, NULL, cb != NULL);
3423 const char* path,
3428 err = fs__capture_path(req, path, NULL, cb != NULL);