cc -pthread -Wall -Wextra -Werror=implicit-function-declaration semaphore/sem_open.c -o semaphore/sem_open -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_open.c: In function 'main': semaphore/sem_open.c:18:30: error: implicit declaration of function 'sem_open' [-Werror=implicit-function-declaration] 18 | sem_t* sem = sem_open(path, O_CREAT | O_EXCL, 0600, 1); | ^~~~~~~~ semaphore/sem_open.c:18:30: warning: initialization of 'sem_t *' from 'int' makes pointer from integer without a cast [-Wint-conversion] semaphore/sem_open.c:26:17: error: implicit declaration of function 'sem_close'; did you mean 'sem_post'? [-Werror=implicit-function-declaration] 26 | sem_close(sem); | ^~~~~~~~~ | sem_post semaphore/sem_open.c:27:17: error: implicit declaration of function 'sem_unlink'; did you mean 'sem_init'? [-Werror=implicit-function-declaration] 27 | sem_unlink(path); | ^~~~~~~~~~ | sem_init cc1: some warnings being treated as errors