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:16:28: error: ‘PTHREAD_PROCESS_PRIVATE’ undeclared (first use in this function) 16 | if ( got_shared != PTHREAD_PROCESS_PRIVATE ) | ^~~~~~~~~~~~~~~~~~~~~~~ pthread/pthread_barrierattr_getpshared.c:16:28: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_barrierattr_getpshared.c:18:22: error: ‘PTHREAD_PROCESS_SHARED’ undeclared (first use in this function) 18 | int shared = PTHREAD_PROCESS_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)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~