… | |
… | |
107 | return 0; |
107 | return 0; |
108 | } |
108 | } |
109 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
109 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
110 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
110 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
111 | |
111 | |
112 | AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
112 | AC_CACHE_CHECK(for timerfd_*, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
113 | #include <sys/timerfd.h> |
113 | #include <sys/timerfd.h> |
114 | int main (void) |
114 | int main (void) |
115 | { |
115 | { |
116 | struct itimerspec its; |
116 | struct itimerspec its; |
117 | int res; |
117 | int res; |
… | |
… | |
120 | res = timerfd_gettime (res, &its); |
120 | res = timerfd_gettime (res, &its); |
121 | return 0; |
121 | return 0; |
122 | } |
122 | } |
123 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
123 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
124 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
124 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
|
|
125 | |
|
|
126 | AC_CACHE_CHECK(for memfd_create, ac_cv_memfd_create, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
127 | #include <sys/mman.h> |
|
|
128 | int main (void) |
|
|
129 | { |
|
|
130 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
131 | return 0; |
|
|
132 | } |
|
|
133 | ]])],ac_cv_memfd_create=yes,ac_cv_memfd_create=no)]) |
|
|
134 | test $ac_cv_memfd_create = yes && AC_DEFINE(HAVE_MEMFD_CREATE, 1, memfd_create(2) is available) |
125 | |
135 | |
126 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
136 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
127 | #include <unistd.h> |
137 | #include <unistd.h> |
128 | #include <sys/syscall.h> |
138 | #include <sys/syscall.h> |
129 | /*#include <linux/copy.h>*/ |
139 | /*#include <linux/copy.h>*/ |