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

{

    int fd_out;



    TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"),

                      O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));

    if (fd_out < 0) {

        return -errno;

    }



    *_chr = qemu_chr_open_fd(-1, fd_out);

    return 0;

}

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

{

    int fd_out;



    TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"),

                      O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));

    if (fd_out < 0) {

        return -errno;

    }



    *_chr = qemu_chr_open_fd(-1, fd_out);

    return 0;

}

    return 0;     return 0;     return 0;     return 0; static int qemu_chr_open_file_out(QemuOpts *opts, CharDriverState **_chr)     if (fd_out < 0) {         return -errno;     *_chr = qemu_chr_open_fd(-1, fd_out);     return 0;     return 0;     return 0;         return -errno;     return 0;         return -errno;     return 0;         return -errno;         return -errno;     return 0;         return -errno;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)

{

    int VAR_2;



    TFR(VAR_2 = qemu_open(qemu_opt_get(VAR_0, "path"),

                      O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));

    if (VAR_2 < 0) {

        return -errno;

    }



    *VAR_1 = qemu_chr_open_fd(-1, VAR_2);

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)
{ int VAR_2; TFR(VAR_2 = qemu_open(qemu_opt_get(VAR_0, "path"),
O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666)); if (VAR_2 < 0) { return -errno; } *VAR_1 = qemu_chr_open_fd(-1, VAR_2); return 0; }