static int qemu_chr_open_win_file_out(QemuOpts *opts, CharDriverState **_chr)

{

    const char *file_out = qemu_opt_get(opts, "path");

    HANDLE fd_out;



    fd_out = CreateFile(file_out, GENERIC_WRITE, FILE_SHARE_READ, NULL,

                        OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

    if (fd_out == INVALID_HANDLE_VALUE) {

        return -EIO;

    }



    return qemu_chr_open_win_file(fd_out, _chr);

}

static int qemu_chr_open_win_file_out(QemuOpts *opts, CharDriverState **_chr)

{

    const char *file_out = qemu_opt_get(opts, "path");

    HANDLE fd_out;



    fd_out = CreateFile(file_out, GENERIC_WRITE, FILE_SHARE_READ, NULL,

                        OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

    if (fd_out == INVALID_HANDLE_VALUE) {

        return -EIO;

    }



    return qemu_chr_open_win_file(fd_out, _chr);

}

        return -EIO;         return -EIO; static int qemu_chr_open_win_file_out(QemuOpts *opts, CharDriverState **_chr)     if (fd_out == INVALID_HANDLE_VALUE) {         return -EIO;     return qemu_chr_open_win_file(fd_out, _chr);         return -EIO;
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)

{

    const char *VAR_2 = qemu_opt_get(VAR_0, "path");

    HANDLE fd_out;



    fd_out = CreateFile(VAR_2, GENERIC_WRITE, FILE_SHARE_READ, NULL,

                        OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

    if (fd_out == INVALID_HANDLE_VALUE) {

        return -EIO;

    }



    return qemu_chr_open_win_file(fd_out, VAR_1);

}

static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)
{ const char *VAR_2 = qemu_opt_get(VAR_0, "path"); HANDLE fd_out; fd_out = CreateFile(VAR_2, GENERIC_WRITE, FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (fd_out == INVALID_HANDLE_VALUE) { return -EIO; } return qemu_chr_open_win_file(fd_out, VAR_1); }