cc -pthread -Wall -Wextra uselocale.c -o uselocale -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv relibc getrlimit(3, 0x7ffffffffc70): not implemented relibc getrlimit(3, 0x7ffffffffb80): not implemented relibc getrlimit(9, 0x7ffffffffb40): not implemented relibc getrlimit(9, 0x7ffffffffb70): not implemented relibc getrlimit(5, 0x7ffffffffb70): not implemented relibc getrlimit(9, 0x7ffffffffb40): not implemented uselocale.c: In function 'main': uselocale.c:9:9: error: unknown type name 'locale_t' 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ uselocale.c:9:27: warning: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration] 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~ | setlocale uselocale.c:9:37: error: 'LC_ALL_MASK' undeclared (first use in this function) 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~~~ uselocale.c:9:37: note: each undeclared identifier is reported only once for each function it appears in uselocale.c:9:56: error: 'locale_t' undeclared (first use in this function); did you mean 'locale'? 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ | locale uselocale.c:9:65: error: expected ')' before numeric constant 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ~ ^~ | ) uselocale.c:10:34: error: expected ')' before numeric constant 10 | if ( locale == (locale_t) 0 ) | ~ ^~ | ) uselocale.c:12:17: error: expected ';' before 'old_locale' 12 | locale_t old_locale = uselocale(locale); | ^~~~~~~~~~~ | ; uselocale.c:13:14: error: 'old_locale' undeclared (first use in this function); did you mean 'locale'? 13 | if ( old_locale != LC_GLOBAL_LOCALE ) | ^~~~~~~~~~ | locale uselocale.c:13:28: error: 'LC_GLOBAL_LOCALE' undeclared (first use in this function) 13 | if ( old_locale != LC_GLOBAL_LOCALE ) | ^~~~~~~~~~~~~~~~ uselocale.c:15:22: warning: implicit declaration of function 'uselocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration] 15 | old_locale = uselocale((locale_t) 0); | ^~~~~~~~~ | setlocale uselocale.c:15:42: error: expected ')' before numeric constant 15 | old_locale = uselocale((locale_t) 0); | ~ ^~ | )