From 38c0bc7bae358e71bd2126dff6f0d7ef348894a5 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 ca8f7518..36d7c9bd 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 b106920e..f0426f97 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);