mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
LibCore: Stub out pledge and unveil for non-serenity systems
This commit is contained in:
parent
73742176a4
commit
30b626414d
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ ErrorOr<void> disown(pid_t pid);
|
|||
ErrorOr<void> profiling_enable(pid_t, u64 event_mask);
|
||||
ErrorOr<void> profiling_disable(pid_t);
|
||||
ErrorOr<void> profiling_free_buffer(pid_t);
|
||||
#else
|
||||
inline ErrorOr<void> unveil(StringView, StringView)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
inline ErrorOr<void> pledge(StringView, StringView = {}) { return {}; }
|
||||
#endif
|
||||
|
||||
#ifndef AK_OS_BSD_GENERIC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue