Home
last modified time | relevance | path

Searched refs:g_kbdfd (Results 1 – 1 of 1) sorted by relevance

/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/platform/libpicofe/linux/
H A Dxenv.c316 static int g_kbdfd = -1; variable
323 g_kbdfd = open("/dev/tty", O_RDWR); in tty_init()
324 if (g_kbdfd == -1) { in tty_init()
329 if (ioctl(g_kbdfd, KDGETMODE, &mode) == -1) { in tty_init()
334 if (tcgetattr(g_kbdfd, &kbd_termios) == -1) { in tty_init()
359 close(g_kbdfd); in tty_init()
360 g_kbdfd = -1; in tty_init()
366 if (g_kbdfd < 0) in tty_end()
369 if (ioctl(g_kbdfd, KDSETMODE, KD_TEXT) == -1) in tty_end()
375 close(g_kbdfd); in tty_end()
[all …]