blob: caa30271e3c06d2822d22cbe3aa0ffa43956f8a2 [file] [log] [blame]
Elliott Hughesd35df492017-02-15 15:19:05 -08001#include "tests.h"
2#include <asm/unistd.h>
3
4#ifdef __NR_epoll_wait
5
6# include <stdio.h>
7# include <sys/epoll.h>
8# include <unistd.h>
9
10int
11main(void)
12{
Elliott Hughes39bac052017-05-25 16:56:11 -070013 TAIL_ALLOC_OBJECT_CONST_PTR(struct epoll_event, ev);
Elliott Hughesd35df492017-02-15 15:19:05 -080014
15 long rc = syscall(__NR_epoll_wait, -1, ev, 1, -2);
16 printf("epoll_wait(-1, %p, 1, -2) = %ld %s (%m)\n",
17 ev, rc, errno2name());
18
19 puts("+++ exited with 0 +++");
20 return 0;
21}
22
23#else
24
25SKIP_MAIN_UNDEFINED("__NR_epoll_wait")
26
27#endif