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

{

    QEMUFileStdio *s = opaque;

    FILE *fp = s->stdio_file;

    int bytes;



    do {

        clearerr(fp);

        bytes = fread(buf, 1, size, fp);

    } while ((bytes == 0) && ferror(fp) && (errno == EINTR));

    return bytes;

}

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

{

    QEMUFileStdio *s = opaque;

    FILE *fp = s->stdio_file;

    int bytes;



    do {

        clearerr(fp);

        bytes = fread(buf, 1, size, fp);

    } while ((bytes == 0) && ferror(fp) && (errno == EINTR));

    return bytes;

}

    do {     do {     } while ((bytes == 0) && ferror(fp) && (errno == EINTR));
static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int64_t VAR_2, int VAR_3)

{

    QEMUFileStdio *s = VAR_0;

    FILE *fp = s->stdio_file;

    int VAR_4;



    do {

        clearerr(fp);

        VAR_4 = fread(VAR_1, 1, VAR_3, fp);

    } while ((VAR_4 == 0) && ferror(fp) && (errno == EINTR));

    return VAR_4;

}

static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int64_t VAR_2, int VAR_3)
{ QEMUFileStdio *s = VAR_0; FILE *fp = s->stdio_file; int VAR_4; do { clearerr(fp); VAR_4 = fread(VAR_1, 1, VAR_3, fp); } while ((VAR_4 == 0) && ferror(fp) && (errno == EINTR)); return VAR_4; }