Kernel/LibC: Implement all stat family functions with fstatat

This patch gets rid of 2 unnecessary syscalls!
This commit is contained in:
2024-09-17 16:27:11 +03:00
parent 708a720d9d
commit f1a4bbce53
4 changed files with 28 additions and 52 deletions

View File

@@ -146,9 +146,7 @@ namespace Kernel
BAN::ErrorOr<long> sys_truncate(int fd, off_t length);
BAN::ErrorOr<long> sys_fstat(int fd, struct stat*);
BAN::ErrorOr<long> sys_fstatat(int fd, const char* path, struct stat* buf, int flag);
BAN::ErrorOr<long> sys_stat(const char* path, struct stat* buf, int flag);
BAN::ErrorOr<long> sys_realpath(const char* path, char* buffer);