From fc00c656c96528112d05cf0edf8631bd5eaea446 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 20:10:31 +0100 Subject: Add build system scaffolding and libc headers --- include/sys/types.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/sys/types.h (limited to 'include/sys/types.h') 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 -- cgit v1.2.3