summaryrefslogtreecommitdiff
path: root/src/unistd/readv.c
blob: e311f9de67f9997bba06ab3212d6963c33bbdd7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/uio.h>
#include "syscall.h"
#include "libc.h"

ssize_t readv(int fd, const struct iovec *iov, int count)
{
	ssize_t r;
	CANCELPT_BEGIN;
	r = syscall3(__NR_readv, fd, (long)iov, count);
	CANCELPT_END;
	return r;
}