cc -pthread -Wall -Wextra -Werror=implicit-function-declaration stdio/renameat.c -o stdio/renameat -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv relibc getrlimit(3, 0x7ffffffffc80): not implemented relibc getrlimit(3, 0x7ffffffffba0): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented relibc getrlimit(9, 0x7ffffffffb90): not implemented relibc getrlimit(5, 0x7ffffffffb90): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented stdio/renameat.c: In function 'main': stdio/renameat.c:49:22: error: implicit declaration of function 'openat'; did you mean 'open'? [-Werror=implicit-function-declaration] 49 | int src_fd = openat(tmpdir_fd, "a", O_WRONLY | O_CREAT, 0600); | ^~~~~~ | open stdio/renameat.c:59:17: error: implicit declaration of function 'unlinkat'; did you mean 'unlink'? [-Werror=implicit-function-declaration] 59 | unlinkat(tmpdir_fd, "a", 0); | ^~~~~~~~ | unlink cc1: some warnings being treated as errors