mm, oom: do not rely on TIF_MEMDIE for memory reserves access
[linux/fpc-iii.git] / tools / build / feature / test-timerfd.c
blob8c5c083b4d3caadf8bc92b82910a261f3f91a16a
1 /*
2 * test for timerfd functions used by perf-kvm-stat-live
3 */
4 #include <sys/timerfd.h>
6 int main(void)
8 struct itimerspec new_value;
10 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
11 if (fd < 0)
12 return 1;
14 if (timerfd_settime(fd, 0, &new_value, NULL) != 0)
15 return 1;
17 return 0;