Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh ksh: Remove remnant hack for SCO UNIX in tty code



details:   https://anonhg.NetBSD.org/src/rev/3eb088840217
branches:  trunk
changeset: 824932:3eb088840217
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Jun 23 00:11:01 2017 +0000

description:
ksh: Remove remnant hack for SCO UNIX in tty code

diffstat:

 bin/ksh/tty.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r d7287e2bf773 -r 3eb088840217 bin/ksh/tty.c
--- a/bin/ksh/tty.c     Fri Jun 23 00:09:36 2017 +0000
+++ b/bin/ksh/tty.c     Fri Jun 23 00:11:01 2017 +0000
@@ -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_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 @@
                                devtty, strerror(errno));
                }
        }
-#else /* !__SCO__ */
-       tfd = -1;
-#endif /* __SCO__ */
 
        if (tfd < 0) {
                do_close = 0;



Home | Main Index | Thread Index | Old Index