mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:07:35 +00:00
Ports: Remove obsolete /dev/tty patches
This commit is contained in:
parent
39b5bb4162
commit
55a42906a7
3 changed files with 0 additions and 33 deletions
|
@ -1,10 +0,0 @@
|
||||||
+++ emu2-master/src/keyb.c 2021-04-14 09:28:52.597237515 -0700
|
|
||||||
@@ -385,7 +385,7 @@
|
|
||||||
{
|
|
||||||
if(tty_fd < 0)
|
|
||||||
{
|
|
||||||
- tty_fd = open("/dev/tty", O_NOCTTY | O_RDONLY);
|
|
||||||
+ tty_fd = open(ttyname(0), O_NOCTTY | O_RDONLY);
|
|
||||||
if(tty_fd < 0)
|
|
||||||
{
|
|
||||||
print_error("error at open TTY, %s\n", strerror(errno));
|
|
|
@ -1,10 +0,0 @@
|
||||||
+++ emu2-master/src/video.c 2021-04-14 09:29:03.273155128 -0700
|
|
||||||
@@ -154,7 +154,7 @@
|
|
||||||
static void init_video(void)
|
|
||||||
{
|
|
||||||
debug(debug_video, "starting video emulation.\n");
|
|
||||||
- int tty_fd = open("/dev/tty", O_NOCTTY | O_WRONLY);
|
|
||||||
+ int tty_fd = open(ttyname(0), O_NOCTTY | O_WRONLY);
|
|
||||||
if(tty_fd < 0)
|
|
||||||
{
|
|
||||||
print_error("error at open TTY, %s\n", strerror(errno));
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/tty.c b/tty.c
|
|
||||||
index a72e5cd..96fa904 100644
|
|
||||||
--- a/tty.c
|
|
||||||
+++ b/tty.c
|
|
||||||
@@ -33,7 +33,7 @@ tty_init(int init_ttystate)
|
|
||||||
tty_close();
|
|
||||||
tty_devtty = 1;
|
|
||||||
|
|
||||||
- tfd = open("/dev/tty", O_RDWR, 0);
|
|
||||||
+ tfd = open("/dev/tty0", O_RDWR, 0);
|
|
||||||
if (tfd == -1) {
|
|
||||||
tty_devtty = 0;
|
|
||||||
warningf(false, "No controlling tty (open /dev/tty: %s)",
|
|
Loading…
Add table
Add a link
Reference in a new issue