diff options
author | Kyle Evans <kevans91@users.noreply.github.com> | 2020-10-11 15:18:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 13:18:53 -0700 |
commit | 1800c600801709958af66bebfa683a4e7570810f (patch) | |
tree | 6ac63c960220b9e666db1e8d2f36dd3f39068c92 /configure | |
parent | bpo-40422: create a common _Py_closerange API (GH-19754) (diff) | |
download | cpython-1800c600801709958af66bebfa683a4e7570810f.tar.gz cpython-1800c600801709958af66bebfa683a4e7570810f.tar.bz2 cpython-1800c600801709958af66bebfa683a4e7570810f.zip |
bpo-40423: Optimization: use close_range(2) if available (GH-22651)
close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of most efficient to least.
[note that this version does check for ENOSYS, but currently ignores all other errors]
Automerge-Triggered-By: @pablogsal
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure index ad74754e9a7..89577d85a41 100755 --- a/configure +++ b/configure @@ -11672,8 +11672,8 @@ fi # checks for library functions for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ - clock confstr copy_file_range ctermid dup3 execv explicit_bzero explicit_memset \ - faccessat fchmod fchmodat fchown fchownat \ + clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \ + explicit_memset faccessat fchmod fchmodat fchown fchownat \ fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ futimens futimes gai_strerror getentropy \ getgrgid_r getgrnam_r \ |