All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brad Smith <brad@comstyle.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Anthony Liguori" <aliguori@us.ibm.com>,
	qemu-devel@nongnu.org, "Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v2] create qemu_openpty_raw() helper function and move it to a separate file
Date: Wed, 12 Jun 2013 19:49:29 -0400	[thread overview]
Message-ID: <51B90909.2010805@comstyle.com> (raw)
In-Reply-To: <51B71EA9.1020307@msgid.tls.msk.ru>

On 11/06/13 8:57 AM, Michael Tokarev wrote:
> 05.06.2013 19:25, Michael Tokarev wrote:
>> In two places qemu uses openpty() which is very system-dependent,
>> and in both places the pty is switched to raw mode as well.
>> Make a wrapper function which does both steps, and move all the
>> system-dependent complexity into a separate file, together
>> with static/local implementations of openpty() and cfmakeraw()
>> from qemu-char.c.
>>
>> It is in a separate file, not part of oslib-posix.c, because
>> openpty() often resides in -lutil which is not linked to
>> every program qemu builds.
>>
>> This change removes #including of <pty.h>, <termios.h>
>> and other rather specific system headers out of qemu-common.h,
>> which isn't a place for such specific headers really.
>
> So guys/gals what do you think of this?  It builds on OpenBSD
> and FreeBSD as verified by Brad Smith and me, and it builds on
> Linux.  And it is trivial enough for qemu-trivial (no actual
> code changes, just some refactoring and moving).  Can we
> let it in?
>
> There's no one else who signed this off ;)
>
>> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

It would be nice to get this in to fix the build with Solaris (that's
if there is nothing else I am not aware of which breaks the build there) 
and to get this in the queue for 1.5 too.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

  reply	other threads:[~2013-06-12 23:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 15:25 [Qemu-devel] [PATCH v2] create qemu_openpty_raw() helper function and move it to a separate file Michael Tokarev
2013-06-07 15:05 ` Brad Smith
2013-06-11 12:57 ` Michael Tokarev
2013-06-12 23:49   ` Brad Smith [this message]
2013-06-13  6:57     ` Michael Tokarev
2013-06-13  8:50 ` Andreas Färber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51B90909.2010805@comstyle.com \
    --to=brad@comstyle.com \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=mjt@tls.msk.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.