/opt/IBM/openxlC/17.1.1/bin/ibm-clang -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations unistd/getresuid.c -o unistd/getresuid -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt -latomic unistd/getresuid.c:11:65: error: use of undeclared identifier 'getresuid'; did you mean 'geteuid'? int (*foo)(uid_t *restrict, uid_t *restrict, uid_t *restrict) = getresuid; ^~~~~~~~~ geteuid /usr/include/unistd.h:181:23: note: 'geteuid' declared here extern uid_t _NOTHROW(geteuid, (void)); ^ unistd/getresuid.c:11:7: error: incompatible function pointer types initializing 'int (*)(uid_t *restrict, uid_t *restrict, uid_t *restrict)' (aka 'int (*)(unsigned int *restrict, unsigned int *restrict, unsigned int *restrict)') with an expression of type 'uid_t (void)' (aka 'unsigned int (void)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(uid_t *restrict, uid_t *restrict, uid_t *restrict) = getresuid; ^ ~~~~~~~~~ 2 errors generated.