cc -pthread -Wall -Wextra -Werror=implicit-function-declaration fcntl/posix_fadvise.c -o fcntl/posix_fadvise -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv [cc@relibc::platform::sys:590 INFO] TODO: getrlimit(3, 0x7ffffffffbf0): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(3, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffad0): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(5, 0x7ffffffffb00): not implemented [cc1@relibc::platform::sys:590 INFO] TODO: getrlimit(9, 0x7ffffffffad0): not implemented fcntl/posix_fadvise.c: In function 'main': fcntl/posix_fadvise.c:14:23: error: implicit declaration of function 'posix_fadvise'; did you mean 'posix_close'? [-Werror=implicit-function-declaration] 14 | if ( (errno = posix_fadvise(fileno(fp), 0, 2, POSIX_FADV_SEQUENTIAL)) ) | ^~~~~~~~~~~~~ | posix_close fcntl/posix_fadvise.c:14:55: error: 'POSIX_FADV_SEQUENTIAL' undeclared (first use in this function) 14 | if ( (errno = posix_fadvise(fileno(fp), 0, 2, POSIX_FADV_SEQUENTIAL)) ) | ^~~~~~~~~~~~~~~~~~~~~ fcntl/posix_fadvise.c:14:55: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors