Lines Matching defs:buf

463     struct stat buf;
465 rc = uv__fstat(fd, &buf);
466 if (rc == 0 && S_ISDIR(buf.st_mode)) {
607 struct statvfs buf;
609 if (0 != statvfs(req->path, &buf))
611 struct statfs buf;
613 if (0 != statfs(req->path, &buf))
631 stat_fs->f_type = buf.f_type;
633 stat_fs->f_bsize = buf.f_bsize;
634 stat_fs->f_blocks = buf.f_blocks;
635 stat_fs->f_bfree = buf.f_bfree;
636 stat_fs->f_bavail = buf.f_bavail;
637 stat_fs->f_files = buf.f_files;
638 stat_fs->f_ffree = buf.f_ffree;
657 char* buf;
681 buf = uv__malloc(maxlen);
683 if (buf == NULL) {
689 len = os390_readlink(req->path, buf, maxlen);
691 len = readlink(req->path, buf, maxlen);
695 uv__free(buf);
701 buf = uv__reallocf(buf, len + 1);
703 if (buf == NULL)
707 buf[len] = '\0';
708 req->ptr = buf;
714 char* buf;
717 buf = realpath(req->path, NULL);
718 if (buf == NULL)
724 buf = uv__malloc(len + 1);
726 if (buf == NULL) {
731 if (realpath(req->path, buf) == NULL) {
732 uv__free(buf);
737 req->ptr = buf;
754 char buf[8192];
789 if (buflen > sizeof(buf))
790 buflen = sizeof(buf);
794 nread = pread(in_fd, buf, buflen, offset);
796 nread = read(in_fd, buf, buflen);
816 n = write(out_fd, buf + nwritten, nread - nwritten);
1069 struct utimbuf buf;
1070 buf.actime = req->atime;
1071 buf.modtime = req->mtime;
1072 return utime(req->path, &buf);
1403 uv_stat_t* buf) {
1451 uv__statx_to_stat(&statxbuf, buf);
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);
1470 uv__to_stat(&pbuf, buf);
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);
1486 uv__to_stat(&pbuf, buf);
1492 static int uv__fs_fstat(int fd, uv_stat_t *buf) {
1496 ret = uv__fs_statx(fd, "", /* is_fstat */ 1, /* is_lstat */ 0, buf);
1502 uv__to_stat(&pbuf, buf);