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

#include <winsock2.h>

typedef int nfds_t;

#ifdef CONFIG_WINDOWS_XP
struct pollfd
{
	int fd;
	short events;
	short revents;
};

#define POLLOUT	1
#define POLLIN	2
#define POLLERR	0
#define POLLHUP	1
#endif /* CONFIG_WINDOWS_XP */

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

#endif /* POLL_H */