Module Name: src
Committed By: kamil
Date: Fri Jun 23 00:11:01 UTC 2017
Modified Files:
src/bin/ksh: tty.c
Log Message:
ksh: Remove remnant hack for SCO UNIX in tty code
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/bin/ksh/tty.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/tty.c
diff -u src/bin/ksh/tty.c:1.6 src/bin/ksh/tty.c:1.7
--- src/bin/ksh/tty.c:1.6 Fri Jun 23 00:09:36 2017
+++ src/bin/ksh/tty.c Fri Jun 23 00:11:01 2017
@@ -1,9 +1,9 @@
-/* $NetBSD: tty.c,v 1.6 2017/06/23 00:09:36 kamil Exp $ */
+/* $NetBSD: tty.c,v 1.7 2017/06/23 00:11:01 kamil Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: tty.c,v 1.6 2017/06/23 00:09:36 kamil Exp $");
+__RCSID("$NetBSD: tty.c,v 1.7 2017/06/23 00:11:01 kamil Exp $");
#endif
@@ -109,8 +109,6 @@ tty_init(init_ttystate)
}
tty_devtty = 1;
- /* SCO can't job control on /dev/tty, so don't try... */
-#if !defined(__SCO__)
if ((tfd = open(devtty, O_RDWR, 0)) < 0) {
if (tfd < 0) {
tty_devtty = 0;
@@ -119,9 +117,6 @@ tty_init(init_ttystate)
devtty, strerror(errno));
}
}
-#else /* !__SCO__ */
- tfd = -1;
-#endif /* __SCO__ */
if (tfd < 0) {
do_close = 0;