feat(userspace/libc): implement functions for porting apps

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-24 00:40:07 +00:00
parent 27356b7826
commit 0d8c65e44b
22 changed files with 615 additions and 25 deletions

View File

@ -31,4 +31,8 @@ struct sockaddr
char sa_data[14];
};
#ifdef _GNU_SOURCE
#define SO_PEERCRED 0x1029
#endif
#endif // _BITS_SOCKET_H

View File

@ -1807,7 +1807,7 @@ typedef enum
/* Time */
/** @copydoc SYS_TIME */
#define call_time(t) syscall1(SYS_TIME, t)
#define call_time(t) syscall1(SYS_TIME, (scarg)t)
/** @copydoc SYS_CLOCK_GETTIME */
#define call_clock_gettime(clockid, tp) syscall2(SYS_CLOCK_GETTIME, (scarg)clockid, (scarg)tp)