diff options
-rw-r--r-- | AK/SharedBuffer.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibC/serenity.h | 8 | ||||
-rw-r--r-- | Libraries/LibC/unistd.h | 7 | ||||
-rw-r--r-- | Libraries/LibGUI/Window.cpp | 1 | ||||
-rw-r--r-- | Servers/WindowServer/WindowManager.cpp | 1 |
5 files changed, 11 insertions, 8 deletions
diff --git a/AK/SharedBuffer.cpp b/AK/SharedBuffer.cpp index 3b4cedb22f..87e22d0932 100644 --- a/AK/SharedBuffer.cpp +++ b/AK/SharedBuffer.cpp @@ -30,7 +30,7 @@ #include <AK/kmalloc.h> #include <Kernel/Syscall.h> #include <stdio.h> -#include <unistd.h> +#include <serenity.h> namespace AK { diff --git a/Libraries/LibC/serenity.h b/Libraries/LibC/serenity.h index 6335d0da2c..9039e06029 100644 --- a/Libraries/LibC/serenity.h +++ b/Libraries/LibC/serenity.h @@ -31,6 +31,14 @@ __BEGIN_DECLS +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 module_load(const char* path, size_t path_length); int module_unload(const char* name, size_t name_length); diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index aae05e101b..c13829f437 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -61,13 +61,6 @@ void sysbeep(); int systrace(pid_t); int gettid(); int donate(int tid); -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(); diff --git a/Libraries/LibGUI/Window.cpp b/Libraries/LibGUI/Window.cpp index 8c41277838..b9b81865f1 100644 --- a/Libraries/LibGUI/Window.cpp +++ b/Libraries/LibGUI/Window.cpp @@ -38,6 +38,7 @@ #include <LibGUI/Window.h> #include <LibGUI/WindowServerConnection.h> #include <LibGfx/Bitmap.h> +#include <serenity.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/Servers/WindowServer/WindowManager.cpp b/Servers/WindowServer/WindowManager.cpp index 4ec32a488b..284064f6a5 100644 --- a/Servers/WindowServer/WindowManager.cpp +++ b/Servers/WindowServer/WindowManager.cpp @@ -48,6 +48,7 @@ #include <WindowServer/WindowClientEndpoint.h> #include <errno.h> #include <stdio.h> +#include <serenity.h> #include <time.h> #include <unistd.h> |