Lines Matching refs:path

109     req->path = NULL;                                                         \
118 assert(path != NULL); \
120 req->path = path; \
122 req->path = uv__strdup(path); \
123 if (req->path == NULL) \
132 req->path = path; \
137 path_len = strlen(path) + 1; \
139 req->path = uv__malloc(path_len + new_path_len); \
140 if (req->path == NULL) \
142 req->new_path = req->path + path_len; \
143 memcpy((void*) req->path, path, path_len); \
306 return mkdtemp((char*) req->path) ? 0 : -1;
337 char* path;
340 path = (char*) req->path;
341 path_length = strlen(path);
346 We want to avoid going to the fallback path in case
349 strcmp(path + path_length - pattern_size, pattern)) {
360 r = uv__mkostemp(path, O_CLOEXEC);
379 r = mkstemp(path);
396 path[0] = '\0';
403 return open(req->path, req->flags | O_CLOEXEC, req->mode);
410 r = open(req->path, req->flags, req->mode);
499 n = scandir(req->path, &dents, uv__fs_scandir_filter, uv__fs_scandir_sort);
526 dir->dir = opendir(req->path);
609 if (0 != statvfs(req->path, &buf))
613 if (0 != statfs(req->path, &buf))
643 static ssize_t uv__fs_pathmax_size(const char* path) {
646 pathmax = pathconf(path, _PC_PATH_MAX);
660 maxlen = uv__fs_pathmax_size(req->path);
665 ret = uv__lstat(req->path, &st);
678 maxlen = uv__fs_pathmax_size(req->path);
689 len = os390_readlink(req->path, buf, maxlen);
691 len = readlink(req->path, buf, maxlen);
717 buf = realpath(req->path, NULL);
723 len = uv__fs_pathmax_size(req->path);
731 if (realpath(req->path, buf) == NULL) {
1057 return utimensat(AT_FDCWD, req->path, ts, 0);
1066 return utimes(req->path, tv);
1072 return utime(req->path, &buf);
1080 return __lchattr((char*) req->path, &atr, sizeof(atr));
1098 return utimensat(AT_FDCWD, req->path, ts, AT_SYMLINK_NOFOLLOW);
1106 return lutimes(req->path, tv);
1161 srcfd = uv_fs_open(NULL, &fs_req, req->path, O_RDONLY, 0, NULL);
1400 const char* path,
1428 rc = uv__statx(dirfd, path, flags, mode, &statxbuf);
1460 static int uv__fs_stat(const char *path, uv_stat_t *buf) {
1464 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 0, buf);
1468 ret = uv__stat(path, &pbuf);
1476 static int uv__fs_lstat(const char *path, uv_stat_t *buf) {
1480 ret = uv__fs_statx(-1, path, /* is_fstat */ 0, /* is_lstat */ 1, buf);
1484 ret = uv__lstat(path, &pbuf);
1585 X(ACCESS, access(req->path, req->flags));
1586 X(CHMOD, chmod(req->path, req->mode));
1587 X(CHOWN, chown(req->path, req->uid, req->gid));
1592 X(LCHOWN, lchown(req->path, req->uid, req->gid));
1599 X(LSTAT, uv__fs_lstat(req->path, &req->statbuf));
1600 X(LINK, link(req->path, req->new_path));
1601 X(MKDIR, mkdir(req->path, req->mode));
1612 X(RENAME, rename(req->path, req->new_path));
1613 X(RMDIR, rmdir(req->path));
1615 X(STAT, uv__fs_stat(req->path, &req->statbuf));
1617 X(SYMLINK, symlink(req->path, req->new_path));
1618 X(UNLINK, unlink(req->path));
1669 const char* path,
1681 const char* path,
1693 const char* path,
1743 const char* path,
1812 const char* path,
1824 int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
1836 const char* path,
1850 const char* path,
1868 req->path = uv__strdup(tpl);
1869 if (req->path == NULL)
1880 req->path = uv__strdup(tpl);
1881 if (req->path == NULL)
1889 const char* path,
1942 const char* path,
1953 const char* path,
1988 const char* path,
1998 const char * path,
2008 const char* path,
2020 int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2043 int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2055 const char* path,
2069 int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) {
2081 const char* path,
2132 * Synchronous ones don't copy their arguments and have req->path and
2136 if (req->path != NULL &&
2139 uv__free((void*) req->path); /* Memory is shared with req->new_path. */
2141 req->path = NULL;
2162 const char* path,
2182 const char* path,