summaryrefslogtreecommitdiff
path: root/Userland/DevTools/UserspaceEmulator/Emulator.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-16 19:56:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-17 13:32:19 +0200
commit89956cb0d66f24bfcee312dcd35f78b5dbc9e1b9 (patch)
treedd7f38132b4cb91410271b4948cdfe99d28778d0 /Userland/DevTools/UserspaceEmulator/Emulator.h
parent529f605ac801a541b1206ce06d497f8835ca7412 (diff)
downloadserenity-89956cb0d66f24bfcee312dcd35f78b5dbc9e1b9.zip
Kernel+Userspace: Implement the accept4() system call
Unlike accept() the new accept4() system call lets the caller specify flags for the newly accepted socket file descriptor, such as SOCK_CLOEXEC and SOCK_NONBLOCK.
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator/Emulator.h')
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.h b/Userland/DevTools/UserspaceEmulator/Emulator.h
index 3533180ae8..70badf8a78 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator.h
+++ b/Userland/DevTools/UserspaceEmulator/Emulator.h
@@ -137,7 +137,7 @@ private:
int virt$getpeername(FlatPtr);
int virt$select(FlatPtr);
int virt$get_stack_bounds(FlatPtr, FlatPtr);
- int virt$accept(int sockfd, FlatPtr address, FlatPtr address_length);
+ int virt$accept4(FlatPtr);
int virt$bind(int sockfd, FlatPtr address, socklen_t address_length);
int virt$recvmsg(int sockfd, FlatPtr msg_addr, int flags);
int virt$sendmsg(int sockfd, FlatPtr msg_addr, int flags);