From 828dd435725ea315abd2ea9875325ee3b17041a9 Mon Sep 17 00:00:00 2001 From: "Nathan P. Reiner" Date: Thu, 15 Dec 2022 18:20:33 +0100 Subject: did this while lecture (builtins, parsing, exec and env by stdlib) --- lib/sys/write.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sys/write.h') diff --git a/lib/sys/write.h b/lib/sys/write.h index 59f7789..6ad748e 100644 --- a/lib/sys/write.h +++ b/lib/sys/write.h @@ -3,7 +3,8 @@ #include "syscalls.h" -static int write(unsigned int fd, const char * buf, unsigned long count) { +static int write(unsigned int fd, const char * buf, unsigned long count) +{ return syscall(WRITE, fd, buf, count); } -- cgit v1.2.3-70-g09d2