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/setsockopt.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 userland/libc/sys/socket/setsockopt.c (limited to 'userland/libc/sys/socket/setsockopt.c') diff --git a/userland/libc/sys/socket/setsockopt.c b/userland/libc/sys/socket/setsockopt.c new file mode 100644 index 0000000..3fa69d6 --- /dev/null +++ b/userland/libc/sys/socket/setsockopt.c @@ -0,0 +1,8 @@ +#include +#include + +int setsockopt(int socket, int level, int option_name, const void *option_value, + socklen_t option_len) { + RC_ERRNO(syscall(SYS_SETSOCKOPT, socket, level, option_name, option_value, + option_len)); +} -- cgit v1.2.3