| ... | ... | @@ -29,15 +29,6 @@ pub const File = struct { |
| 29 | 29 | |
| 30 | 30 | pub const Mode = os.mode_t; |
| 31 | 31 | |
| 32 | | /// The type that is used to represent the inode/file index number. On windows this is a |
| 33 | | /// LARGE_INTEGER (i64), and on linux this is a u64. |
| 34 | | pub const INode = switch (builtin.os.tag) { |
| 35 | | .windows => os.windows.LARGE_INTEGER, |
| 36 | | // TODO: Handle possibility of 128 bit numbers? ReFS on windows server 2012 uses a 128 bit file |
| 37 | | // index. See https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information |
| 38 | | else => os.ino_t, |
| 39 | | }; |
| 40 | | |
| 41 | 32 | pub const default_mode = switch (builtin.os.tag) { |
| 42 | 33 | .windows => 0, |
| 43 | 34 | else => 0o666, |
| ... | ... | @@ -162,7 +153,7 @@ pub const File = struct { |
| 162 | 153 | /// you see here: the index number of the inode. |
| 163 | 154 | /// |
| 164 | 155 | /// The FileIndex on Windows is similar. It is a number for a file that is unique to each filesystem. |
| 165 | | inode: INode, |
| 156 | inode: os.ino_t, |
| 166 | 157 | |
| 167 | 158 | size: u64, |
| 168 | 159 | mode: Mode, |