summaryrefslogtreecommitdiff
path: root/userland/libc/poll.h
blob: 88e98b38ca87f80dd46a6e8c38cc6fbf46416b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef POLL_H
#define POLL_H
#include <stddef.h>

#define POLLIN (1 << 0)
#define POLLPRI (1 << 1)
#define POLLOUT (1 << 2)

struct pollfd {
    int fd;
    short events;
    short revents;
};

int poll(struct pollfd *fds, size_t nfds, int timeout);
#endif