1 | #define _DEFAULT_SOURCE |
---|---|
2 | #include <sys/uio.h> |
3 | #include <unistd.h> |
4 | #include <syscall.h> |
5 | #include "syscall.h" |
6 | |
7 | ssize_t pwritev(int fd, const struct iovec *iov, int count, off_t ofs) |
8 | { |
9 | /// There was cancellable syscall (syscall_cp), but I don't care. |
10 | return syscall(SYS_pwritev, fd, iov, count, (long)(ofs), (long)(ofs>>32)); |
11 | } |
12 |