From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/unistd/preadv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/unistd/preadv.c (limited to 'src/unistd/preadv.c') diff --git a/src/unistd/preadv.c b/src/unistd/preadv.c new file mode 100644 index 0000000..890ab40 --- /dev/null +++ b/src/unistd/preadv.c @@ -0,0 +1,10 @@ +#define _BSD_SOURCE +#include +#include +#include "syscall.h" + +ssize_t preadv(int fd, const struct iovec *iov, int count, off_t ofs) +{ + return syscall_cp(SYS_preadv, fd, iov, count, + (long)(ofs), (long)(ofs>>32)); +} -- cgit v1.2.3