diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-28 11:45:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 12:55:58 +0100 |
commit | f72e5bbb17cd54aa0e75e4436ddcd7ca0fda4648 (patch) | |
tree | 4f66b2ea3a3ebfbde38c95832a2b21de373af291 /Libraries/LibC/unistd.h | |
parent | 8460d02651a1669ba3cdcc7cf277ceda1c0447de (diff) | |
download | serenity-f72e5bbb17cd54aa0e75e4436ddcd7ca0fda4648.zip |
Kernel+LibC: Rename shared buffer syscalls to use a prefix
This feels a lot more consistent and Unixy:
create_shared_buffer() => shbuf_create()
share_buffer_with() => shbuf_allow_pid()
share_buffer_globally() => shbuf_allow_all()
get_shared_buffer() => shbuf_get()
release_shared_buffer() => shbuf_release()
seal_shared_buffer() => shbuf_seal()
get_shared_buffer_size() => shbuf_get_size()
Also, "shared_buffer_id" is shortened to "shbuf_id" all around.
Diffstat (limited to 'Libraries/LibC/unistd.h')
-rw-r--r-- | Libraries/LibC/unistd.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index cb3cde7965..aae05e101b 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -61,13 +61,13 @@ void sysbeep(); int systrace(pid_t); int gettid(); int donate(int tid); -int create_shared_buffer(int, void** buffer); -int share_buffer_with(int, pid_t peer_pid); -int share_buffer_globally(int); -void* get_shared_buffer(int shared_buffer_id); -int release_shared_buffer(int shared_buffer_id); -int seal_shared_buffer(int shared_buffer_id); -int get_shared_buffer_size(int shared_buffer_id); +int shbuf_create(int, void** buffer); +int shbuf_allow_pid(int, pid_t peer_pid); +int shbuf_allow_all(int); +void* shbuf_get(int shbuf_id); +int shbuf_release(int shbuf_id); +int shbuf_seal(int shbuf_id); +int shbuf_get_size(int shbuf_id); int set_process_icon(int icon_id); inline int getpagesize() { return 4096; } pid_t fork(); |