clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations unistd/setreuid.c -o unistd/setreuid -D_POSIX_C_SOURCE=202405L -lm -lintl unistd/setreuid.c:11:28: error: use of undeclared identifier 'setreuid'; did you mean 'seteuid'? int (*foo)(uid_t, uid_t) = setreuid; ^~~~~~~~ seteuid /usr/include/unistd.h:180:6: note: 'seteuid' declared here int seteuid(uid_t); ^ unistd/setreuid.c:11:7: error: incompatible pointer types initializing 'int (*)(__uid_t, __uid_t)' with an expression of type 'int (__uid_t)' [-Werror,-Wincompatible-pointer-types] int (*foo)(uid_t, uid_t) = setreuid; ^ ~~~~~~~~ 2 errors generated.