Skip to content

Commit 8efa356

Browse files
committed
Fixed stat struct.
1 parent e2e39f9 commit 8efa356

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Hexa.NET.ImGui.Widgets/Dialogs/FileUtilities.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -665,24 +665,24 @@ private static void UnixFileStat(StdWString str, out UnixStat stat)
665665
[StructLayout(LayoutKind.Sequential)]
666666
private struct OSXStat
667667
{
668-
public ulong st_dev; // dev_t: Device ID containing file
669-
public ulong st_ino; // ino_t: File serial number
670-
public ushort st_mode; // mode_t: Mode of file
671-
public ushort st_nlink; // nlink_t: Number of hard links
672-
public uint st_uid; // uid_t: User ID of the file
673-
public uint st_gid; // gid_t: Group ID of the file
674-
public ulong st_rdev; // dev_t: Device ID
675-
public Timespec st_atimespec; // time of last access
676-
public Timespec st_mtimespec; // time of last data modification
677-
public Timespec st_ctimespec; // time of last status change
678-
public long st_size; // off_t: file size in bytes
679-
public long st_blocks; // blkcnt_t: blocks allocated for file
680-
public int st_blksize; // blksize_t: optimal block size for I/O
681-
public uint st_flags; // __uint32_t: user-defined flags for file
682-
public uint st_gen; // __uint32_t: file generation number
683-
private int st_lspare; // RESERVED: DO NOT USE!
684-
private long st_qspare1; // RESERVED: DO NOT USE!
685-
private long st_qspare2; // RESERVED: DO NOT USE!
668+
public int st_dev; /* [XSI] ID of device containing file */
669+
public ushort st_mode; /* [XSI] Mode of file (see below) */
670+
public ushort st_nlink; /* [XSI] Number of hard links */
671+
public ulong st_ino; /* [XSI] File serial number */
672+
public uint st_uid; /* [XSI] User ID of the file */
673+
public uint st_gid; /* [XSI] Group ID of the file */
674+
public int st_rdev; /* [XSI] Device ID */
675+
public Timespec st_atimespec; /* time of last access */
676+
public Timespec st_mtimespec; /* time of last data modification */
677+
public Timespec st_ctimespec; /* time of last status change */
678+
public Timespec st_birthtimespec; /* time of file creation(birth) */
679+
public long st_size; /* [XSI] file size, in bytes */
680+
public long st_blocks; /* [XSI] blocks allocated for file */
681+
public int st_blksize; /* [XSI] optimal blocksize for I/O */
682+
public uint st_flags; /* user defined flags for file */
683+
public uint st_gen; /* file generation number */
684+
public int st_lspare; /* RESERVED: DO NOT USE! */
685+
public fixed long st_qspare[2]; /* RESERVED: DO NOT USE! */
686686
}
687687

688688
private static FileMetadata GetFileMetadataOSX(string filePath)

0 commit comments

Comments
 (0)