cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations semaphore/sem_post.c -o semaphore/sem_post -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_post.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); | ^~~~~~~~