LibC/Kernel: Implement access

This commit is contained in:
2024-07-30 11:51:07 +03:00
parent e5bb843059
commit f0be4f86a6
4 changed files with 33 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ namespace Kernel
BAN::ErrorOr<long> sys_close(int fd);
BAN::ErrorOr<long> sys_read(int fd, void* buffer, size_t count);
BAN::ErrorOr<long> sys_write(int fd, const void* buffer, size_t count);
BAN::ErrorOr<long> sys_access(const char* path, int amode);
BAN::ErrorOr<long> sys_create(const char*, mode_t);
BAN::ErrorOr<long> sys_create_dir(const char*, mode_t);
BAN::ErrorOr<long> sys_unlink(const char*);