int event_notifier_init(EventNotifier *e, int active)

{

#ifdef CONFIG_EVENTFD

    int fd = eventfd(!!active, EFD_NONBLOCK | EFD_CLOEXEC);

    if (fd < 0)

        return -errno;

    e->fd = fd;

    return 0;

#else

    return -ENOSYS;

#endif

}

int event_notifier_init(EventNotifier *e, int active)

{

#ifdef CONFIG_EVENTFD

    int fd = eventfd(!!active, EFD_NONBLOCK | EFD_CLOEXEC);

    if (fd < 0)

        return -errno;

    e->fd = fd;

    return 0;

#else

    return -ENOSYS;

#endif

}

int FUNC_0(EventNotifier *VAR_0, int VAR_1)

{

#ifdef CONFIG_EVENTFD

    int fd = eventfd(!!VAR_1, EFD_NONBLOCK | EFD_CLOEXEC);

    if (fd < 0)

        return -errno;

    VAR_0->fd = fd;

    return 0;

#else

    return -ENOSYS;

#endif

}

int FUNC_0(EventNotifier *VAR_0, int VAR_1)
{ #ifdef CONFIG_EVENTFD
int fd = eventfd(!!VAR_1, EFD_NONBLOCK | EFD_CLOEXEC); if (fd < 0)
return -errno; VAR_0->fd = fd; return 0; #else
return -ENOSYS; #endif
}