mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibCore: Implement LocalSocket::receive_fd and send_fd
These are just wrappers over the sendfd and recvfd syscalls.
This commit is contained in:
parent
aaec30ee6e
commit
f9847372f3
Notes:
sideshowbarker
2024-07-17 20:52:35 +09:00
Author: https://github.com/sin-ack
Commit: f9847372f3
Pull-request: https://github.com/SerenityOS/serenity/pull/11890
2 changed files with 24 additions and 0 deletions
|
@ -410,6 +410,9 @@ public:
|
|||
virtual ErrorOr<void> set_blocking(bool enabled) override { return m_helper.set_blocking(enabled); }
|
||||
virtual ErrorOr<void> set_close_on_exec(bool enabled) override { return m_helper.set_close_on_exec(enabled); }
|
||||
|
||||
ErrorOr<int> receive_fd(int flags);
|
||||
ErrorOr<void> send_fd(int fd);
|
||||
|
||||
virtual ~LocalSocket() { close(); }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue