mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Update os_haiku.odin
This commit is contained in:
+14
-1
@@ -55,7 +55,7 @@ OS_Stat :: struct {
|
|||||||
status_change: Unix_File_Time, // time of last file status change
|
status_change: Unix_File_Time, // time of last file status change
|
||||||
birthtime: Unix_File_Time, // time of file creation
|
birthtime: Unix_File_Time, // time of file creation
|
||||||
|
|
||||||
type: u32 // attribute/index type
|
type: u32, // attribute/index type
|
||||||
|
|
||||||
blocks: blkcnt_t, // blocks allocated for file
|
blocks: blkcnt_t, // blocks allocated for file
|
||||||
}
|
}
|
||||||
@@ -121,6 +121,19 @@ foreign libc {
|
|||||||
@(link_name="dlerror") _unix_dlerror :: proc() -> cstring ---
|
@(link_name="dlerror") _unix_dlerror :: proc() -> cstring ---
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MAXNAMLEN :: 255
|
||||||
|
|
||||||
|
Dirent :: struct {
|
||||||
|
dev: dev_t,
|
||||||
|
pdef: dev_t,
|
||||||
|
ino: ino_t,
|
||||||
|
pino: ino_t,
|
||||||
|
reclen: u16,
|
||||||
|
name: [MAXNAMLEN + 1]byte, // name
|
||||||
|
}
|
||||||
|
|
||||||
|
Dir :: distinct rawptr // DIR*
|
||||||
|
|
||||||
is_path_separator :: proc(r: rune) -> bool {
|
is_path_separator :: proc(r: rune) -> bool {
|
||||||
return r == '/'
|
return r == '/'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user