Kernel: Implement more POSIX compliant open() and openat() syscalls

This commit is contained in:
2024-08-01 15:35:02 +03:00
parent 401b460d75
commit 838d31fa41
3 changed files with 56 additions and 44 deletions

View File

@@ -2,6 +2,7 @@
#include <BAN/Array.h>
#include <kernel/FS/Inode.h>
#include <kernel/FS/VirtualFileSystem.h>
#include <limits.h>
#include <sys/stat.h>
@@ -21,7 +22,7 @@ namespace Kernel
BAN::ErrorOr<void> clone_from(const OpenFileDescriptorSet&);
BAN::ErrorOr<int> open(BAN::RefPtr<Inode>, int flags);
BAN::ErrorOr<int> open(VirtualFileSystem::File, int flags);
BAN::ErrorOr<int> open(BAN::StringView absolute_path, int flags);
BAN::ErrorOr<int> socket(int domain, int type, int protocol);