From 620d37f41747e943648544d1fd1567d386c91e04 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 17 Apr 2024 17:06:16 +0200 Subject: Kernel/LibC: Add fstat() and remove stat() syscall --- kernel/includes/syscalls.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'kernel/includes') diff --git a/kernel/includes/syscalls.h b/kernel/includes/syscalls.h index 07a73e3..f187d4b 100644 --- a/kernel/includes/syscalls.h +++ b/kernel/includes/syscalls.h @@ -123,11 +123,6 @@ typedef struct SYS_SOCKET_PARAMS { int syscall_socket(SYS_SOCKET_PARAMS *args); -typedef struct SYS_STAT_PARAMS { - const char *pathname; - struct stat *statbuf; -} __attribute__((packed)) SYS_STAT_PARAMS; - -int syscall_stat(SYS_STAT_PARAMS *args); +int syscall_fstat(int fd, struct stat *buf); u32 syscall_uptime(void); int syscall_isatty(int fd); -- cgit v1.2.3