cc -O2 -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 -lrt -lintl -lcrypt pthread/pthread_mutexattr_getrobust.c: In function 'main': pthread/pthread_mutexattr_getrobust.c:13:16: error: implicit declaration of function 'pthread_mutexattr_getrobust'; did you mean 'pthread_mutexattr_getprotocol'? [-Werror=implicit-function-declaration] 13 | if ( (errno = pthread_mutexattr_getrobust(&attr, &robustness)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_getprotocol pthread/pthread_mutexattr_getrobust.c:15:21: 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:21: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors