Lines Matching refs:path

110     req->path = NULL;                                                         \
119 assert(path != NULL); \
121 req->path = path; \
123 req->path = uv__strdup(path); \
124 if (req->path == NULL) \
133 req->path = path; \
138 path_len = strlen(path) + 1; \
140 req->path = uv__malloc(path_len + new_path_len); \
141 if (req->path == NULL) \
143 req->new_path = req->path + path_len; \
144 memcpy((void*) req->path, path, path_len); \
287 return mkdtemp((char*) req->path) ? 0 : -1;
318 char* path;
321 path = (char*) req->path;
322 path_length = strlen(path);
327 We want to avoid going to the fallback path in case
330 strcmp(path + path_length - pattern_size, pattern)) {
340 r = uv__mkostemp(path, O_CLOEXEC);
359 r = mkstemp(path);
376 path[0] = '\0';
383 return open(req->path, req->flags | O_CLOEXEC, req->mode);
390 r = open(req->path, req->flags, req->mode);
552 n = scandir(req->path, &dents, uv__fs_scandir_filter, uv__fs_scandir_sort);
579 dir->dir = opendir(req->path);
662 if (0 != statvfs(req->path, &buf))
666 if (0 != statfs(req->path, &buf))
696 static ssize_t uv__fs_pathmax_size(const char* path) {
699 pathmax = pathconf(path, _PC_PATH_MAX);
713 maxlen = uv__fs_pathmax_size(req->path);
718 ret = lstat(req->path, &st);
731 maxlen = uv__fs_pathmax_size(req->path);
742 len = os390_readlink(req->path, buf, maxlen);
744 len = readlink(req->path, buf, maxlen);
770 buf = realpath(req->path, NULL);
776 len = uv__fs_pathmax_size(req->path);
784 if (realpath(req->path, buf) == NULL) {
1147 return utimensat(AT_FDCWD, req->path, ts, 0);
1157 return utimes(req->path, tv);
1163 return utime(req->path, &buf);
1171 return __lchattr((char*) req->path, &atr, sizeof(atr));
1189 return utimensat(AT_FDCWD, req->path, ts, AT_SYMLINK_NOFOLLOW);
1198 return lutimes(req->path, tv);
1284 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL);
1511 const char* path,
1539 rc = uv__statx(dirfd, path, flags, mode, &statxbuf);
1590 static int uv__fs_stat(const char *path, uv_stat_t *buf) {
1594 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 0, buf);
1598 ret = stat(path, &pbuf);
1606 static int uv__fs_lstat(const char *path, uv_stat_t *buf) {
1610 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 1, buf);
1614 ret = lstat(path, &pbuf);
1715 X(ACCESS, access(req->path, req->flags));
1716 X(CHMOD, chmod(req->path, req->mode));
1717 X(CHOWN, chown(req->path, req->uid, req->gid));
1722 X(LCHOWN, lchown(req->path, req->uid, req->gid));
1729 X(LSTAT, uv__fs_lstat(req->path, &req->statbuf));
1730 X(LINK, link(req->path, req->new_path));
1731 X(MKDIR, mkdir(req->path, req->mode));
1742 X(RENAME, rename(req->path, req->new_path));
1743 X(RMDIR, rmdir(req->path));
1745 X(STAT, uv__fs_stat(req->path, &req->statbuf));
1747 X(SYMLINK, symlink(req->path, req->new_path));
1748 X(UNLINK, unlink(req->path));
1786 const char* path,
1798 const char* path,
1810 const char* path,
1857 const char* path,
1917 const char* path,
1929 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
1938 const char* path,
1949 const char* path,
1964 req->path = uv__strdup(tpl);
1965 if (req->path == NULL)
1976 req->path = uv__strdup(tpl);
1977 if (req->path == NULL)
1985 const char* path,
2027 const char* path,
2038 const char* path,
2073 const char* path,
2083 const char * path,
2093 const char* path,
2102 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2125 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2134 const char* path,
2145 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2154 const char* path,
2200 * Synchronous ones don't copy their arguments and have req->path and
2204 if (req->path != NULL &&
2207 uv__free((void*) req->path); /* Memory is shared with req->new_path. */
2209 req->path = NULL;
2230 const char* path,
2250 const char* path,