projects
/
firefly-linux-kernel-4.4.55.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[firefly-linux-kernel-4.4.55.git]
/
tools
/
build
/
feature
/
test-timerfd.c
1
/*
2
* test for timerfd functions used by perf-kvm-stat-live
3
*/
4
#include <sys/timerfd.h>
5
6
int main(void)
7
{
8
struct itimerspec new_value;
9
10
int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
11
if (fd < 0)
12
return 1;
13
14
if (timerfd_settime(fd, 0, &new_value, NULL) != 0)
15
return 1;
16
17
return 0;
18
}