static int stdio_pclose(void *opaque)

{

    QEMUFileStdio *s = opaque;

    int ret;

    ret = pclose(s->stdio_file);

    if (ret == -1) {

        ret = -errno;

    } else if (!WIFEXITED(ret) || WEXITSTATUS(ret) != 0) {

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

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

    }

    g_free(s);

    return ret;

}

static int stdio_pclose(void *opaque)

{

    QEMUFileStdio *s = opaque;

    int ret;

    ret = pclose(s->stdio_file);

    if (ret == -1) {

        ret = -errno;

    } else if (!WIFEXITED(ret) || WEXITSTATUS(ret) != 0) {

        

        ret = -EIO; 

    }

    g_free(s);

    return ret;

}

static int FUNC_0(void *VAR_0)

{

    QEMUFileStdio *s = VAR_0;

    int VAR_1;

    VAR_1 = pclose(s->stdio_file);

    if (VAR_1 == -1) {

        VAR_1 = -errno;

    } else if (!WIFEXITED(VAR_1) || WEXITSTATUS(VAR_1) != 0) {

        

        VAR_1 = -EIO; 

    }

    g_free(s);

    return VAR_1;

}

static int FUNC_0(void *VAR_0)
{ QEMUFileStdio *s = VAR_0; int VAR_1; VAR_1 = pclose(s->stdio_file); if (VAR_1 == -1) { VAR_1 = -errno; } else if (!WIFEXITED(VAR_1) || WEXITSTATUS(VAR_1) != 0) { VAR_1 = -EIO; } g_free(s); return VAR_1; }