aboutsummaryrefslogtreecommitdiff
path: root/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/src/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/linux/src/write.c b/sys/linux/src/write.c
index 7863673..4e09d82 100644
--- a/sys/linux/src/write.c
+++ b/sys/linux/src/write.c
@@ -4,5 +4,5 @@ int
sys·write(int fd, uintptr len, void *buf, intptr *ret)
{
long err = *ret = syscall(·Write, fd, buf, len);
- return err;
+ return error(err);
}