From e1400f9680f33b5e148a3c7e36e1a29341b76266 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 11 Aug 2023 11:43:48 +0300 Subject: [PATCH] Kernel: Remove unused syscall --- kernel/include/kernel/Process.h | 1 - kernel/kernel/Process.cpp | 9 --------- 2 files changed, 10 deletions(-) diff --git a/kernel/include/kernel/Process.h b/kernel/include/kernel/Process.h index ca8f7518b5..36d7c9bda7 100644 --- a/kernel/include/kernel/Process.h +++ b/kernel/include/kernel/Process.h @@ -92,7 +92,6 @@ namespace Kernel BAN::ErrorOr sys_tell(int fd); BAN::ErrorOr sys_fstat(int fd, struct stat*); - BAN::ErrorOr sys_stat(BAN::StringView path, struct stat*, int flags); BAN::ErrorOr mount(BAN::StringView source, BAN::StringView target); diff --git a/kernel/kernel/Process.cpp b/kernel/kernel/Process.cpp index b106920ec6..f0426f974d 100644 --- a/kernel/kernel/Process.cpp +++ b/kernel/kernel/Process.cpp @@ -657,15 +657,6 @@ namespace Kernel return 0; } - BAN::ErrorOr Process::sys_stat(BAN::StringView path, struct stat* out, int flags) - { - LockGuard _(m_lock); - int fd = TRY(sys_open(path, flags)); - auto ret = sys_fstat(fd, out); - MUST(sys_close(fd)); - return ret; - } - BAN::ErrorOr Process::sys_read_dir_entries(int fd, DirectoryEntryList* list, size_t list_size) { LockGuard _(m_lock);