qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] pty/tty functions for BSD too


From: Blue Swirl
Subject: Re: [Qemu-devel] pty/tty functions for BSD too
Date: Mon, 18 Aug 2008 19:16:36 +0300

On 8/18/08, Samuel Thibault <address@hidden> wrote:
> Anthony Liguori, le Mon 18 Aug 2008 09:06:41 -0500, a écrit :
>
> > Samuel Thibault wrote:
>  > >In Xen, pty/tty functions are enabled for BSD too, shouldn't we enable
>  > >them in upstream qemu too, as patched below?
>  > >
>  >
>  > And you're sure that these functions compile/work on NetBSD/OpenBSD?
>
>
> The defines are explicit in Xen, so I guess somebody tested it.  I
>  haven't myself.  I wonder why there is no FreeBSD however.

The patch does not work on OpenBSD, because while openpty() is
available, ptsname() isn't.

I tested the attached version on OpenBSD and Linux, pty name is
printed correctly.

Attachment: obsd_enable_pty_code.diff
Description: plain/text


reply via email to

[Prev in Thread] Current Thread [Next in Thread]