summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/unistd/preadv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/unistd/preadv.c')
-rw-r--r--libc-top-half/musl/src/unistd/preadv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/unistd/preadv.c b/libc-top-half/musl/src/unistd/preadv.c
new file mode 100644
index 0000000..8376d60
--- /dev/null
+++ b/libc-top-half/musl/src/unistd/preadv.c
@@ -0,0 +1,12 @@
+#define _BSD_SOURCE
+#include <sys/uio.h>
+#include <unistd.h>
+#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));
+}
+
+weak_alias(preadv, preadv64);