… | |
… | |
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 |
… | |
… | |
2861 | { echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
2860 | { echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
2862 | echo "${ECHO_T}$ac_cv_preadwrite" >&6; } |
2861 | echo "${ECHO_T}$ac_cv_preadwrite" >&6; } |
2863 | test $ac_cv_preadwrite = yes && |
2862 | test $ac_cv_preadwrite = yes && |
2864 | cat >>confdefs.h <<\_ACEOF |
2863 | cat >>confdefs.h <<\_ACEOF |
2865 | #define HAVE_PREADWRITE 1 |
2864 | #define HAVE_PREADWRITE 1 |
2866 | _ACEOF |
|
|
2867 | |
|
|
2868 | |
|
|
2869 | { echo "$as_me:$LINENO: checking for readdir_r" >&5 |
|
|
2870 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; } |
|
|
2871 | if test "${ac_cv_readdir_r+set}" = set; then |
|
|
2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2873 | else |
|
|
2874 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2875 | |
|
|
2876 | #include <dirent.h> |
|
|
2877 | int main(void) |
|
|
2878 | { |
|
|
2879 | DIR *dir = 0; |
|
|
2880 | struct dirent ent, *eres; |
|
|
2881 | int res = readdir_r (dir, &ent, &eres); |
|
|
2882 | return 0; |
|
|
2883 | } |
|
|
2884 | |
|
|
2885 | _ACEOF |
|
|
2886 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2887 | if { (ac_try="$ac_link" |
|
|
2888 | case "(($ac_try" in |
|
|
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2890 | *) ac_try_echo=$ac_try;; |
|
|
2891 | esac |
|
|
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2893 | (eval "$ac_link") 2>conftest.er1 |
|
|
2894 | ac_status=$? |
|
|
2895 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2896 | rm -f conftest.er1 |
|
|
2897 | cat conftest.err >&5 |
|
|
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2899 | (exit $ac_status); } && { |
|
|
2900 | test -z "$ac_c_werror_flag" || |
|
|
2901 | test ! -s conftest.err |
|
|
2902 | } && test -s conftest$ac_exeext && |
|
|
2903 | $as_test_x conftest$ac_exeext; then |
|
|
2904 | ac_cv_readdir_r=yes |
|
|
2905 | else |
|
|
2906 | echo "$as_me: failed program was:" >&5 |
|
|
2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2908 | |
|
|
2909 | ac_cv_readdir_r=no |
|
|
2910 | fi |
|
|
2911 | |
|
|
2912 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2913 | conftest$ac_exeext conftest.$ac_ext |
|
|
2914 | fi |
|
|
2915 | { echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5 |
|
|
2916 | echo "${ECHO_T}$ac_cv_readdir_r" >&6; } |
|
|
2917 | test $ac_cv_readdir_r = yes && |
|
|
2918 | cat >>confdefs.h <<\_ACEOF |
|
|
2919 | #define HAVE_READDIR_R 1 |
|
|
2920 | _ACEOF |
2865 | _ACEOF |
2921 | |
2866 | |
2922 | |
2867 | |
2923 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2868 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2924 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |
2869 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |