blob: 4be06c435bd17692225126025d703f0d08b15b12 [file] [log] [blame]
Fei Jiebbdd23c2016-04-08 15:59:14 +08001#include "tests.h"
2#include <sys/syscall.h>
3
4#ifdef __NR_epoll_create
5
Fei Jiebbdd23c2016-04-08 15:59:14 +08006# include <stdio.h>
7# include <unistd.h>
8
9int
10main(void)
11{
Dmitry V. Levin82431752016-04-21 20:35:20 +000012 const long int size = (long int) 0xdeadbeefffffffff;
13
14 long rc = syscall(__NR_epoll_create, size);
15 printf("epoll_create(%d) = %ld %s (%m)\n",
16 (int) size, rc, errno2name());
Fei Jiebbdd23c2016-04-08 15:59:14 +080017
18 puts("+++ exited with 0 +++");
19 return 0;
20}
21
22#else
23
24SKIP_MAIN_UNDEFINED("__NR_epoll_creat")
25
26#endif