Kernel: Remove unused syscall

This commit is contained in:
Bananymous 2023-08-11 11:43:48 +03:00
parent 313b00b11f
commit 38c0bc7bae
2 changed files with 0 additions and 10 deletions

View File

@ -92,7 +92,6 @@ namespace Kernel
BAN::ErrorOr<long> sys_tell(int fd);
BAN::ErrorOr<long> sys_fstat(int fd, struct stat*);
BAN::ErrorOr<long> sys_stat(BAN::StringView path, struct stat*, int flags);
BAN::ErrorOr<void> mount(BAN::StringView source, BAN::StringView target);

View File

@ -657,15 +657,6 @@ namespace Kernel
return 0;
}
BAN::ErrorOr<long> 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<long> Process::sys_read_dir_entries(int fd, DirectoryEntryList* list, size_t list_size)
{
LockGuard _(m_lock);