cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_attr_setinheritsched.c -o pthread/pthread_attr_setinheritsched -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_attr_setinheritsched.c: In function ‘main’: pthread/pthread_attr_setinheritsched.c:16:21: error: ‘PTHREAD_SCOPE_SYSTEM’ undeclared (first use in this function) 16 | int scope = PTHREAD_SCOPE_SYSTEM; | ^~~~~~~~~~~~~~~~~~~~ pthread/pthread_attr_setinheritsched.c:16:21: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_attr_setinheritsched.c:19:23: error: implicit declaration of function ‘pthread_getschedparam’ [-Wimplicit-function-declaration] 19 | if ( (errno = pthread_getschedparam(pthread_self(), &policy, ¶m)) ) | ^~~~~~~~~~~~~~~~~~~~~ pthread/pthread_attr_setinheritsched.c:24:23: error: implicit declaration of function ‘pthread_attr_setscope’; did you mean ‘pthread_attr_destroy’? [-Wimplicit-function-declaration] 24 | if ( (errno = pthread_attr_setscope(&attr, scope)) ) | ^~~~~~~~~~~~~~~~~~~~~ | pthread_attr_destroy pthread/pthread_attr_setinheritsched.c:26:23: error: implicit declaration of function ‘pthread_attr_setschedpolicy’; did you mean ‘pthread_attr_setstacksize’? [-Wimplicit-function-declaration] 26 | if ( (errno = pthread_attr_setschedpolicy(&attr, policy)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_attr_setstacksize pthread/pthread_attr_setinheritsched.c:28:23: error: implicit declaration of function ‘pthread_attr_setschedparam’ [-Wimplicit-function-declaration] 28 | if ( (errno = pthread_attr_setschedparam(&attr, ¶m)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ pthread/pthread_attr_setinheritsched.c:30:23: error: implicit declaration of function ‘pthread_attr_setinheritsched’; did you mean ‘pthread_attr_setstacksize’? [-Wimplicit-function-declaration] 30 | if ( (errno = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_attr_setstacksize pthread/pthread_attr_setinheritsched.c:30:59: error: ‘PTHREAD_EXPLICIT_SCHED’ undeclared (first use in this function) 30 | if ( (errno = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)) ) | ^~~~~~~~~~~~~~~~~~~~~~