/*
 * test for timerfd functions used by perf-kvm-stat-live
 */
#include <sys/timerfd.h>

int main(void)
{
	struct itimerspec new_value;

	int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
	if (fd < 0)
		return 1;

	if (timerfd_settime(fd, 0, &new_value, NULL) != 0)
		return 1;

	return 0;
}
nk rel='vcs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/>
<link rel='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='86bc8b310f1f323ccc9a311933e35d3442473034'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=86bc8b310f1f323ccc9a311933e35d3442473034'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/x25/x25_proc.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/x25/x25_proc.c?id=86bc8b310f1f323ccc9a311933e35d3442473034'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/x25/x25_proc.c?id=86bc8b310f1f323ccc9a311933e35d3442473034'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/x25/x25_proc.c?id=86bc8b310f1f323ccc9a311933e35d3442473034'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/x25/x25_proc.c'>
<input type='hidden' name='id' value='86bc8b310f1f323ccc9a311933e35d3442473034'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=86bc8b310f1f323ccc9a311933e35d3442473034'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?id=86bc8b310f1f323ccc9a311933e35d3442473034'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/x25?id=86bc8b310f1f323ccc9a311933e35d3442473034'>x25</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/x25/x25_proc.c?id=86bc8b310f1f323ccc9a311933e35d3442473034'>x25_proc.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/x25/x25_proc.c?id=86bc8b310f1f323ccc9a311933e35d3442473034&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>