forked from Bananymous/banan-os
Kernel: Remove unused syscall
This commit is contained in:
parent
313b00b11f
commit
38c0bc7bae
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue