qemu-e2k/ui
Michael Tokarev 4efeabbbe8 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>
2013-06-14 14:28:43 +04:00
..
cocoa.m cocoa: Avoid deprecated NSOpenPanel beginSheetForDirectory 2013-05-29 01:28:31 +02:00
console.c qemu-char: don't issue CHR_EVENT_OPEN in a BH 2013-06-10 11:38:37 -05:00
curses_keys.h
curses.c console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c
d3des.c
d3des.h
gtk.c create qemu_openpty_raw() helper function and move it to a separate file 2013-06-14 14:28:43 +04:00
input.c ui/input.c: replace magic numbers with macros 2013-05-23 09:58:45 -04:00
keymaps.c
keymaps.h
Makefile.objs
qemu-pixman.c pixman: render vgafont glyphs into pixman images 2013-04-16 09:03:47 +02:00
qemu-x509.h
sdl_keysym.h
sdl_zoom_template.h
sdl_zoom.c
sdl_zoom.h
sdl.c console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
spice-core.c
spice-display.c console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
spice-input.c
vgafont.h
vnc_keysym.h
vnc-auth-sasl.c
vnc-auth-sasl.h
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c vnc: stop using DisplayState 2013-03-18 10:21:58 +01:00
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c vnc: stop using DisplayState 2013-03-18 10:21:58 +01:00
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-tls.c TLS support for VNC Websockets 2013-05-03 12:04:57 -05:00
vnc-tls.h
vnc-ws.c TLS support for VNC Websockets 2013-05-03 12:04:57 -05:00
vnc-ws.h TLS support for VNC Websockets 2013-05-03 12:04:57 -05:00
vnc.c vnc: Make ledstate comparison before modifiers updated 2013-05-15 08:48:43 -05:00
vnc.h TLS support for VNC Websockets 2013-05-03 12:04:57 -05:00
x_keymap.c
x_keymap.h