cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations semaphore/SEM_FAILED.c -o semaphore/SEM_FAILED -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_FAILED.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_FAILED.c:2:22: error: 'SEM_FAILED' undeclared here (not in a function) 2 | sem_t * const foo = SEM_FAILED; | ^~~~~~~~~~