1
0

proj: Implement mmap, munmap

This commit is contained in:
2025-03-01 22:54:51 +01:00
parent aa5cb0ae9d
commit cf71b7b9d1
3 changed files with 114 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ main: bin/main.o
main_intercept: bin/main.o src/intercept.c
$(CC) -o $@ $^ $(CFLAGS) -lc -Wl,--wrap=malloc,--wrap=free,--wrap=calloc,--wrap=realloc,--wrap=reallocarray,--wrap=getopt,--wrap=exit,--wrap=close,--wrap=sigaction,\
--wrap=sem_init,--wrap=sem_open,--wrap=sem_post,--wrap=sem_wait,--wrap=sem_trywait,--wrap=sem_timedwait,--wrap=sem_getvalue,--wrap=sem_close,--wrap=sem_unlink,--wrap=sem_destroy,\
--wrap=shm_open,--wrap=shm_unlink
--wrap=shm_open,--wrap=shm_unlink,--wrap=mmap,--wrap=munmap
clean:
rm -rf main main_wrapped bin/* *.so *.ko *.o