summaryrefslogtreecommitdiff
path: root/userland/libc/sys/socket/setsockopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/sys/socket/setsockopt.c')
-rw-r--r--userland/libc/sys/socket/setsockopt.c8
1 files changed, 8 insertions, 0 deletions
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 <sys/socket.h>
+#include <syscall.h>
+
+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));
+}