Kernel/LibC: Implement all chmod family functions using fchmodat

This commit is contained in:
2024-09-17 17:16:46 +03:00
parent 04ae53b6df
commit 4aa466b948
4 changed files with 34 additions and 22 deletions

View File

@@ -113,8 +113,7 @@ namespace Kernel
BAN::ErrorOr<long> sys_pread(int fd, void* buffer, size_t count, off_t offset);
BAN::ErrorOr<long> sys_chmod(const char* path, mode_t mode);
BAN::ErrorOr<long> sys_fchmod(int fildes, mode_t mode);
BAN::ErrorOr<long> sys_fchmodat(int fd, const char* path, mode_t mode, int flag);
BAN::ErrorOr<long> sys_chown(const char* path, uid_t uid, gid_t gid);
BAN::ErrorOr<long> sys_socket(int domain, int type, int protocol);