ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.32 by root, Sun Aug 12 04:15:05 2018 UTC vs.
Revision 1.34 by root, Thu Feb 29 18:02:43 2024 UTC

37} 37}
38]])],ac_cv_futimes=yes,ac_cv_futimes=no)]) 38]])],ac_cv_futimes=yes,ac_cv_futimes=no)])
39test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) 39test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available)
40 40
41AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 41AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([
42#include <sys/types.h>
42#include <fcntl.h> 43#include <fcntl.h>
43int main (void) 44int main (void)
44{ 45{
45 int fd = 0; 46 int fd = 0;
46 size_t count = 2; 47 size_t count = 2;
91} 92}
92])],ac_cv_sendfile=yes,ac_cv_sendfile=no)]) 93])],ac_cv_sendfile=yes,ac_cv_sendfile=no)])
93test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported) 94test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported)
94 95
95AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 96AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([
97#include <sys/types.h>
96#include <fcntl.h> 98#include <fcntl.h>
97int main (void) 99int main (void)
98{ 100{
99 int fd = 0; 101 int fd = 0;
100 off64_t offset = 1; 102 off64_t offset = 1;
104 res = sync_file_range (fd, offset, nbytes, flags); 106 res = sync_file_range (fd, offset, nbytes, flags);
105 return 0; 107 return 0;
106} 108}
107])],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)]) 109])],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)])
108test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available) 110test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available)
111
112AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
113#include <unistd.h>
114int main (void)
115{
116 off64_t o1, o2;
117 int res = copy_file_range (0, &o1, 1, &o2, 99, 0);
118 return 0;
119}
120]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)])
121test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available)
109 122
110AC_CACHE_CHECK(for fallocate, ac_cv_linux_fallocate, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 123AC_CACHE_CHECK(for fallocate, ac_cv_linux_fallocate, [AC_LINK_IFELSE([AC_LANG_SOURCE([
111#include <fcntl.h> 124#include <fcntl.h>
112int main (void) 125int main (void)
113{ 126{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines