1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibCore: Add Core::System wrappers for fstat() and fcntl()

This commit is contained in:
Andreas Kling 2021-11-23 11:10:19 +01:00
parent 21a5fb0fa2
commit c37a02341b
2 changed files with 25 additions and 0 deletions

View file

@ -8,6 +8,7 @@
#include <AK/Error.h>
#include <signal.h>
#include <sys/stat.h>
namespace Core::System {
@ -17,5 +18,7 @@ ErrorOr<void> unveil(StringView path, StringView permissions);
#endif
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
ErrorOr<struct stat> fstat(int fd);
ErrorOr<int> fcntl(int fd, int command, ...);
}