mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Add a C++ helper class for working with shared buffers.
This is a bit more comfortable than passing the shared buffer ID manually everywhere and keeping track of size etc.
This commit is contained in:
parent
0b5d5fc3c9
commit
eda0866992
14 changed files with 186 additions and 46 deletions
|
@ -232,9 +232,11 @@ public:
|
|||
int sys$connect(int sockfd, const sockaddr*, socklen_t);
|
||||
int sys$restore_signal_mask(dword mask);
|
||||
|
||||
int sys$create_shared_buffer(pid_t peer_pid, size_t, void** buffer);
|
||||
int sys$create_shared_buffer(pid_t peer_pid, int, void** buffer);
|
||||
void* sys$get_shared_buffer(int shared_buffer_id);
|
||||
int sys$release_shared_buffer(int shared_buffer_id);
|
||||
int sys$seal_shared_buffer(int shared_buffer_id);
|
||||
int sys$get_shared_buffer_size(int shared_buffer_id);
|
||||
|
||||
KResult wait_for_connect(Socket&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue