ClickHouse/libs/libglibc-compatibility/musl/pwritev.c

12 lines
329 B
C
Raw Normal View History

2018-09-14 02:48:24 +00:00
#define _DEFAULT_SOURCE
#include <sys/uio.h>
#include <unistd.h>
#include <syscall.h>
#include "syscall.h"
ssize_t pwritev(int fd, const struct iovec *iov, int count, off_t ofs)
{
/// There was cancellable syscall (syscall_cp), but I don't care.
return syscall(SYS_pwritev, fd, iov, count, (long)(ofs), (long)(ofs>>32));
}