aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/preadv.c
blob: 3252e383be20c3a27df398e29654cefe45fdc4e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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));
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif