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