summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorKyle Evans <kevans91@users.noreply.github.com>2020-10-11 15:18:53 -0500
committerGitHub <noreply@github.com>2020-10-11 13:18:53 -0700
commit1800c600801709958af66bebfa683a4e7570810f (patch)
tree6ac63c960220b9e666db1e8d2f36dd3f39068c92 /Python/fileutils.c
parentc230fde8475e4e5581e74a4235654d17ccf4cff8 (diff)
downloadcpython-git-1800c600801709958af66bebfa683a4e7570810f.tar.gz
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 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions