Lines Matching refs:path
99 req->path = NULL; \
108 assert(path != NULL); \
110 req->path = path; \
112 req->path = uv__strdup(path); \
113 if (req->path == NULL) \
122 req->path = path; \
127 path_len = strlen(path) + 1; \
129 req->path = uv__malloc(path_len + new_path_len); \
130 if (req->path == NULL) \
132 req->new_path = req->path + path_len; \
133 memcpy((void*) req->path, path, path_len); \
275 return mkdtemp((char*) req->path) ? 0 : -1; in uv__fs_mkdtemp()
306 char* path; in uv__fs_mkstemp() local
309 path = (char*) req->path; in uv__fs_mkstemp()
310 path_length = strlen(path); in uv__fs_mkstemp()
318 strcmp(path + path_length - pattern_size, pattern)) { in uv__fs_mkstemp()
329 r = uv__mkostemp(path, O_CLOEXEC); in uv__fs_mkstemp()
348 r = mkstemp(path); in uv__fs_mkstemp()
365 path[0] = '\0'; in uv__fs_mkstemp()
372 return open(req->path, req->flags | O_CLOEXEC, req->mode); in uv__fs_open()
379 r = open(req->path, req->flags, req->mode); in uv__fs_open()
585 n = scandir(req->path, &dents, uv__fs_scandir_filter, uv__fs_scandir_sort); in uv__fs_scandir()
612 dir->dir = opendir(req->path); in uv__fs_opendir()
695 if (0 != statvfs(req->path, &buf)) in uv__fs_statfs()
699 if (0 != statfs(req->path, &buf)) in uv__fs_statfs()
729 static ssize_t uv__fs_pathmax_size(const char* path) { in uv__fs_pathmax_size() argument
732 pathmax = pathconf(path, _PC_PATH_MAX); in uv__fs_pathmax_size()
746 maxlen = uv__fs_pathmax_size(req->path); in uv__fs_readlink()
751 ret = uv__lstat(req->path, &st); in uv__fs_readlink()
764 maxlen = uv__fs_pathmax_size(req->path); in uv__fs_readlink()
775 len = os390_readlink(req->path, buf, maxlen); in uv__fs_readlink()
777 len = readlink(req->path, buf, maxlen); in uv__fs_readlink()
804 tmp = realpath(req->path, NULL); in uv__fs_realpath()
818 len = uv__fs_pathmax_size(req->path); in uv__fs_realpath()
826 if (realpath(req->path, buf) == NULL) { in uv__fs_realpath()
1155 return utimensat(AT_FDCWD, req->path, ts, 0); in uv__fs_utime()
1164 return utimes(req->path, tv); in uv__fs_utime()
1170 return utime(req->path, &buf); in uv__fs_utime()
1178 return __lchattr((char*) req->path, &atr, sizeof(atr)); in uv__fs_utime()
1196 return utimensat(AT_FDCWD, req->path, ts, AT_SYMLINK_NOFOLLOW); in uv__fs_lutime()
1204 return lutimes(req->path, tv); in uv__fs_lutime()
1260 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL); in uv__fs_copyfile()
1528 const char* path, in uv__fs_statx() argument
1556 rc = uv__statx(dirfd, path, flags, mode, &statxbuf); in uv__fs_statx()
1588 static int uv__fs_stat(const char *path, uv_stat_t *buf) { in uv__fs_stat() argument
1592 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 0, buf); in uv__fs_stat()
1596 ret = uv__stat(path, &pbuf); in uv__fs_stat()
1604 static int uv__fs_lstat(const char *path, uv_stat_t *buf) { in uv__fs_lstat() argument
1608 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 1, buf); in uv__fs_lstat()
1612 ret = uv__lstat(path, &pbuf); in uv__fs_lstat()
1713 X(ACCESS, access(req->path, req->flags)); in uv__fs_work()
1714 X(CHMOD, chmod(req->path, req->mode)); in uv__fs_work()
1715 X(CHOWN, chown(req->path, req->uid, req->gid)); in uv__fs_work()
1720 X(LCHOWN, lchown(req->path, req->uid, req->gid)); in uv__fs_work()
1727 X(LSTAT, uv__fs_lstat(req->path, &req->statbuf)); in uv__fs_work()
1728 X(LINK, link(req->path, req->new_path)); in uv__fs_work()
1729 X(MKDIR, mkdir(req->path, req->mode)); in uv__fs_work()
1740 X(RENAME, rename(req->path, req->new_path)); in uv__fs_work()
1741 X(RMDIR, rmdir(req->path)); in uv__fs_work()
1743 X(STAT, uv__fs_stat(req->path, &req->statbuf)); in uv__fs_work()
1745 X(SYMLINK, symlink(req->path, req->new_path)); in uv__fs_work()
1746 X(UNLINK, unlink(req->path)); in uv__fs_work()
1794 const char* path, in uv_fs_access() argument
1806 const char* path, in uv_fs_chmod() argument
1818 const char* path, in uv_fs_chown() argument
1868 const char* path, in uv_fs_lchown() argument
1940 const char* path, in uv_fs_lutime() argument
1952 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_lstat() argument
1964 const char* path, in uv_fs_link() argument
1978 const char* path, in uv_fs_mkdir() argument
1996 req->path = uv__strdup(tpl); in uv_fs_mkdtemp()
1997 if (req->path == NULL) in uv_fs_mkdtemp()
2008 req->path = uv__strdup(tpl); in uv_fs_mkstemp()
2009 if (req->path == NULL) in uv_fs_mkstemp()
2017 const char* path, in uv_fs_open() argument
2070 const char* path, in uv_fs_scandir() argument
2081 const char* path, in uv_fs_opendir() argument
2116 const char* path, in uv_fs_readlink() argument
2126 const char * path, in uv_fs_realpath() argument
2136 const char* path, in uv_fs_rename() argument
2148 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_rmdir() argument
2171 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_stat() argument
2183 const char* path, in uv_fs_symlink() argument
2197 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) { in uv_fs_unlink() argument
2209 const char* path, in uv_fs_utime() argument
2264 if (req->path != NULL && in uv_fs_req_cleanup()
2267 uv__free((void*) req->path); /* Memory is shared with req->new_path. */ in uv_fs_req_cleanup()
2269 req->path = NULL; in uv_fs_req_cleanup()
2290 const char* path, in uv_fs_copyfile() argument
2310 const char* path, in uv_fs_statfs() argument