From d179f1846f9372920ef02f08cfb4d3abe99b383f Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 14 Dec 2022 18:26:49 +0100 Subject: first commit --- lib/sys/read.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/sys/read.h (limited to 'lib/sys/read.h') diff --git a/lib/sys/read.h b/lib/sys/read.h new file mode 100644 index 0000000..7dba6e7 --- /dev/null +++ b/lib/sys/read.h @@ -0,0 +1,9 @@ +#ifndef READ_H +#define READ_H +#include "syscalls.h" + +static int read(unsigned int fd, char * buf, unsigned long count) { + return syscall(READ, fd, buf, count, 0, 0); +} + +#endif -- cgit v1.2.3-70-g09d2