global cleanup to use the new syscall interface
[musl] / src / unistd / writev.c
index a6a118a..a45afeb 100644 (file)
@@ -6,7 +6,7 @@ ssize_t writev(int fd, const struct iovec *iov, int count)
 {
        ssize_t r;
        CANCELPT_BEGIN;
-       r = syscall3(__NR_writev, fd, (long)iov, count);
+       r = syscall(SYS_writev, fd, iov, count);
        CANCELPT_END;
        return r;
 }