about summary refs log tree commit diff
path: root/bindings/types
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2023-05-28 14:10:05 +0300
committerAlexey Yerin <yyp@disroot.org>2023-05-28 14:15:22 +0300
commit16e730f540acfe6a0015464c81831cdfacaf107b (patch)
treea2aa04bf788dc16977fc6cda2ed874938c3c13c5 /bindings/types
Initial commit
Diffstat (limited to 'bindings/types')
-rw-r--r--bindings/types/libc/types.ha27
1 files changed, 27 insertions, 0 deletions
diff --git a/bindings/types/libc/types.ha b/bindings/types/libc/types.ha
new file mode 100644
index 0000000..bfb0dc0
--- /dev/null
+++ b/bindings/types/libc/types.ha
@@ -0,0 +1,27 @@
+use types::c;
+
+export type time_t = i64;
+
+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 = void;
+
+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,
+};