in ILRepack/LibC.cs [354:387]
public static unsafe int stat_x64(string path, out XPlatLayout.stat stat)
{
Layout.stat tmp;
var errno = Interop.stat_INODE64(path, &tmp) != 0 ? Marshal.GetLastWin32Error() : 0;
stat = new XPlatLayout.stat
{
st_dev = (ulong)tmp.st_dev,
st_ino = tmp.st_ino,
st_mode = tmp.st_mode,
st_nlink = tmp.st_nlink,
st_uid = tmp.st_uid,
st_gid = tmp.st_gid,
st_rdev = (ulong)tmp.st_rdev,
st_size = tmp.st_size,
st_atim = new XPlatLayout.TimeSpec
{
tv_sec = tmp.st_atimespec.tv_sec,
tv_nsec = tmp.st_atimespec.tv_nsec,
},
st_mtim = new XPlatLayout.TimeSpec
{
tv_sec = tmp.st_mtimespec.tv_sec,
tv_nsec = tmp.st_mtimespec.tv_nsec,
},
st_ctim = new XPlatLayout.TimeSpec
{
tv_sec = tmp.st_ctimespec.tv_sec,
tv_nsec = tmp.st_ctimespec.tv_nsec,
},
st_blksize = tmp.st_blksize,
st_blocks = tmp.st_blocks
};
return errno;
}