gh-153400: Add syscall fallbacks for copy_file_range/memfd_create by daandemeyer · Pull Request #155520 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
On Linux, :func:`os.copy_file_range` and :func:`os.memfd_create` now fall back
to the raw syscall when the libc Python is built against does not provide the
wrapper function, so they stay available on interpreters built against a libc
older than glibc 2.27.
10 changes: 5 additions & 5 deletions Modules/clinic/posixmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 28 additions & 8 deletions Modules/posixmodule.c
Loading