aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/unistd/read.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 15:44:11 +0200
committerMarvin Borner2020-05-02 15:44:11 +0200
commitaa8a8811818331cf511681327e3ba95e456f0d33 (patch)
tree852c314dae76e756863f94639ff45eff72834d5d /src/userspace/libc/unistd/read.c
parent2a0e810a473dea57fd1cd53ea424b61269c029ba (diff)
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/userspace/libc/unistd/read.c')
-rw-r--r--src/userspace/libc/unistd/read.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/userspace/libc/unistd/read.c b/src/userspace/libc/unistd/read.c
new file mode 100644
index 0000000..c01baa7
--- /dev/null
+++ b/src/userspace/libc/unistd/read.c
@@ -0,0 +1,7 @@
+#include <stdint.h>
+#include <syscall.h>
+
+u32 sys_read(char *path, u32 offset, u32 count, char *buf)
+{
+ return syscall_read(path, offset, count, buf);
+} \ No newline at end of file