Lines Matching refs:statbuf

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