static void gpollfds_to_select(int ret)

{

    int i;



    FD_ZERO(&rfds);

    FD_ZERO(&wfds);

    FD_ZERO(&xfds);



    if (ret <= 0) {

        return;

    }



    for (i = 0; i < gpollfds->len; i++) {

        int fd = g_array_index(gpollfds, GPollFD, i).fd;

        int revents = g_array_index(gpollfds, GPollFD, i).revents;



        if (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR)) {

            FD_SET(fd, &rfds);

        }

        if (revents & (G_IO_OUT | G_IO_ERR)) {

            FD_SET(fd, &wfds);

        }

        if (revents & G_IO_PRI) {

            FD_SET(fd, &xfds);

        }

    }

}

static void gpollfds_to_select(int ret)

{

    int i;



    FD_ZERO(&rfds);

    FD_ZERO(&wfds);

    FD_ZERO(&xfds);



    if (ret <= 0) {

        return;

    }



    for (i = 0; i < gpollfds->len; i++) {

        int fd = g_array_index(gpollfds, GPollFD, i).fd;

        int revents = g_array_index(gpollfds, GPollFD, i).revents;



        if (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR)) {

            FD_SET(fd, &rfds);

        }

        if (revents & (G_IO_OUT | G_IO_ERR)) {

            FD_SET(fd, &wfds);

        }

        if (revents & G_IO_PRI) {

            FD_SET(fd, &xfds);

        }

    }

}

static void FUNC_0(int VAR_0)

{

    int VAR_1;



    FD_ZERO(&rfds);

    FD_ZERO(&wfds);

    FD_ZERO(&xfds);



    if (VAR_0 <= 0) {

        return;

    }



    for (VAR_1 = 0; VAR_1 < gpollfds->len; VAR_1++) {

        int fd = g_array_index(gpollfds, GPollFD, VAR_1).fd;

        int revents = g_array_index(gpollfds, GPollFD, VAR_1).revents;



        if (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR)) {

            FD_SET(fd, &rfds);

        }

        if (revents & (G_IO_OUT | G_IO_ERR)) {

            FD_SET(fd, &wfds);

        }

        if (revents & G_IO_PRI) {

            FD_SET(fd, &xfds);

        }

    }

}

static void FUNC_0(int VAR_0)
{ int VAR_1; FD_ZERO(&rfds); FD_ZERO(&wfds); FD_ZERO(&xfds); if (VAR_0 <= 0) { return; } for (VAR_1 = 0; VAR_1 < gpollfds->len; VAR_1++) { int fd = g_array_index(gpollfds, GPollFD, VAR_1).fd; int revents = g_array_index(gpollfds, GPollFD, VAR_1).revents; if (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR)) { FD_SET(fd, &rfds); } if (revents & (G_IO_OUT | G_IO_ERR)) { FD_SET(fd, &wfds); } if (revents & G_IO_PRI) { FD_SET(fd, &xfds); } } }