repo.or.cz
/
vde.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Several BugFixes (see bug-reports from "accounts")
[vde.git]
/
vde-2
/
include
/
vdepoll.h
blob
83f2ff7230eeaa7a84318d22a317a7266162b1a9
1
#ifndef VDEPOLL_H__
2
#define VDEPOLL_H__
3
4
#include <config.h>
5
6
#ifdef HAVE_POLL
7
#include <poll.h>
8
#else
9
10
typedef
unsigned long int
nfds_t
;
11
12
#define POLLIN 0x001
13
#define POLLPRI 0x002
14
#define POLLOUT 0x004
15
#define POLLHUP 0x010
16
17
18
struct
pollfd
19
{
20
int
fd
;
21
short int
events
;
22
short int
revents
;
23
};
24
25
int
vde_poll
(
struct
pollfd
*
ufds
,
nfds_t nfds
,
int
timeout
);
26
27
#endif
28
#endif