1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibCore: Add a wrapper for poll()

This commit is contained in:
Lucas CHOLLET 2022-12-11 23:40:25 +01:00 committed by Sam Atkins
parent 0049dfd717
commit 5532640b71
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include <dirent.h>
#include <fcntl.h>
#include <grp.h>
#include <poll.h>
#include <pwd.h>
#include <signal.h>
#include <spawn.h>
@ -205,6 +206,7 @@ ErrorOr<void> grantpt(int fildes);
ErrorOr<void> unlockpt(int fildes);
ErrorOr<void> access(StringView pathname, int mode);
ErrorOr<DeprecatedString> readlink(StringView pathname);
ErrorOr<int> poll(Span<struct pollfd>, int timeout);
#ifdef AK_OS_SERENITY
ErrorOr<void> posix_fallocate(int fd, off_t offset, off_t length);