Skip to content

Commit

Permalink
posix: Implement setSocketOption for unix sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Jan 24, 2025
1 parent 9fba9f8 commit e500ce9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions posix/subsystem/src/un-socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,13 @@ struct OpenFile : File {
co_return {};
}

async::result<frg::expected<protocols::fs::Error>> setSocketOption(int layer, int number,
std::vector<char> 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<void>
ioctl(Process *, uint32_t id, helix_ng::RecvInlineResult msg, helix::UniqueLane conversation) override {
managarm::fs::GenericIoctlReply resp;
Expand Down

0 comments on commit e500ce9

Please sign in to comment.