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