cc -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 -liconv pthread/pthread_barrierattr_getpshared.c: In function ‘main’: pthread/pthread_barrierattr_getpshared.c:11:23: error: implicit declaration of function ‘pthread_barrierattr_init’; did you mean ‘pthread_mutexattr_init’? [-Wimplicit-function-declaration] 11 | if ( (errno = pthread_barrierattr_init(&attr)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_init pthread/pthread_barrierattr_getpshared.c:14:23: error: implicit declaration of function ‘pthread_barrierattr_getpshared’ [-Wimplicit-function-declaration] 14 | if ( (errno = pthread_barrierattr_getpshared(&attr, &got_shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pthread/pthread_barrierattr_getpshared.c:19:23: error: implicit declaration of function ‘pthread_barrierattr_setpshared’ [-Wimplicit-function-declaration] 19 | if ( (errno = pthread_barrierattr_setpshared(&attr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~