projects
/
fio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
25b8183fdfe45accb9d86b14c55e41afd27b8459
[fio.git]
/
os
/
windows
/
posix
/
include
/
poll.h
1
#ifndef POLL_H
2
#define POLL_H
3
4
#include <winsock2.h>
5
6
typedef int nfds_t;
7
8
#ifdef CONFIG_WINDOWS_XP
9
struct pollfd
10
{
11
int fd;
12
short events;
13
short revents;
14
};
15
16
#define POLLOUT 1
17
#define POLLIN 2
18
#define POLLERR 0
19
#define POLLHUP 1
20
#endif /* CONFIG_WINDOWS_XP */
21
22
int poll(struct pollfd fds[], nfds_t nfds, int timeout);
23
24
#endif /* POLL_H */