… | |
… | |
121 | return 0; |
121 | return 0; |
122 | } |
122 | } |
123 | ],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)]) |
123 | ],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)]) |
124 | test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available) |
124 | test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available) |
125 | |
125 | |
|
|
126 | AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([ |
|
|
127 | #include <fcntl.h> |
|
|
128 | int main (void) |
|
|
129 | { |
|
|
130 | int fd = 0; |
|
|
131 | int mode = FALLOC_FL_KEEP_SIZE; |
|
|
132 | off_t offset = 1; |
|
|
133 | off_t len = 1; |
|
|
134 | int res; |
|
|
135 | res = fallocate (fd, mode, offset, len); |
|
|
136 | return 0; |
|
|
137 | } |
|
|
138 | ],ac_cv_fallocate=yes,ac_cv_fallocate=no)]) |
|
|
139 | test $ac_cv_fallocate = yes && AC_DEFINE(HAVE_FALLOCATE, 1, fallocate(2) is available) |
|
|
140 | |
126 | dnl ############################################################################# |
141 | dnl ############################################################################# |
127 | dnl # these checks exist for the benefit of IO::AIO |
142 | dnl # these checks exist for the benefit of IO::AIO |
128 | |
143 | |
129 | dnl at least uclibc defines _POSIX_ADVISORY_INFO without *any* of the required |
144 | dnl at least uclibc defines _POSIX_ADVISORY_INFO without *any* of the required |
130 | dnl functionality actually being present. ugh. |
145 | dnl functionality actually being present. ugh. |