cc -pthread -Wall -Wextra -Werror=implicit-function-declaration semaphore/sem_close.c -o semaphore/sem_close -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv [cc@relibc::platform::sys:590 INFO] TODO: getrlimit(3, 0x7ffffffffbf0): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(3, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffad0): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(5, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffad0): not implemented semaphore/sem_close.c: In function 'main': semaphore/sem_close.c:19:30: error: implicit declaration of function 'sem_open' [-Werror=implicit-function-declaration] 19 | sem_t* sem = sem_open(path, O_CREAT | O_EXCL, 0600, 1); | ^~~~~~~~ semaphore/sem_close.c:19:30: warning: initialization of 'sem_t *' from 'int' makes pointer from integer without a cast [-Wint-conversion] semaphore/sem_close.c:27:22: error: implicit declaration of function 'sem_close'; did you mean 'sem_post'? [-Werror=implicit-function-declaration] 27 | if ( sem_close(sem) < 0 ) | ^~~~~~~~~ | sem_post semaphore/sem_close.c:32:17: error: implicit declaration of function 'sem_unlink'; did you mean 'sem_init'? [-Werror=implicit-function-declaration] 32 | sem_unlink(path); | ^~~~~~~~~~ | sem_init cc1: some warnings being treated as errors