projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor setxid return path to use __syscall_ret
[musl]
/
src
/
unistd
/
readv.c
diff --git
a/src/unistd/readv.c
b/src/unistd/readv.c
index
e311f9d
..
91e6de8
100644
(file)
--- a/
src/unistd/readv.c
+++ b/
src/unistd/readv.c
@@
-1,12
+1,7
@@
#include <sys/uio.h>
#include "syscall.h"
#include <sys/uio.h>
#include "syscall.h"
-#include "libc.h"
ssize_t readv(int fd, const struct iovec *iov, int count)
{
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;
+ return syscall_cp(SYS_readv, fd, iov, count);
}
}