diff options
| author | avanspector <avanspector@gmail.com> | 2024-02-25 18:31:14 +0100 |
|---|---|---|
| committer | avanspector <avanspector@gmail.com> | 2024-02-25 18:31:14 +0100 |
| commit | fc8e5b8a61072391c14cb03afc06371acaaed4d8 (patch) | |
| tree | eecede577dc553f1de5a4c8764f7eeb7c9ec3f23 | |
| parent | 05cfc89283a3d9d19801119b7a87e40b6b930524 (diff) | |
Update os_haiku.odin
| -rw-r--r-- | core/os/os_haiku.odin | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/core/os/os_haiku.odin b/core/os/os_haiku.odin index 9cc56b0a2..ce713144c 100644 --- a/core/os/os_haiku.odin +++ b/core/os/os_haiku.odin @@ -55,7 +55,7 @@ OS_Stat :: struct { status_change: Unix_File_Time, // time of last file status change 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 } @@ -121,6 +121,19 @@ foreign libc { @(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 { return r == '/' } |