2021-11-22 15:43:57 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Error.h>
|
2021-11-22 16:11:03 +01:00
|
|
|
#include <signal.h>
|
2021-11-23 11:10:19 +01:00
|
|
|
#include <sys/stat.h>
|
2021-11-22 15:43:57 +01:00
|
|
|
|
2021-11-23 10:59:50 +01:00
|
|
|
namespace Core::System {
|
2021-11-22 15:43:57 +01:00
|
|
|
|
2021-11-23 10:59:50 +01:00
|
|
|
#ifdef __serenity__
|
2021-11-22 15:43:57 +01:00
|
|
|
ErrorOr<void> pledge(StringView promises, StringView execpromises);
|
|
|
|
ErrorOr<void> unveil(StringView path, StringView permissions);
|
2021-11-23 10:59:50 +01:00
|
|
|
#endif
|
|
|
|
|
2021-11-22 16:11:03 +01:00
|
|
|
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
|
2021-11-23 11:10:19 +01:00
|
|
|
ErrorOr<struct stat> fstat(int fd);
|
|
|
|
ErrorOr<int> fcntl(int fd, int command, ...);
|
2021-11-22 15:43:57 +01:00
|
|
|
|
|
|
|
}
|