diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-14 18:57:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 19:58:11 +0200 |
commit | d33b43276c6319055bc212d68fab9ca5f47cfa87 (patch) | |
tree | 1599cbfac3ba10cf5c4be60ebc53d9df66e54abf /Userland | |
parent | d794ed1de7a46482272683f8dc4c858806390f29 (diff) | |
download | serenity-d33b43276c6319055bc212d68fab9ca5f47cfa87.zip |
Kernel+LibC: Share definitions for poll.h
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibC/poll.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Userland/Libraries/LibC/poll.h b/Userland/Libraries/LibC/poll.h index 384e5d1379..cdc838242e 100644 --- a/Userland/Libraries/LibC/poll.h +++ b/Userland/Libraries/LibC/poll.h @@ -1,32 +1,16 @@ /* - * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once +#include <Kernel/API/POSIX/poll.h> #include <signal.h> -#include <sys/cdefs.h> __BEGIN_DECLS -#define POLLIN (1u << 0) -#define POLLPRI (1u << 1) -#define POLLOUT (1u << 2) -#define POLLERR (1u << 3) -#define POLLHUP (1u << 4) -#define POLLNVAL (1u << 5) -#define POLLRDHUP (1u << 13) - -struct pollfd { - int fd; - short events; - short revents; -}; - -typedef unsigned nfds_t; - int poll(struct pollfd* fds, nfds_t nfds, int timeout); int ppoll(struct pollfd* fds, nfds_t nfds, const struct timespec* timeout, const sigset_t* sigmask); |