static int socket_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)

{

    QEMUFileSocket *s = opaque;

    ssize_t len;



    do {

        len = qemu_recv(s->fd, buf, size, 0);

    } while (len == -1 && socket_error() == EINTR);



    if (len == -1)

        len = -socket_error();



    return len;

}

static int socket_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)

{

    QEMUFileSocket *s = opaque;

    ssize_t len;



    do {

        len = qemu_recv(s->fd, buf, size, 0);

    } while (len == -1 && socket_error() == EINTR);



    if (len == -1)

        len = -socket_error();



    return len;

}

    do {     } while (len == -1 && socket_error() == EINTR);     if (len == -1)     do {
static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int64_t VAR_2, int VAR_3)

{

    QEMUFileSocket *s = VAR_0;

    ssize_t len;



    do {

        len = qemu_recv(s->fd, VAR_1, VAR_3, 0);

    } while (len == -1 && socket_error() == EINTR);



    if (len == -1)

        len = -socket_error();



    return len;

}

static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int64_t VAR_2, int VAR_3)
{ QEMUFileSocket *s = VAR_0; ssize_t len; do { len = qemu_recv(s->fd, VAR_1, VAR_3, 0); } while (len == -1 && socket_error() == EINTR); if (len == -1)
len = -socket_error(); return len; }