aboutsummaryrefslogtreecommitdiff
path: root/sys/src/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/write.c')
-rw-r--r--sys/src/write.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/src/write.c b/sys/src/write.c
index c1faff5..16c9f71 100644
--- a/sys/src/write.c
+++ b/sys/src/write.c
@@ -1,7 +1,8 @@
#include "internal.h"
-intptr
-sys·write(int fd, intptr size, intptr len, void *buf)
+int
+sys·write(int fd, intptr len, void *buf, intptr *ret)
{
- return syscall(·Write, fd, buf, size*len);
+ long err = *ret = syscall(·Write, fd, buf, len);
+ return err;
}