summaryrefslogtreecommitdiff
path: root/Kernel/API/Syscall.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-04-28 12:39:12 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-28 14:19:45 +0200
commitaa792062cbb0d39092948a7e71fad59737c4ac66 (patch)
tree09ff716195ccdaa7771f7188d2c9c77fd2183946 /Kernel/API/Syscall.h
parentc841012f569dba4fa72e9eb8989bb847be4535bc (diff)
downloadserenity-aa792062cbb0d39092948a7e71fad59737c4ac66.zip
Kernel+LibC: Implement the socketpair() syscall
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r--Kernel/API/Syscall.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index ec9c032a80..1ca6d4278c 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -120,6 +120,7 @@ namespace Kernel {
S(beep) \
S(getsockname) \
S(getpeername) \
+ S(socketpair) \
S(sched_setparam) \
S(sched_getparam) \
S(fchown) \
@@ -293,6 +294,13 @@ struct SC_getpeername_params {
socklen_t* addrlen;
};
+struct SC_socketpair_params {
+ int domain;
+ int type;
+ int protocol;
+ int* sv;
+};
+
struct SC_futex_params {
u32* userspace_address;
int futex_op;