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 -liconv pthread/pthread_barrierattr_getpshared.c:10:2: error: unknown type name 'pthread_barrierattr_t'; did you mean 'pthread_mutexattr_t'? 10 | pthread_barrierattr_t attr; | ^~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_t /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h:31:38: note: 'pthread_mutexattr_t' declared here 31 | typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t; | ^ pthread/pthread_barrierattr_getpshared.c:11:16: error: call to undeclared function 'pthread_barrierattr_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 11 | if ( (errno = pthread_barrierattr_init(&attr)) ) | ^ pthread/pthread_barrierattr_getpshared.c:11:16: note: did you mean 'pthread_mutexattr_init'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:431:5: note: 'pthread_mutexattr_init' declared here 431 | int pthread_mutexattr_init(pthread_mutexattr_t *); | ^ pthread/pthread_barrierattr_getpshared.c:14:16: error: call to undeclared function 'pthread_barrierattr_getpshared'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | if ( (errno = pthread_barrierattr_getpshared(&attr, &got_shared)) ) | ^ pthread/pthread_barrierattr_getpshared.c:14:16: note: did you mean 'pthread_mutexattr_getpshared'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:419:5: note: 'pthread_mutexattr_getpshared' declared here 419 | int pthread_mutexattr_getpshared(const pthread_mutexattr_t * __restrict, | ^ pthread/pthread_barrierattr_getpshared.c:19:16: error: call to undeclared function 'pthread_barrierattr_setpshared'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 19 | if ( (errno = pthread_barrierattr_setpshared(&attr, shared)) ) | ^ 4 errors generated.