All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Anthony Liguori" <aliguori@us.ibm.com>,
	"Brad Smith" <brad@comstyle.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: Tue, 11 Jun 2013 16:57:13 +0400	[thread overview]
Message-ID: <51B71EA9.1020307@msgid.tls.msk.ru> (raw)
In-Reply-To: <1370445949-6666-1-git-send-email-mjt@msgid.tls.msk.ru>

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>

Thanks,

/mjt

  parent reply	other threads:[~2013-06-11 12:57 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 [this message]
2013-06-12 23:49   ` Brad Smith
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=51B71EA9.1020307@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=brad@comstyle.com \
    --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.