diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-13 09:10:46 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-15 20:04:02 +1100 |
commit | ddc0f3814881ea279a6b6d4d98e03afc60ae1ed7 (patch) | |
tree | d09efd846cd29f2dfeb0acd04756294e4f6761c9 /openbsd-compat/bsd-openpty.c | |
parent | 174bed686968494723e6db881208cc4dac0d020f (diff) |
Remove UNICOS support.
The code required to support it is quite invasive to the mainline
code that is synced with upstream and is an ongoing maintenance burden.
Both the hardware and software are literal museum pieces these days and
we could not find anyone still running OpenSSH on one.
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index b28235860..48fb6059e 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -147,17 +147,6 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
147 | } | 147 | } |
148 | return (0); | 148 | return (0); |
149 | 149 | ||
150 | #elif defined(_UNICOS) | ||
151 | char ptbuf[64], ttbuf[64]; | ||
152 | int i; | ||
153 | int highpty; | ||
154 | |||
155 | highpty = 128; | ||
156 | #ifdef _SC_CRAY_NPTY | ||
157 | if ((highpty = sysconf(_SC_CRAY_NPTY)) == -1) | ||
158 | highpty = 128; | ||
159 | #endif /* _SC_CRAY_NPTY */ | ||
160 | |||
161 | for (i = 0; i < highpty; i++) { | 150 | for (i = 0; i < highpty; i++) { |
162 | snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i); | 151 | snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i); |
163 | snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%03d", i); | 152 | snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%03d", i); |