clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations stdio/renameat.c -o stdio/renameat -D_POSIX_C_SOURCE=202405L -lm -lintl stdio/renameat.c:5:52: error: use of undeclared identifier 'renameat'; did you mean 'rename'? int (*foo)(int, const char *, int, const char *) = renameat; ^~~~~~~~ rename /usr/include/stdio.h:277:6: note: 'rename' declared here int rename (const char *, const char *) __RENAME(__posix_rename); ^ stdio/renameat.c:5:7: error: incompatible pointer types initializing 'int (*)(int, const char *, int, const char *)' with an expression of type 'int (const char *, const char *)' [-Werror,-Wincompatible-pointer-types] int (*foo)(int, const char *, int, const char *) = renameat; ^ ~~~~~~~~ 2 errors generated.