projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
kernel: fix a checkloop panic caused by EOPNOTSUPP not being passed down correctly
[dragonfly.git]
/
test
/
testcases
/
io
/
poll_1
/
poll_1.c
1
#include <fcntl.h>
2
#include <stdio.h>
3
#include <poll.h>
4
5
int main()
6
{
7
struct pollfd fds[1];
8
9
int p = open("/dev/tty", O_RDWR);
10
11
printf("tty: %d\n", p);
12
13
fds[0].fd = p;
14
fds[0].events = 3;
15
fds[0].revents = 0;
16
17
poll(fds, 1, -1);
18
19
printf("polled\n");
20
}