summaryrefslogblamecommitdiff
path: root/src/linux/eventfd_write.c
blob: 734fa367379635707f114c3e7aacf758dbc2c394 (plain) (tree)
1
2
3
4
5
6
7






                                                                            
#include <sys/eventfd.h>
#include <unistd.h>

int eventfd_write(int fd, eventfd_t value)
{
	return (sizeof(value) == write(fd, &value, sizeof(value))) ? 0 : -1;
}