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/read.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sys/read.h') diff --git a/lib/sys/read.h b/lib/sys/read.h index 7dba6e7..61e5576 100644 --- a/lib/sys/read.h +++ b/lib/sys/read.h @@ -2,7 +2,8 @@ #define READ_H #include "syscalls.h" -static int read(unsigned int fd, char * buf, unsigned long count) { +static int read(unsigned int fd, char * buf, unsigned long count) +{ return syscall(READ, fd, buf, count, 0, 0); } -- cgit v1.2.3-70-g09d2