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