… | |
… | |
216 | return 0; |
216 | return 0; |
217 | } |
217 | } |
218 | ]])],ac_cv_renameat2=yes,ac_cv_renameat2=no)]) |
218 | ]])],ac_cv_renameat2=yes,ac_cv_renameat2=no)]) |
219 | test $ac_cv_renameat2 = yes && AC_DEFINE(HAVE_RENAMEAT2, 1, renameat2(2) is available) |
219 | test $ac_cv_renameat2 = yes && AC_DEFINE(HAVE_RENAMEAT2, 1, renameat2(2) is available) |
220 | |
220 | |
|
|
221 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
222 | #include <unistd.h> |
|
|
223 | #include <sys/syscall.h> |
|
|
224 | /*#include <linux/copy.h>*/ |
|
|
225 | int res; |
|
|
226 | int main (void) |
|
|
227 | { |
|
|
228 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
229 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
230 | return 0; |
|
|
231 | } |
|
|
232 | ]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) |
|
|
233 | test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_copy_file_range, 1, copy_file_range(2) is available) |
|
|
234 | |