… | |
… | |
218 | return 0; |
218 | return 0; |
219 | } |
219 | } |
220 | ]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) |
220 | ]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) |
221 | test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) |
221 | test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) |
222 | |
222 | |
|
|
223 | AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
224 | #include <sys/eventfd.h> |
|
|
225 | int res; |
|
|
226 | int main (void) |
|
|
227 | { |
|
|
228 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
229 | return 0; |
|
|
230 | } |
|
|
231 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
|
|
232 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
|
|
233 | |
|
|
234 | AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
235 | #include <sys/timerfd.h> |
|
|
236 | int res; |
|
|
237 | int main (void) |
|
|
238 | { |
|
|
239 | struct itimerspec its; |
|
|
240 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
241 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
242 | res = timerfd_gettime (res, &its); |
|
|
243 | return 0; |
|
|
244 | } |
|
|
245 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
|
|
246 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
|
|
247 | |
223 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
248 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
224 | #include <unistd.h> |
249 | #include <unistd.h> |
225 | #include <sys/syscall.h> |
250 | #include <sys/syscall.h> |
226 | #include <linux/fs.h> |
251 | #include <linux/fs.h> |
227 | int res; |
252 | int res; |
… | |
… | |
245 | return 0; |
270 | return 0; |
246 | } |
271 | } |
247 | ]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) |
272 | ]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) |
248 | test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available) |
273 | test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available) |
249 | |
274 | |
|
|
275 | AC_CACHE_CHECK(for posix_close, ac_cv_posix_close, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
276 | #include <unistd.h> |
|
|
277 | int res; |
|
|
278 | int main (void) |
|
|
279 | { |
|
|
280 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
281 | return 0; |
|
|
282 | } |
|
|
283 | ]])],ac_cv_posix_close=yes,ac_cv_posix_close=no)]) |
|
|
284 | test $ac_cv_posix_close = yes && AC_DEFINE(HAVE_POSIX_CLOSE, 1, posix_close(2) is available) |
|
|
285 | |