-#ifdef POSIX_FADV_NOREUSE
- posix_fadvise((long) dhcpd_leases, 0, 0, POSIX_FADV_NOREUSE);
+#ifdef POSIX_FADV_WILLNEED
+ posix_fadvise((long) dhcpd_leases, 0, 0, POSIX_FADV_WILLNEED);
#ifdef POSIX_FADV_SEQUENTIAL
posix_fadvise((long) dhcpd_leases, 0, 0, POSIX_FADV_SEQUENTIAL);
if (errno) {
#ifdef POSIX_FADV_SEQUENTIAL
posix_fadvise((long) dhcpd_leases, 0, 0, POSIX_FADV_SEQUENTIAL);
if (errno) {
if (dhcpd_config == NULL) {
err(EXIT_FAILURE, "parse_config: %s", config_file);
}
if (dhcpd_config == NULL) {
err(EXIT_FAILURE, "parse_config: %s", config_file);
}
-#ifdef POSIX_FADV_NOREUSE
- posix_fadvise((long) dhcpd_config, 0, 0, POSIX_FADV_NOREUSE);
+#ifdef POSIX_FADV_WILLNEED
+ posix_fadvise((long) dhcpd_config, 0, 0, POSIX_FADV_WILLNEED);
#ifdef POSIX_FADV_SEQUENTIAL
posix_fadvise((long) dhcpd_config, 0, 0, POSIX_FADV_SEQUENTIAL);
if (errno) {
#ifdef POSIX_FADV_SEQUENTIAL
posix_fadvise((long) dhcpd_config, 0, 0, POSIX_FADV_SEQUENTIAL);
if (errno) {