summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-12-22 22:49:43 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-12-24 17:02:40 +0330
commit55a42906a71283dece67803e980ed97cdd9b5087 (patch)
tree66f3006b89b8b5adaf2558933790bef5f23cf691
parent39b5bb4162b2dcb4d6be4dd17f36adaa796f22d0 (diff)
downloadserenity-55a42906a71283dece67803e980ed97cdd9b5087.zip
Ports: Remove obsolete /dev/tty patches
-rw-r--r--Ports/emu2/patches/keyb.patch10
-rw-r--r--Ports/emu2/patches/video.patch10
-rw-r--r--Ports/oksh/patches/disable_tty.patch13
3 files changed, 0 insertions, 33 deletions
diff --git a/Ports/emu2/patches/keyb.patch b/Ports/emu2/patches/keyb.patch
deleted file mode 100644
index 5ab794b2cf..0000000000
--- a/Ports/emu2/patches/keyb.patch
+++ /dev/null
@@ -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));
diff --git a/Ports/emu2/patches/video.patch b/Ports/emu2/patches/video.patch
deleted file mode 100644
index 95bfe39852..0000000000
--- a/Ports/emu2/patches/video.patch
+++ /dev/null
@@ -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));
diff --git a/Ports/oksh/patches/disable_tty.patch b/Ports/oksh/patches/disable_tty.patch
deleted file mode 100644
index 4838fe1e4e..0000000000
--- a/Ports/oksh/patches/disable_tty.patch
+++ /dev/null
@@ -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)",