mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
correct the riscv64 stat structs
This commit is contained in:
+1
-20
@@ -262,7 +262,7 @@ Unix_File_Time :: struct {
|
||||
nanoseconds: i64,
|
||||
}
|
||||
|
||||
when ODIN_ARCH == .arm64 {
|
||||
when ODIN_ARCH == .arm64 || ODIN_ARCH == .riscv64 {
|
||||
OS_Stat :: struct {
|
||||
device_id: u64, // ID of device containing file
|
||||
serial: u64, // File serial number
|
||||
@@ -284,25 +284,6 @@ when ODIN_ARCH == .arm64 {
|
||||
_reserved: [2]i32,
|
||||
}
|
||||
#assert(size_of(OS_Stat) == 128)
|
||||
} else when ODIN_ARCH == .riscv64 {
|
||||
OS_Stat :: struct {
|
||||
device_id: u64,
|
||||
serial: u64,
|
||||
mode: u32,
|
||||
nlink: u32,
|
||||
uid: u32,
|
||||
gid: u32,
|
||||
rdev: u64,
|
||||
_: u64,
|
||||
size: i64,
|
||||
block_size: i32,
|
||||
_: i32,
|
||||
blocks: i64,
|
||||
last_access: Unix_File_Time,
|
||||
modified: Unix_File_Time,
|
||||
status_change: Unix_File_Time,
|
||||
_: [3]uint,
|
||||
}
|
||||
} else {
|
||||
OS_Stat :: struct {
|
||||
device_id: u64, // ID of device containing file
|
||||
|
||||
Reference in New Issue
Block a user