Add support for clock syscalls

This commit is contained in:
2025-04-30 12:52:49 -04:00
parent 74cfa5f949
commit ab5dd8d9fb
6 changed files with 214 additions and 0 deletions

7
int.h
View File

@@ -33,6 +33,13 @@ typedef uintptr_t size_t;
typedef uint32_t socklen_t;
typedef uint32_t pid_t;
typedef long time_t;
typedef int clockid_t;
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
// Compile time tests in supported compilers
#ifdef __SIZEOF_SHORT__
#if __SIZEOF_SHORT__ != 2