summaryrefslogtreecommitdiff
path: root/make/check_eventfd.cpp
blob: 199cbcd31cb3eb3aca4c67994d00dcc05888b949 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <sys/eventfd.h>

int main() {
	eventfd_t efd_data;
	int fd;

	fd = eventfd(0, EFD_NONBLOCK);
	eventfd_read(fd, &efd_data);

	return (fd < 0);
}