about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2024-04-30 22:19:36 +0300
committerAlexey Yerin <yyp@disroot.org>2024-04-30 22:19:36 +0300
commit6ecce1d710f13e1afcf5e854435df01036837043 (patch)
tree40daa4c330f7e98f3eb6b177071684d237c2e282
parentf08701d84804bd989e114991b006813127ee3586 (diff)
Add missing types
-rw-r--r--bindings/types/libc/types.ha5
-rw-r--r--cmd/hare-gi/ctype.ha4
2 files changed, 9 insertions, 0 deletions
diff --git a/bindings/types/libc/types.ha b/bindings/types/libc/types.ha
index e6b83b7..94959b7 100644
--- a/bindings/types/libc/types.ha
+++ b/bindings/types/libc/types.ha
@@ -2,6 +2,11 @@ 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,
diff --git a/cmd/hare-gi/ctype.ha b/cmd/hare-gi/ctype.ha
index c687703..c970b49 100644
--- a/cmd/hare-gi/ctype.ha
+++ b/cmd/hare-gi/ctype.ha
@@ -139,6 +139,7 @@ let map: [](str, ctype) = [
 	("grefcount", cbuiltin::UINT),
 	("gatomicrefcount", cbuiltin::UINT),
 	("guintptr", cbuiltin::UINTPTR),
+	("gintptr", cbuiltin::UINTPTR), // ?
 
 	("gint8", cbuiltin::I8), ("guint8", cbuiltin::U8),
 	("gint16", cbuiltin::I16), ("guint16", cbuiltin::U16),
@@ -162,6 +163,9 @@ let map: [](str, ctype) = [
 	("time_t", (cmodule::LIBC, "time_t")),
 	("tm", (cmodule::LIBC, "tm")),
 
+	// <utime.h>
+	("utimbuf", (cmodule::LIBC, "utimbuf")),
+
 	// <stdio.h>
 	("FILE", (cmodule::LIBC, "FILE")),