aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
diff options
context:
space:
mode:
authorAl Hoang <3811822-hoanga@users.noreply.gitlab.com>2020-12-28 23:00:31 -0600
committerAndrew Kelley <andrew@ziglang.org>2021-02-25 16:41:42 -0700
commit6b0372229da4fa4cf32f0ee1eb079f530554b094 (patch)
treedf08afc15bbe6626a20c4ffd0609a51df6ef3425 /lib/std/os
parent025635c3f80912f0f967b57e6d22fe42e94b64f0 (diff)
downloadzig-6b0372229da4fa4cf32f0ee1eb079f530554b094.tar.gz
zig-6b0372229da4fa4cf32f0ee1eb079f530554b094.zip
initial support for haiku continue clean up
* remove unused definitions * setup os specific blocks
Diffstat (limited to 'lib/std/os')
-rw-r--r--lib/std/os/bits/haiku.zig28
1 files changed, 22 insertions, 6 deletions
diff --git a/lib/std/os/bits/haiku.zig b/lib/std/os/bits/haiku.zig
index 5dce94bd90..c4f6b694aa 100644
--- a/lib/std/os/bits/haiku.zig
+++ b/lib/std/os/bits/haiku.zig
@@ -162,13 +162,11 @@ pub const timespec = extern struct {
};
pub const dirent = extern struct {
- d_fileno: usize,
- d_off: i64,
+ d_dev: i32,
+ d_pdev: i32,
+ d_ino: i64,
+ d_pino: i64,
d_reclen: u16,
- d_type: u8,
- d_pad0: u8,
- d_namlen: u16,
- d_pad1: u16,
d_name: [256]u8,
pub fn reclen(self: dirent) u16 {
@@ -176,6 +174,24 @@ pub const dirent = extern struct {
}
};
+pub const image_info = extern struct {
+ id: u32, //image_id
+ type: u32, // image_type
+ sequence: i32,
+ init_order: i32,
+ init_routine: *c_void,
+ term_routine: *c_void,
+ device: i32,
+ node: i32,
+ name: [1024]u8,
+ text: *c_void,
+ data: *c_void,
+ text_size: i32,
+ data_size: i32,
+ api_version: i32,
+ abi: i32,
+};
+
pub const in_port_t = u16;
pub const sa_family_t = u8;