… | |
… | |
78 | AC_CACHE_CHECK(for fexecve, ac_cv_fexecve, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
78 | AC_CACHE_CHECK(for fexecve, ac_cv_fexecve, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
79 | #include <fcntl.h> |
79 | #include <fcntl.h> |
80 | #include <unistd.h> |
80 | #include <unistd.h> |
81 | int main (void) |
81 | int main (void) |
82 | { |
82 | { |
|
|
83 | char *const argv[] = { "foo", "bar", 0 }; |
83 | int res = fexecve (-1, "argv", 0); |
84 | int res = fexecve (-1, argv, 0); |
84 | return 0; |
85 | return 0; |
85 | } |
86 | } |
86 | ]])],ac_cv_fexecve=yes,ac_cv_fexecve=no)]) |
87 | ]])],ac_cv_fexecve=yes,ac_cv_fexecve=no)]) |
87 | test $ac_cv_fexecve = yes && AC_DEFINE(HAVE_FEXECVE, 1, fexecve(2) is available) |
88 | test $ac_cv_fexecve = yes && AC_DEFINE(HAVE_FEXECVE, 1, fexecve(2) is available) |
88 | |
89 | |
… | |
… | |
172 | return 0; |
173 | return 0; |
173 | } |
174 | } |
174 | ]])],ac_cv_memfd_create=yes,ac_cv_memfd_create=no)]) |
175 | ]])],ac_cv_memfd_create=yes,ac_cv_memfd_create=no)]) |
175 | test $ac_cv_memfd_create = yes && AC_DEFINE(HAVE_MEMFD_CREATE, 1, memfd_create(2) is available) |
176 | test $ac_cv_memfd_create = yes && AC_DEFINE(HAVE_MEMFD_CREATE, 1, memfd_create(2) is available) |
176 | |
177 | |
177 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
178 | #include <unistd.h> |
|
|
179 | #include <sys/syscall.h> |
|
|
180 | /*#include <linux/copy.h>*/ |
|
|
181 | int main (void) |
|
|
182 | { |
|
|
183 | int res; |
|
|
184 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
185 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
186 | return 0; |
|
|
187 | } |
|
|
188 | ]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) |
|
|
189 | test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available) |
|
|
190 | |
|
|
191 | AC_CACHE_CHECK(for st_xtimensec, ac_cv_xtimensec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
178 | AC_CACHE_CHECK(for st_xtimensec, ac_cv_xtimensec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
192 | #include "EXTERN.h" |
179 | #include "EXTERN.h" |
193 | #include "perl.h" |
180 | #include "perl.h" |
194 | #include "XSUB.h" |
181 | #include "XSUB.h" |
195 | |
182 | |