feature: added third_party TCC into userland

This commit is contained in:
boreddevnl
2026-05-09 01:11:29 +02:00
parent a62b22faa9
commit 230e404a98
57 changed files with 1289 additions and 26 deletions

View File

@@ -3,6 +3,25 @@
#include <stdint.h>
#include "errno.h"
#include "sys/mman.h"
void *mmap(void *addr, unsigned long length, int prot, int flags, int fd, long offset) {
(void)addr; (void)length; (void)prot; (void)flags; (void)fd; (void)offset;
errno = ENOSYS;
return MAP_FAILED;
}
int munmap(void *addr, unsigned long length) {
(void)addr; (void)length;
errno = ENOSYS;
return -1;
}
int mprotect(void *addr, unsigned long length, int prot) {
(void)addr; (void)length; (void)prot;
errno = ENOSYS;
return -1;
}
#include "fcntl.h"
#include "stdlib.h"
#include "string.h"