1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:27:34 +00:00

LibSystem: Add wrapper for fstat()

This commit is contained in:
Andreas Kling 2021-11-23 10:48:22 +01:00
parent 2828d58a10
commit acc2eccede
2 changed files with 17 additions and 8 deletions

View file

@ -8,11 +8,13 @@
#include <AK/Error.h>
#include <signal.h>
#include <sys/stat.h>
namespace System {
ErrorOr<void> pledge(StringView promises, StringView execpromises);
ErrorOr<void> unveil(StringView path, StringView permissions);
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
ErrorOr<struct stat> fstat(int fd);
}