… | |
… | |
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 |
… | |
… | |
4348 | $as_echo "$ac_cv_pipe2" >&6; } |
4383 | $as_echo "$ac_cv_pipe2" >&6; } |
4349 | test $ac_cv_pipe2 = yes && |
4384 | test $ac_cv_pipe2 = yes && |
4350 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4385 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4351 | |
4386 | |
4352 | |
4387 | |
|
|
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
|
|
4389 | $as_echo_n "checking for eventfd... " >&6; } |
|
|
4390 | if ${ac_cv_eventfd+:} false; then : |
|
|
4391 | $as_echo_n "(cached) " >&6 |
|
|
4392 | else |
|
|
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4394 | /* end confdefs.h. */ |
|
|
4395 | |
|
|
4396 | #include <sys/eventfd.h> |
|
|
4397 | int res; |
|
|
4398 | int main (void) |
|
|
4399 | { |
|
|
4400 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4401 | return 0; |
|
|
4402 | } |
|
|
4403 | |
|
|
4404 | _ACEOF |
|
|
4405 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4406 | ac_cv_eventfd=yes |
|
|
4407 | else |
|
|
4408 | ac_cv_eventfd=no |
|
|
4409 | fi |
|
|
4410 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4411 | conftest$ac_exeext conftest.$ac_ext |
|
|
4412 | fi |
|
|
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4415 | test $ac_cv_eventfd = yes && |
|
|
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4417 | |
|
|
4418 | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4354 | $as_echo_n "checking for renameat2... " >&6; } |
4420 | $as_echo_n "checking for renameat2... " >&6; } |
4355 | if ${ac_cv_renameat2+:} false; then : |
4421 | if ${ac_cv_renameat2+:} false; then : |
4356 | $as_echo_n "(cached) " >&6 |
4422 | $as_echo_n "(cached) " >&6 |
4357 | else |
4423 | else |
… | |
… | |
4379 | fi |
4445 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4447 | $as_echo "$ac_cv_renameat2" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4448 | test $ac_cv_renameat2 = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4449 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4450 | |
|
|
4451 | |
|
|
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4453 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4454 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4455 | $as_echo_n "(cached) " >&6 |
|
|
4456 | else |
|
|
4457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4458 | /* end confdefs.h. */ |
|
|
4459 | |
|
|
4460 | #include <unistd.h> |
|
|
4461 | #include <sys/syscall.h> |
|
|
4462 | /*#include <linux/copy.h>*/ |
|
|
4463 | int res; |
|
|
4464 | int main (void) |
|
|
4465 | { |
|
|
4466 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4467 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
4468 | return 0; |
|
|
4469 | } |
|
|
4470 | |
|
|
4471 | _ACEOF |
|
|
4472 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4473 | ac_cv_copy_file_range=yes |
|
|
4474 | else |
|
|
4475 | ac_cv_copy_file_range=no |
|
|
4476 | fi |
|
|
4477 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4478 | conftest$ac_exeext conftest.$ac_ext |
|
|
4479 | fi |
|
|
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4481 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4482 | test $ac_cv_copy_file_range = yes && |
|
|
4483 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4484 | |
|
|
4485 | |
|
|
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4487 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4488 | if ${ac_cv_posix_close+:} false; then : |
|
|
4489 | $as_echo_n "(cached) " >&6 |
|
|
4490 | else |
|
|
4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4492 | /* end confdefs.h. */ |
|
|
4493 | |
|
|
4494 | #include <unistd.h> |
|
|
4495 | int res; |
|
|
4496 | int main (void) |
|
|
4497 | { |
|
|
4498 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4499 | return 0; |
|
|
4500 | } |
|
|
4501 | |
|
|
4502 | _ACEOF |
|
|
4503 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4504 | ac_cv_posix_close=yes |
|
|
4505 | else |
|
|
4506 | ac_cv_posix_close=no |
|
|
4507 | fi |
|
|
4508 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4509 | conftest$ac_exeext conftest.$ac_ext |
|
|
4510 | fi |
|
|
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4512 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4513 | test $ac_cv_posix_close = yes && |
|
|
4514 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4384 | |
4515 | |
4385 | |
4516 | |
4386 | |
4517 | |
4387 | |
4518 | |
4388 | cat >confcache <<\_ACEOF |
4519 | cat >confcache <<\_ACEOF |