qemu-irix/include
Michael Tokarev 0817fa9767 create qemu_openpty_raw() helper function and move it to a separate file
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.

This version has been verified to build correctly on Linux,
OpenBSD, FreeBSD and OpenIndiana.  On the latter it lets qemu
to be built with gtk gui which were not possible there due to
missing openpty() and cfmakeraw().

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-by: Andreas Färber <andreas.faerber@web.de>
(cherry picked from commit 4efeabbbe8)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-06-14 18:58:27 -05:00
..
block nbd: support large NBD requests 2013-05-03 13:05:49 +02:00
disas
exec tcg-arm: Convert to CONFIG_QEMU_LDST_OPTIMIZATION 2013-04-27 02:16:45 +02:00
fpu
hw xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional) 2013-06-11 17:25:03 -05:00
migration savevm: Implement block_writev_buffer() 2013-04-15 08:26:18 +02:00
monitor add a new qevent: QEVENT_GUEST_PANICKED 2013-04-30 10:30:01 -05:00
net hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qapi
qemu osdep: introduce qemu_anon_ram_free to free qemu_anon_ram_alloc-ed memory 2013-05-14 08:53:31 -05:00
qom qom: aggressively optimize qom casting 2013-05-13 15:27:18 -05:00
sysemu qemu-char: don't issue CHR_EVENT_OPEN in a BH 2013-06-12 15:18:12 -05:00
ui console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
config.h
elf.h
glib-compat.h
libfdt_env.h
qemu-common.h create qemu_openpty_raw() helper function and move it to a separate file 2013-06-14 18:58:27 -05:00
trace.h