mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibC: Move shbuf_* API's to <serenity.h>
This commit is contained in:
parent
f72e5bbb17
commit
a1514369d7
Notes:
sideshowbarker
2024-07-19 08:59:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a1514369d7c
5 changed files with 11 additions and 8 deletions
|
@ -30,7 +30,7 @@
|
|||
#include <AK/kmalloc.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <serenity.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#include <WindowServer/WindowClientEndpoint.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <serenity.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue