cc -O2 -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_barrierattr_getpshared.c -o pthread/pthread_barrierattr_getpshared -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -lcrypt pthread/pthread_barrierattr_getpshared.c: In function 'main': pthread/pthread_barrierattr_getpshared.c:14:16: error: implicit declaration of function 'pthread_barrierattr_getpshared'; did you mean 'pthread_barrierattr_destroy'? [-Werror=implicit-function-declaration] 14 | if ( (errno = pthread_barrierattr_getpshared(&attr, &got_shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_barrierattr_destroy pthread/pthread_barrierattr_getpshared.c:19:16: error: implicit declaration of function 'pthread_barrierattr_setpshared'; did you mean 'pthread_barrierattr_destroy'? [-Werror=implicit-function-declaration] 19 | if ( (errno = pthread_barrierattr_setpshared(&attr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_barrierattr_destroy cc1: some warnings being treated as errors