projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
global cleanup to use the new syscall interface
[musl]
/
src
/
stdio
/
__stdio_write.c
diff --git
a/src/stdio/__stdio_write.c
b/src/stdio/__stdio_write.c
index
7854562
..
d4264ef
100644
(file)
--- a/
src/stdio/__stdio_write.c
+++ b/
src/stdio/__stdio_write.c
@@
-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;
- 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);
}