… | |
… | |
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_frange, ac_cv_copy_file_frange, [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_frange, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY); |
|
|
229 | return 0; |
|
|
230 | } |
|
|
231 | ]])],ac_cv_copy_file_frange=yes,ac_cv_copy_file_frange=no)]) |
|
|
232 | test $ac_cv_copy_file_frange = yes && AC_DEFINE(HAVE_copy_file_frange, 1, copy_file_frange(2) is available) |
|
|
233 | |