static int gd_vc_chr_write(CharDriverState *chr, const uint8_t *buf, int len)

{

    VirtualConsole *vc = chr->opaque;



    return vc ? write(vc->fd, buf, len) : len;

}

static int gd_vc_chr_write(CharDriverState *chr, const uint8_t *buf, int len)

{

    VirtualConsole *vc = chr->opaque;



    return vc ? write(vc->fd, buf, len) : len;

}

    return vc ? write(vc->fd, buf, len) : len;
static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)

{

    VirtualConsole *vc = VAR_0->opaque;



    return vc ? write(vc->fd, VAR_1, VAR_2) : VAR_2;

}

static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)
{ VirtualConsole *vc = VAR_0->opaque; return vc ? write(vc->fd, VAR_1, VAR_2) : VAR_2; }