static void tap_receive(void *opaque, const uint8_t *buf, size_t size)

{

    TAPState *s = opaque;

    int ret;

    for(;;) {

        ret = write(s->fd, buf, size);

        if (ret < 0 && (errno == EINTR || errno == EAGAIN)) {

        } else {

            break;

        }

    }

}

static void tap_receive(void *opaque, const uint8_t *buf, size_t size)

{

    TAPState *s = opaque;

    int ret;

    for(;;) {

        ret = write(s->fd, buf, size);

        if (ret < 0 && (errno == EINTR || errno == EAGAIN)) {

        } else {

            break;

        }

    }

}

static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)

{

    TAPState *s = VAR_0;

    int VAR_3;

    for(;;) {

        VAR_3 = write(s->fd, VAR_1, VAR_2);

        if (VAR_3 < 0 && (errno == EINTR || errno == EAGAIN)) {

        } else {

            break;

        }

    }

}

static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{ TAPState *s = VAR_0; int VAR_3; for(;;) { VAR_3 = write(s->fd, VAR_1, VAR_2); if (VAR_3 < 0 && (errno == EINTR || errno == EAGAIN)) { } else { break; } } }