From 100753a060bebb9ad33a2b56722a4e83faba3fea Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Mar 2025 10:40:06 +0100 Subject: Move bindings from bindings/gi => gi Signed-off-by: Drew DeVault --- gi/libc/types.ha | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 gi/libc/types.ha (limited to 'gi/libc') diff --git a/gi/libc/types.ha b/gi/libc/types.ha new file mode 100644 index 0000000..94959b7 --- /dev/null +++ b/gi/libc/types.ha @@ -0,0 +1,32 @@ +use types::c; + +export type time_t = i64; + +export type utimbuf = struct { + actime: time_t, + modtime: time_t, +}; + +export type tm = struct { + tm_sec: int, + tm_min: int, + tm_hour: int, + tm_mday: int, + tm_mon: int, + tm_year: int, + tm_wday: int, + tm_yday: int, + tm_isdst: int, +}; + +export type FILE = opaque; + +export type passwd = struct { + pw_name: *c::char, + pw_passwd: *c::char, + pw_uid: uint, + pw_gid: uint, + pw_gecos: *c::char, + pw_dir: *c::char, + pw_shell: *c::char, +}; -- cgit 1.3.0-6-gf8a5