Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: configure.ac

Issue 26826: Expose new copy_file_range() syscal in os module and use it to improve shutils.copy()
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Doc/library/os.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/configure.ac Wed Jun 08 13:32:49 2016 +0000
+++ b/configure.ac Wed Jul 06 12:59:50 2016 +0200
@@ -3298,6 +3298,12 @@
[#include <sys/types.h>
#include <dirent.h>])
+AC_CHECK_DECL(__NR_copy_file_range,
+ AC_DEFINE(HAVE_COPY_FILE_RANGE, 1,
+ Define if you have the 'copy_file_range' syscall.), ,
+ [#include <sys/syscall.h>
+ #include <unistd.h>])
+
# For some functions, having a definition is not sufficient, since
# we want to take their address.
AC_MSG_CHECKING(for chroot)
« no previous file with comments | « no previous file | Doc/library/os.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+