Kernel/LibC: Add SYS_SOCKET

This commit is contained in:
2024-02-01 23:39:09 +02:00
parent 99eed9c37a
commit cf28ecd5a6
8 changed files with 57 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ namespace Kernel
BAN::ErrorOr<int> open(BAN::StringView absolute_path, int flags);
BAN::ErrorOr<int> socket(int domain, int type, int protocol);
BAN::ErrorOr<void> pipe(int fds[2]);
BAN::ErrorOr<int> dup(int);

View File

@@ -111,6 +111,8 @@ namespace Kernel
BAN::ErrorOr<long> sys_chmod(const char*, mode_t);
BAN::ErrorOr<long> sys_chown(const char*, uid_t, gid_t);
BAN::ErrorOr<long> sys_socket(int domain, int type, int protocol);
BAN::ErrorOr<long> sys_pipe(int fildes[2]);
BAN::ErrorOr<long> sys_dup(int fildes);
BAN::ErrorOr<long> sys_dup2(int fildes, int fildes2);