global cleanup to use the new syscall interface
[musl] / src / stdio / __stdio_write.c
index 7854562..d4264ef 100644 (file)
@@ -4,6 +4,6 @@ size_t __stdio_write(FILE *f, const unsigned char *buf, size_t len)
 {
        const unsigned char *stop = buf+len;
        ssize_t cnt = 1;
 {
        const unsigned char *stop = buf+len;
        ssize_t cnt = 1;
-       for (; buf<stop && (cnt=__syscall_write(f->fd, buf, len))>0; buf+=cnt);
+       for (; buf<stop && (cnt=syscall(SYS_write, f->fd, buf, len))>0; buf+=cnt);
        return len-(stop-buf);
 }
        return len-(stop-buf);
 }