Lines Matching defs:statbuf

1630 INLINE static int fs__stat_handle(HANDLE handle, uv_stat_t* statbuf,
1653 memset(statbuf, 0, sizeof(uv_stat_t));
1654 statbuf->st_mode = _S_IFCHR;
1655 statbuf->st_mode |= (_S_IREAD | _S_IWRITE) | ((_S_IREAD | _S_IWRITE) >> 3) |
1657 statbuf->st_nlink = 1;
1658 statbuf->st_blksize = 4096;
1659 statbuf->st_rdev = FILE_DEVICE_NULL << 16;
1683 statbuf->st_dev = 0;
1688 statbuf->st_dev = volume_info.VolumeSerialNumber;
1710 statbuf->st_mode = 0;
1730 statbuf->st_mode |= S_IFLNK;
1731 statbuf->st_size = target_length;
1734 if (statbuf->st_mode == 0) {
1736 statbuf->st_mode |= _S_IFDIR;
1737 statbuf->st_size = 0;
1739 statbuf->st_mode |= _S_IFREG;
1740 statbuf->st_size = file_info.StandardInformation.EndOfFile.QuadPart;
1745 statbuf->st_mode |= _S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6);
1747 statbuf->st_mode |= (_S_IREAD | _S_IWRITE) | ((_S_IREAD | _S_IWRITE) >> 3) |
1750 uv__filetime_to_timespec(&statbuf->st_atim,
1752 uv__filetime_to_timespec(&statbuf->st_ctim,
1754 uv__filetime_to_timespec(&statbuf->st_mtim,
1756 uv__filetime_to_timespec(&statbuf->st_birthtim,
1759 statbuf->st_ino = file_info.InternalInformation.IndexNumber.QuadPart;
1762 statbuf->st_blocks =
1765 statbuf->st_nlink = file_info.StandardInformation.NumberOfLinks;
1783 statbuf->st_blksize = 4096;
1788 statbuf->st_flags = 0;
1793 statbuf->st_gid = 0;
1794 statbuf->st_uid = 0;
1795 statbuf->st_rdev = 0;
1796 statbuf->st_gen = 0;
1815 uv_stat_t* statbuf) {
1835 if (fs__stat_handle(handle, statbuf, do_lstat) != 0)
1848 error = fs__stat_impl_from_path(req->file.pathw, do_lstat, &req->statbuf);
1863 req->ptr = &req->statbuf;
1868 INLINE static int fs__fstat_handle(int fd, HANDLE handle, uv_stat_t* statbuf) {
1876 return fs__stat_handle(handle, statbuf, 0);
1883 memset(statbuf, 0, sizeof(uv_stat_t));
1884 statbuf->st_mode = file_type == UV_TTY ? _S_IFCHR : _S_IFIFO;
1885 statbuf->st_nlink = 1;
1886 statbuf->st_rdev = (file_type == UV_TTY ? FILE_DEVICE_CONSOLE : FILE_DEVICE_NAMED_PIPE) << 16;
1887 statbuf->st_ino = (uintptr_t) handle;
1924 if (fs__fstat_handle(fd, handle, &req->statbuf) != 0) {
1929 req->ptr = &req->statbuf;
2048 uv_stat_t statbuf;
2070 if (fs__stat_impl_from_path(req->file.pathw, 0, &statbuf) != 0 ||
2075 if (statbuf.st_dev == new_statbuf.st_dev &&
2076 statbuf.st_ino == new_statbuf.st_ino) {