1 #include <sys/syscall.h>
6 int main(int argc
, char **argv
)
10 #if defined(__NR_preadv2)
12 syscall(__NR_preadv2
, 0, NULL
, 0, 0, 0);
13 has_preadv2
= errno
!= ENOSYS
;
18 #if defined(__NR_pwritev2)
20 syscall(__NR_pwritev2
, 0, NULL
, 0, 0, 0);
21 has_pwritev2
= errno
!= ENOSYS
;
26 return !(has_preadv2
&& has_pwritev2
);