From d315a82dbed1fd288702ebbcb869c744476433a8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 27 Jun 2024 18:59:49 +0200 Subject: stuff --- userland/libc/libc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'userland/libc/libc.c') 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) { -- cgit v1.2.3