int qemu_eventfd(int *fds)

{

#if defined(SYS_eventfd)

    int ret;



    ret = syscall(SYS_eventfd, 0);

    if (ret >= 0) {

        fds[0] = fds[1] = ret;

        return 0;

    } else if (!(ret == -1 && errno == ENOSYS))

        return ret;

#endif



    return pipe(fds);

}

int qemu_eventfd(int *fds)

{

#if defined(SYS_eventfd)

    int ret;



    ret = syscall(SYS_eventfd, 0);

    if (ret >= 0) {

        fds[0] = fds[1] = ret;

        return 0;

    } else if (!(ret == -1 && errno == ENOSYS))

        return ret;

#endif



    return pipe(fds);

}

#if defined(SYS_eventfd)     } else if (!(ret == -1 && errno == ENOSYS))         return ret;
int FUNC_0(int *VAR_0)

{

#if defined(SYS_eventfd)

    int ret;



    ret = syscall(SYS_eventfd, 0);

    if (ret >= 0) {

        VAR_0[0] = VAR_0[1] = ret;

        return 0;

    } else if (!(ret == -1 && errno == ENOSYS))

        return ret;

#endif



    return pipe(VAR_0);

}

int FUNC_0(int *VAR_0)
{ #if defined(SYS_eventfd)
int ret; ret = syscall(SYS_eventfd, 0); if (ret >= 0) { VAR_0[0] = VAR_0[1] = ret; return 0; } else if (!(ret == -1 && errno == ENOSYS)) return ret; #endif
return pipe(VAR_0); }