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

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

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

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