summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-26 20:20:32 +0200
committerAnton Kling <anton@kling.gg>2024-06-26 20:20:32 +0200
commit8c032568c572ad346491f78325c278b886122ec5 (patch)
treed6dfacc5765b9da2d4594e5eec7153e2354af4d4 /kernel/cpu
parent823f56f35158ecf541900441a68a238f0b2c961d (diff)
Remove mread
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/syscall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c
index 3fe0766..adbb27a 100644
--- a/kernel/cpu/syscall.c
+++ b/kernel/cpu/syscall.c
@@ -53,12 +53,12 @@ int syscall_pread(SYS_PREAD_PARAMS *args) {
return vfs_pread(args->fd, args->buf, args->count, args->offset);
}
-int syscall_mread(int fd, void *buf, size_t count, int blocking) {
+int syscall_read(int fd, void *buf, size_t count) {
vfs_fd_t *fd_ptr = get_vfs_fd(fd, NULL);
if (!fd_ptr) {
return -EBADF;
}
- int rc = vfs_pmread(fd, buf, count, blocking, fd_ptr->offset);
+ int rc = vfs_pread(fd, buf, count, fd_ptr->offset);
fd_ptr->offset += rc;
return rc;
}
@@ -170,7 +170,7 @@ int syscall_getpeername(int sockfd, struct sockaddr *restrict addr,
}
int (*syscall_functions[])() = {
- (void(*))syscall_open, (void(*))syscall_mread,
+ (void(*))syscall_open, (void(*))syscall_read,
(void(*))syscall_write, (void(*))syscall_pread,
(void(*))syscall_pwrite, (void(*))syscall_fork,
(void(*))syscall_exec, (void(*))syscall_getpid,