summaryrefslogtreecommitdiff
path: root/src/unistd/preadv.c
blob: 8376d60f2a83cd974f640400e5cff91b463bbc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);