summaryrefslogblamecommitdiff
path: root/src/unistd/preadv.c
blob: 371e46f8fc62806722d4ee64706058f71d67b1d5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                     
#define _GNU_SOURCE
#include <sys/uio.h>
#include <unistd.h>
#include "syscall.h"
#include "libc.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));
}

LFS64(preadv);