… | |
… | |
4425 | printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
4425 | printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
4426 | test $ac_cv_sync_file_range = yes && |
4426 | test $ac_cv_sync_file_range = yes && |
4427 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4427 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4428 | |
4428 | |
4429 | |
4429 | |
|
|
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4431 | printf %s "checking for copy_file_range... " >&6; } |
|
|
4432 | if test ${ac_cv_copy_file_range+y} |
|
|
4433 | then : |
|
|
4434 | printf %s "(cached) " >&6 |
|
|
4435 | else $as_nop |
|
|
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4437 | /* end confdefs.h. */ |
|
|
4438 | |
|
|
4439 | #include <unistd.h> |
|
|
4440 | int main (void) |
|
|
4441 | { |
|
|
4442 | off64_t o1, o2; |
|
|
4443 | int res = copy_file_range (0, &o1, 1, &o2, 99, 0); |
|
|
4444 | return 0; |
|
|
4445 | } |
|
|
4446 | |
|
|
4447 | _ACEOF |
|
|
4448 | if ac_fn_c_try_link "$LINENO" |
|
|
4449 | then : |
|
|
4450 | ac_cv_copy_file_range=yes |
|
|
4451 | else $as_nop |
|
|
4452 | ac_cv_copy_file_range=no |
|
|
4453 | fi |
|
|
4454 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4455 | conftest$ac_exeext conftest.$ac_ext |
|
|
4456 | fi |
|
|
4457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4458 | printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
|
|
4459 | test $ac_cv_copy_file_range = yes && |
|
|
4460 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4461 | |
|
|
4462 | |
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4431 | printf %s "checking for fallocate... " >&6; } |
4464 | printf %s "checking for fallocate... " >&6; } |
4432 | if test ${ac_cv_linux_fallocate+y} |
4465 | if test ${ac_cv_linux_fallocate+y} |
4433 | then : |
4466 | then : |
4434 | printf %s "(cached) " >&6 |
4467 | printf %s "(cached) " >&6 |
… | |
… | |
4760 | |
4793 | |
4761 | #include <fcntl.h> |
4794 | #include <fcntl.h> |
4762 | #include <unistd.h> |
4795 | #include <unistd.h> |
4763 | int main (void) |
4796 | int main (void) |
4764 | { |
4797 | { |
|
|
4798 | char *const argv[] = { "foo", "bar", 0 }; |
4765 | int res = fexecve (-1, "argv", 0); |
4799 | int res = fexecve (-1, argv, 0); |
4766 | return 0; |
4800 | return 0; |
4767 | } |
4801 | } |
4768 | |
4802 | |
4769 | _ACEOF |
4803 | _ACEOF |
4770 | if ac_fn_c_try_link "$LINENO" |
4804 | if ac_fn_c_try_link "$LINENO" |
… | |
… | |
5020 | fi |
5054 | fi |
5021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
5055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
5022 | printf "%s\n" "$ac_cv_memfd_create" >&6; } |
5056 | printf "%s\n" "$ac_cv_memfd_create" >&6; } |
5023 | test $ac_cv_memfd_create = yes && |
5057 | test $ac_cv_memfd_create = yes && |
5024 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
5058 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
5025 | |
|
|
5026 | |
|
|
5027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
5028 | printf %s "checking for copy_file_range... " >&6; } |
|
|
5029 | if test ${ac_cv_copy_file_range+y} |
|
|
5030 | then : |
|
|
5031 | printf %s "(cached) " >&6 |
|
|
5032 | else $as_nop |
|
|
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5034 | /* end confdefs.h. */ |
|
|
5035 | |
|
|
5036 | #include <unistd.h> |
|
|
5037 | #include <sys/syscall.h> |
|
|
5038 | /*#include <linux/copy.h>*/ |
|
|
5039 | int main (void) |
|
|
5040 | { |
|
|
5041 | int res; |
|
|
5042 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
5043 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
5044 | return 0; |
|
|
5045 | } |
|
|
5046 | |
|
|
5047 | _ACEOF |
|
|
5048 | if ac_fn_c_try_link "$LINENO" |
|
|
5049 | then : |
|
|
5050 | ac_cv_copy_file_range=yes |
|
|
5051 | else $as_nop |
|
|
5052 | ac_cv_copy_file_range=no |
|
|
5053 | fi |
|
|
5054 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5055 | conftest$ac_exeext conftest.$ac_ext |
|
|
5056 | fi |
|
|
5057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
5058 | printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
|
|
5059 | test $ac_cv_copy_file_range = yes && |
|
|
5060 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
5061 | |
5059 | |
5062 | |
5060 | |
5063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
5061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
5064 | printf %s "checking for st_xtimensec... " >&6; } |
5062 | printf %s "checking for st_xtimensec... " >&6; } |
5065 | if test ${ac_cv_xtimensec+y} |
5063 | if test ${ac_cv_xtimensec+y} |