summaryrefslogtreecommitdiff
path: root/Kernel/UnixTypes.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-14 18:57:35 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 19:58:11 +0200
commitd33b43276c6319055bc212d68fab9ca5f47cfa87 (patch)
tree1599cbfac3ba10cf5c4be60ebc53d9df66e54abf /Kernel/UnixTypes.h
parentd794ed1de7a46482272683f8dc4c858806390f29 (diff)
downloadserenity-d33b43276c6319055bc212d68fab9ca5f47cfa87.zip
Kernel+LibC: Share definitions for poll.h
Diffstat (limited to 'Kernel/UnixTypes.h')
-rw-r--r--Kernel/UnixTypes.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h
index 354e61cef6..d579ee695a 100644
--- a/Kernel/UnixTypes.h
+++ b/Kernel/UnixTypes.h
@@ -15,6 +15,7 @@
#include <Kernel/API/POSIX/net/if_arp.h>
#include <Kernel/API/POSIX/net/route.h>
#include <Kernel/API/POSIX/netinet/in.h>
+#include <Kernel/API/POSIX/poll.h>
#include <Kernel/API/POSIX/serenity.h>
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/sys/mman.h>
@@ -91,20 +92,6 @@ typedef i64 time_t;
typedef u32 blksize_t;
typedef u32 blkcnt_t;
-#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 u32 __u32;
typedef u16 __u16;
typedef u8 __u8;