From 231301a6190605bd3ced4d961ee0d5d3fcd49d65 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 29 Apr 2024 22:00:55 +0200 Subject: Kernel/IRC: Add setsockopt and move IRC client to use new socket interface --- userland/libc/sys/socket/connect.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 userland/libc/sys/socket/connect.c (limited to 'userland/libc/sys/socket/connect.c') diff --git a/userland/libc/sys/socket/connect.c b/userland/libc/sys/socket/connect.c new file mode 100644 index 0000000..9b692ef --- /dev/null +++ b/userland/libc/sys/socket/connect.c @@ -0,0 +1,6 @@ +#include +#include + +int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { + RC_ERRNO(syscall(SYS_CONNECT, sockfd, addr, addrlen, 0, 0)); +} -- cgit v1.2.3