13 lines
268 B
C
13 lines
268 B
C
|
#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);
|