Received: from eggs.gnu.org ([2001:4830:134:3::10]:46308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmO8V-000744-4z for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmO8R-0002xm-4j for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:57:19 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:50589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmO8Q-0002xg-Ti for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:57:15 -0400 Message-ID: <51B71EA9.1020307@msgid.tls.msk.ru> Date: Tue, 11 Jun 2013 16:57:13 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1370445949-6666-1-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1370445949-6666-1-git-send-email-mjt@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] create qemu_openpty_raw() helper function and move it to a separate file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Paolo Bonzini , Anthony Liguori , Brad Smith , qemu-devel@nongnu.org, =?ISO-8859-1?Q?Andreas_F=E4rber?= 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 , > 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 Thanks, /mjt