static int exec_close(MigrationState *s)

{

    int ret = 0;

    DPRINTF("exec_close\n");

    ret = qemu_fclose(s->opaque);

    s->opaque = NULL;

    s->fd = -1;

    if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) {

        /* close succeeded, but non-zero exit code: */

        ret = -EIO; /* fake errno value */

    }

    return ret;

}

static int exec_close(MigrationState *s)

{

    int ret = 0;

    DPRINTF("exec_close\n");

    ret = qemu_fclose(s->opaque);

    s->opaque = NULL;

    s->fd = -1;

    if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) {

        

        ret = -EIO; 

    }

    return ret;

}

static int FUNC_0(MigrationState *VAR_0)

{

    int VAR_1 = 0;

    DPRINTF("FUNC_0\n");

    VAR_1 = qemu_fclose(VAR_0->opaque);

    VAR_0->opaque = NULL;

    VAR_0->fd = -1;

    if (VAR_1 >= 0 && !(WIFEXITED(VAR_1) && WEXITSTATUS(VAR_1) == 0)) {

        

        VAR_1 = -EIO; 

    }

    return VAR_1;

}

static int FUNC_0(MigrationState *VAR_0)
{ int VAR_1 = 0; DPRINTF("FUNC_0\n"); VAR_1 = qemu_fclose(VAR_0->opaque); VAR_0->opaque = NULL; VAR_0->fd = -1; if (VAR_1 >= 0 && !(WIFEXITED(VAR_1) && WEXITSTATUS(VAR_1) == 0)) { VAR_1 = -EIO; } return VAR_1; }