cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_barrierattr_setpshared.c -o pthread/pthread_barrierattr_setpshared -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_barrierattr_setpshared.c: In function ‘main’: pthread/pthread_barrierattr_setpshared.c:15:23: error: implicit declaration of function ‘pthread_barrierattr_init’; did you mean ‘pthread_mutexattr_init’? [-Wimplicit-function-declaration] 15 | if ( (errno = pthread_barrierattr_init(&attr)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_init pthread/pthread_barrierattr_setpshared.c:17:22: error: ‘PTHREAD_PROCESS_SHARED’ undeclared (first use in this function) 17 | int shared = PTHREAD_PROCESS_SHARED; | ^~~~~~~~~~~~~~~~~~~~~~ pthread/pthread_barrierattr_setpshared.c:17:22: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_barrierattr_setpshared.c:18:23: error: implicit declaration of function ‘pthread_barrierattr_setpshared’ [-Wimplicit-function-declaration] 18 | if ( (errno = pthread_barrierattr_setpshared(&attr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pthread/pthread_barrierattr_setpshared.c:30:23: error: implicit declaration of function ‘pthread_barrier_init’; did you mean ‘pthread_attr_init’? [-Wimplicit-function-declaration] 30 | if ( (errno = pthread_barrier_init(barrier, &attr, 2)) ) | ^~~~~~~~~~~~~~~~~~~~ | pthread_attr_init pthread/pthread_barrierattr_setpshared.c:35:23: error: implicit declaration of function ‘pthread_barrier_wait’; did you mean ‘pthread_cond_wait’? [-Wimplicit-function-declaration] 35 | if ( (errno = pthread_barrier_wait(barrier)) && | ^~~~~~~~~~~~~~~~~~~~ | pthread_cond_wait pthread/pthread_barrierattr_setpshared.c:36:23: error: ‘PTHREAD_BARRIER_SERIAL_THREAD’ undeclared (first use in this function) 36 | errno != PTHREAD_BARRIER_SERIAL_THREAD ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~