summaryrefslogtreecommitdiff
path: root/kernel/scalls/accept.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scalls/accept.h')
-rw-r--r--kernel/scalls/accept.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/scalls/accept.h b/kernel/scalls/accept.h
new file mode 100644
index 0000000..d022999
--- /dev/null
+++ b/kernel/scalls/accept.h
@@ -0,0 +1,9 @@
+#include "../socket.h"
+
+typedef struct SYS_ACCEPT_PARAMS {
+ int socket;
+ struct sockaddr *address;
+ socklen_t *address_len;
+} __attribute__((packed)) SYS_ACCEPT_PARAMS;
+
+int syscall_accept(SYS_ACCEPT_PARAMS *args);