Kernel/LibC: Add support for creating hardlinks

This commit is contained in:
2024-12-03 16:07:30 +02:00
parent 12abe81c6d
commit 713daf6cd3
8 changed files with 76 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ namespace Kernel
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_dir(const char*, mode_t);
BAN::ErrorOr<long> sys_hardlinkat(int fd1, const char* path1, int fd2, const char* path2, int flag);
BAN::ErrorOr<long> sys_unlink(const char*);
BAN::ErrorOr<long> sys_readlinkat(int fd, const char* path, char* buffer, size_t bufsize);