… | |
… | |
4199 | test $ac_cv_prctl_set_name = yes && |
4199 | test $ac_cv_prctl_set_name = yes && |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 | |
4201 | |
4202 | |
4202 | |
4203 | |
4203 | |
|
|
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4205 | $as_echo_n "checking for set/getrlimit... " >&6; } |
|
|
4206 | if ${ac_cv_rlimits+:} false; then : |
|
|
4207 | $as_echo_n "(cached) " >&6 |
|
|
4208 | else |
|
|
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4210 | /* end confdefs.h. */ |
|
|
4211 | |
|
|
4212 | #include <sys/time.h> |
|
|
4213 | #include <sys/resource.h> |
|
|
4214 | int res; |
|
|
4215 | int main (void) |
|
|
4216 | { |
|
|
4217 | struct rlimit srl; |
|
|
4218 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4219 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4220 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4221 | return 0; |
|
|
4222 | } |
|
|
4223 | |
|
|
4224 | _ACEOF |
|
|
4225 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4226 | ac_cv_rlimits=yes |
|
|
4227 | else |
|
|
4228 | ac_cv_rlimits=no |
|
|
4229 | fi |
|
|
4230 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4231 | conftest$ac_exeext conftest.$ac_ext |
|
|
4232 | fi |
|
|
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4234 | $as_echo "$ac_cv_rlimits" >&6; } |
|
|
4235 | test $ac_cv_rlimits = yes && |
|
|
4236 | $as_echo "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4237 | |
|
|
4238 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4205 | $as_echo_n "checking for posix_madvise... " >&6; } |
4240 | $as_echo_n "checking for posix_madvise... " >&6; } |
4206 | if ${ac_cv_posix_madvise+:} false; then : |
4241 | if ${ac_cv_posix_madvise+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4242 | $as_echo_n "(cached) " >&6 |
4208 | else |
4243 | else |
… | |
… | |
4379 | fi |
4414 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4416 | $as_echo "$ac_cv_renameat2" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4417 | test $ac_cv_renameat2 = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4418 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4419 | |
|
|
4420 | |
|
|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4422 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4423 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4424 | $as_echo_n "(cached) " >&6 |
|
|
4425 | else |
|
|
4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4427 | /* end confdefs.h. */ |
|
|
4428 | |
|
|
4429 | #include <unistd.h> |
|
|
4430 | #include <sys/syscall.h> |
|
|
4431 | /*#include <linux/copy.h>*/ |
|
|
4432 | int res; |
|
|
4433 | int main (void) |
|
|
4434 | { |
|
|
4435 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4436 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
4437 | return 0; |
|
|
4438 | } |
|
|
4439 | |
|
|
4440 | _ACEOF |
|
|
4441 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4442 | ac_cv_copy_file_range=yes |
|
|
4443 | else |
|
|
4444 | ac_cv_copy_file_range=no |
|
|
4445 | fi |
|
|
4446 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4447 | conftest$ac_exeext conftest.$ac_ext |
|
|
4448 | fi |
|
|
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4450 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4451 | test $ac_cv_copy_file_range = yes && |
|
|
4452 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4384 | |
4453 | |
4385 | |
4454 | |
4386 | |
4455 | |
4387 | |
4456 | |
4388 | cat >confcache <<\_ACEOF |
4457 | cat >confcache <<\_ACEOF |