summaryrefslogtreecommitdiff
path: root/userland/libc/libc.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-27 18:59:49 +0200
committerAnton Kling <anton@kling.gg>2024-06-27 19:07:50 +0200
commitd315a82dbed1fd288702ebbcb869c744476433a8 (patch)
treeb58ec3831daa0abf0dd2dd5dd4395e53565bd1c7 /userland/libc/libc.c
parent556d1e44fef369a7200cc045f337ac3db2f9eab5 (diff)
stuff
Diffstat (limited to 'userland/libc/libc.c')
-rw-r--r--userland/libc/libc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/userland/libc/libc.c b/userland/libc/libc.c
index 8129448..31d8648 100644
--- a/userland/libc/libc.c
+++ b/userland/libc/libc.c
@@ -203,12 +203,8 @@ int pread(int fd, void *buf, size_t count, size_t offset) {
RC_ERRNO(syscall(SYS_PREAD, (u32)&args, 0, 0, 0, 0));
}
-int mread(int fd, void *buf, size_t count, int blocking) {
- RC_ERRNO(syscall(SYS_MREAD, fd, buf, count, blocking, 0));
-}
-
int read(int fd, void *buf, size_t count) {
- return mread(fd, buf, count, 1);
+ RC_ERRNO(syscall(SYS_READ, fd, buf, count, 0, 0));
}
int dup2(int org_fd, int new_fd) {