summaryrefslogtreecommitdiff
path: root/os/windows/posix/include/poll.h
blob: 21e5699b3d685fc627319df4530cdcc1793a0501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef POLL_H
#define POLL_H

typedef int nfds_t;

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

int poll(struct pollfd fds[], nfds_t nfds, int timeout);

#define POLLOUT	1
#define POLLIN	2
#define POLLERR	0
#define POLLHUP	1

#endif /* POLL_H */