summaryrefslogtreecommitdiff
path: root/include/sys/types.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/sys/types.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/sys/types.h')
-rw-r--r--include/sys/types.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/sys/types.h b/include/sys/types.h
new file mode 100644
index 00000000..6da69434
--- /dev/null
+++ b/include/sys/types.h
@@ -0,0 +1,42 @@
+#ifndef __SYS_TYPES_H
+#define __SYS_TYPES_H
+
+typedef __INT64_TYPE__ blkcnt_t;
+typedef __INT32_TYPE__ blksize_t;
+typedef __INT64_TYPE__ clock_t;
+typedef __INT32_TYPE__ clockid_t;
+typedef __UINT64_TYPE__ dev_t;
+typedef __UINT64_TYPE__ fsblkcnt_t;
+typedef __UINT64_TYPE__ fsfilcnt_t;
+typedef __UINT32_TYPE__ gid_t;
+typedef __UINT32_TYPE__ id_t;
+typedef __UINT64_TYPE__ ino_t;
+typedef __INT32_TYPE__ key_t;
+typedef __UINT32_TYPE__ mode_t;
+typedef __UINT32_TYPE__ nlink_t;
+typedef __INT64_TYPE__ off_t;
+typedef __INT64_TYPE__ pid_t;
+typedef __UINT32_TYPE__ reclen_t;
+typedef __SIZE_TYPE__ size_t;
+typedef __INT64_TYPE__ ssize_t;
+typedef __INT64_TYPE__ suseconds_t;
+typedef __INT64_TYPE__ time_t;
+typedef void *timer_t;
+typedef __UINT32_TYPE__ uid_t;
+
+// TODO:
+// pthread_attr_t
+// pthread_barrier_t
+// pthread_barrierattr_t
+// pthread_cond_t
+// pthread_condattr_t
+// pthread_key_t
+// pthread_mutex_t
+// pthread_mutexattr_t
+// pthread_once_t
+// pthread_rwlock_t
+// pthread_rwlockattr_t
+// pthread_spinlock_t
+// pthread_t
+
+#endif