… | |
… | |
2708 | |
2708 | |
2709 | #include <fcntl.h> |
2709 | #include <fcntl.h> |
2710 | int main(void) |
2710 | int main(void) |
2711 | { |
2711 | { |
2712 | int fd = 0; |
2712 | int fd = 0; |
2713 | off64_t offset = 1; |
|
|
2714 | size_t count = 2; |
2713 | size_t count = 2; |
2715 | ssize_t res; |
2714 | ssize_t res; |
2716 | res = readahead (fd, offset, count); |
2715 | res = readahead (fd, 0, count); |
2717 | return 0; |
2716 | return 0; |
2718 | } |
2717 | } |
2719 | |
2718 | |
2720 | _ACEOF |
2719 | _ACEOF |
2721 | rm -f conftest.$ac_objext conftest$ac_exeext |
2720 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
2750 | { echo "$as_me:$LINENO: result: $ac_cv_readahead" >&5 |
2749 | { echo "$as_me:$LINENO: result: $ac_cv_readahead" >&5 |
2751 | echo "${ECHO_T}$ac_cv_readahead" >&6; } |
2750 | echo "${ECHO_T}$ac_cv_readahead" >&6; } |
2752 | test $ac_cv_readahead = yes && |
2751 | test $ac_cv_readahead = yes && |
2753 | cat >>confdefs.h <<\_ACEOF |
2752 | cat >>confdefs.h <<\_ACEOF |
2754 | #define HAVE_READAHEAD 1 |
2753 | #define HAVE_READAHEAD 1 |
2755 | _ACEOF |
|
|
2756 | |
|
|
2757 | test $ac_cv_readahead = yes && |
|
|
2758 | cat >>confdefs.h <<\_ACEOF |
|
|
2759 | #define _GNU_SOURCE 1 |
|
|
2760 | _ACEOF |
2754 | _ACEOF |
2761 | |
2755 | |
2762 | |
2756 | |
2763 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
2757 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
2764 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
2758 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |