repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sigaltstck: add missing include
[libc-test.git]
/
src
/
api
/
poll.c
blob
64cec4e3e50e2e8e22f6a6e5bcfba2d0e181ddd2
1
#include <poll.h>
2
#define T(t) (t*)0;
3
#define F(t,n) {t *y = &x.n;}
4
#define C(n) switch(n){case n:;}
5
static void
f
()
6
{
7
T
(
nfds_t
)
8
{
9
struct
pollfd x
;
10
F
(
int
,
fd
)
11
F
(
short
,
events
)
12
F
(
short
,
revents
)
13
}
14
C
(
POLLIN
)
15
C
(
POLLRDNORM
)
16
C
(
POLLRDBAND
)
17
C
(
POLLPRI
)
18
C
(
POLLOUT
)
19
C
(
POLLWRNORM
)
20
C
(
POLLWRBAND
)
21
C
(
POLLERR
)
22
C
(
POLLHUP
)
23
C
(
POLLNVAL
)
24
{
int
(*
p
)(
struct
pollfd
[],
nfds_t
,
int
) =
poll
;}
25
}