cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutexattr_getrobust.c -o pthread/pthread_mutexattr_getrobust -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lnetwork -lbsd -latomic pthread/pthread_mutexattr_getrobust.c: In function 'main': pthread/pthread_mutexattr_getrobust.c:13:23: error: implicit declaration of function 'pthread_mutexattr_getrobust'; did you mean 'pthread_mutexattr_gettype'? [-Werror=implicit-function-declaration] 13 | if ( (errno = pthread_mutexattr_getrobust(&attr, &robustness)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_gettype pthread/pthread_mutexattr_getrobust.c:15:28: error: 'PTHREAD_MUTEX_STALLED' undeclared (first use in this function); did you mean 'PTHREAD_MUTEX_DEFAULT'? 15 | if ( robustness != PTHREAD_MUTEX_STALLED ) | ^~~~~~~~~~~~~~~~~~~~~ | PTHREAD_MUTEX_DEFAULT pthread/pthread_mutexattr_getrobust.c:15:28: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors