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 support for NeXT Operating System
details: https://anonhg.NetBSD.org/src/rev/44608e9f4cd8
branches: trunk
changeset: 354630:44608e9f4cd8
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Jun 23 00:09:36 2017 +0000
description:
ksh: Remove support for NeXT Operating System
diffstat:
bin/ksh/sh.h | 10 +++-------
bin/ksh/tty.c | 20 ++------------------
2 files changed, 5 insertions(+), 25 deletions(-)
diffs (67 lines):
diff -r 9e0028c91220 -r 44608e9f4cd8 bin/ksh/sh.h
--- a/bin/ksh/sh.h Fri Jun 23 00:07:15 2017 +0000
+++ b/bin/ksh/sh.h Fri Jun 23 00:09:36 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sh.h,v 1.26 2017/06/22 23:50:24 kamil Exp $ */
+/* $NetBSD: sh.h,v 1.27 2017/06/23 00:09:36 kamil Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
-/* $Id: sh.h,v 1.26 2017/06/22 23:50:24 kamil Exp $ */
+/* $Id: sh.h,v 1.27 2017/06/23 00:09:36 kamil Exp $ */
#include "config.h" /* system and option configuration info */
@@ -553,11 +553,7 @@
/* Determine the location of the system (common) profile */
#ifndef KSH_SYSTEM_PROFILE
-# ifdef __NeXT
-# define KSH_SYSTEM_PROFILE "/etc/profile.std"
-# else /* __NeXT */
-# define KSH_SYSTEM_PROFILE "/etc/profile"
-# endif /* __NeXT */
+# define KSH_SYSTEM_PROFILE "/etc/profile"
#endif /* KSH_SYSTEM_PROFILE */
/* Used by v_evaluate() and setstr() to control action when error occurs */
diff -r 9e0028c91220 -r 44608e9f4cd8 bin/ksh/tty.c
--- a/bin/ksh/tty.c Fri Jun 23 00:07:15 2017 +0000
+++ b/bin/ksh/tty.c Fri Jun 23 00:09:36 2017 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: tty.c,v 1.5 2017/06/23 00:04:20 kamil Exp $ */
+/* $NetBSD: tty.c,v 1.6 2017/06/23 00:09:36 kamil Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: tty.c,v 1.5 2017/06/23 00:04:20 kamil Exp $");
+__RCSID("$NetBSD: tty.c,v 1.6 2017/06/23 00:09:36 kamil Exp $");
#endif
@@ -112,22 +112,6 @@
/* SCO can't job control on /dev/tty, so don't try... */
#if !defined(__SCO__)
if ((tfd = open(devtty, O_RDWR, 0)) < 0) {
-#ifdef __NeXT
- /* rlogin on NeXT boxes does not set up the controlling tty,
- * so force it to be done here...
- */
- {
- extern char *ttyname ARGS((int));
- char *s = ttyname(isatty(2) ? 2 : 0);
- int fd;
-
- if (s && (fd = open(s, O_RDWR, 0)) >= 0) {
- close(fd);
- tfd = open(devtty, O_RDWR, 0);
- }
- }
-#endif /* __NeXT */
-
if (tfd < 0) {
tty_devtty = 0;
warningf(FALSE,
Home |
Main Index |
Thread Index |
Old Index