From e500ce9df4a06f5a60f3ee0b3d8b1a3c1e97a8e5 Mon Sep 17 00:00:00 2001 From: Dennis Bonke Date: Fri, 24 Jan 2025 01:14:57 +0100 Subject: [PATCH] posix: Implement setSocketOption for unix sockets --- posix/subsystem/src/un-socket.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/posix/subsystem/src/un-socket.cpp b/posix/subsystem/src/un-socket.cpp index cef30afd1..317a66fe3 100644 --- a/posix/subsystem/src/un-socket.cpp +++ b/posix/subsystem/src/un-socket.cpp @@ -535,6 +535,13 @@ struct OpenFile : File { co_return {}; } + async::result> setSocketOption(int layer, int number, + std::vector optbuf) override { + (void)optbuf; + printf("posix un-socket: unhandled setsockopt layer %d number %d\n", layer, number); + co_return protocols::fs::Error::invalidProtocolOption; + } + async::result ioctl(Process *, uint32_t id, helix_ng::RecvInlineResult msg, helix::UniqueLane conversation) override { managarm::fs::GenericIoctlReply resp;