cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations semaphore/sem_unlink.c -o semaphore/sem_unlink -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt relibc getrlimit(3, 0x7ffffffffc80): not implemented relibc getrlimit(3, 0x7ffffffffbb0): not implemented relibc getrlimit(9, 0x7ffffffffb70): not implemented relibc getrlimit(9, 0x7ffffffffba0): not implemented relibc getrlimit(5, 0x7ffffffffba0): not implemented relibc getrlimit(9, 0x7ffffffffb70): not implemented In file included from semaphore/sem_unlink.c:1: /usr/include/semaphore.h:51:57: error: unknown type name 'timespec' 51 | int sem_clockwait(sem_t *sem, clockid_t clock_id, const timespec *abstime); | ^~~~~~~~ /usr/include/semaphore.h:56:37: error: unknown type name 'timespec' 56 | int sem_timedwait(sem_t *sem, const timespec *abstime); | ^~~~~~~~ semaphore/sem_unlink.c:5:28: error: 'sem_unlink' undeclared here (not in a function); did you mean 'sem_init'? 5 | int (*foo)(const char *) = sem_unlink; | ^~~~~~~~~~ | sem_init