cc -O2 -pipe -pthread -Wall -Wextra -Werror=implicit-function-declaration stdlib/ptsname_r.c -o stdlib/ptsname_r -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread stdlib/ptsname_r.c:24:15: error: call to undeclared function 'ptsname_r'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int errnum = ptsname_r(controller, name, sizeof(name)); ^ stdlib/ptsname_r.c:24:15: note: did you mean 'ptsname'? /usr/include/stdlib.h:239:7: note: 'ptsname' declared here char *ptsname(int); ^ 1 error generated.