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

{

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

    CharDriverState *chr;

    int fd;



    fd = qemu_open(filename, O_RDWR);

    if (fd < 0) {

        return -errno;

    }



    chr = g_malloc0(sizeof(CharDriverState));

    chr->opaque = (void *)(intptr_t)fd;

    chr->chr_write = null_chr_write;

    chr->chr_ioctl = pp_ioctl;



    *_chr = chr;

    return 0;

}

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

{

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

    CharDriverState *chr;

    int fd;



    fd = qemu_open(filename, O_RDWR);

    if (fd < 0) {

        return -errno;

    }



    chr = g_malloc0(sizeof(CharDriverState));

    chr->opaque = (void *)(intptr_t)fd;

    chr->chr_write = null_chr_write;

    chr->chr_ioctl = pp_ioctl;



    *_chr = chr;

    return 0;

}

    *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     return 0;         return -errno;     return 0;     return 0;     *_chr = chr;     return 0;         return -errno;     *_chr = chr;     return 0;         return -errno;     *_chr = chr;     return 0; static int qemu_chr_open_pp(QemuOpts *opts, CharDriverState **_chr)     if (fd < 0) {         return -errno;         return -errno;     *_chr = chr;     return 0; static int qemu_chr_open_pp(QemuOpts *opts, CharDriverState **_chr)     fd = qemu_open(filename, O_RDWR);     if (fd < 0) {         return -errno;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     if (fd < 0) {     *_chr = chr;     return 0;     *_chr = chr;     return 0;
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)

{

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

    CharDriverState *chr;

    int VAR_3;



    VAR_3 = qemu_open(VAR_2, O_RDWR);

    if (VAR_3 < 0) {

        return -errno;

    }



    chr = g_malloc0(sizeof(CharDriverState));

    chr->opaque = (void *)(intptr_t)VAR_3;

    chr->chr_write = null_chr_write;

    chr->chr_ioctl = pp_ioctl;



    *VAR_1 = chr;

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)
{ const char *VAR_2 = qemu_opt_get(VAR_0, "path"); CharDriverState *chr; int VAR_3; VAR_3 = qemu_open(VAR_2, O_RDWR); if (VAR_3 < 0) { return -errno; } chr = g_malloc0(sizeof(CharDriverState)); chr->opaque = (void *)(intptr_t)VAR_3; chr->chr_write = null_chr_write; chr->chr_ioctl = pp_ioctl; *VAR_1 = chr; return 0; }