From c955d0b553c8bdbd6b706f42bc6fea84ea58a6e1 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Moghaddam Date: Tue, 10 Nov 2020 19:44:30 -0800 Subject: [PATCH] ssh/terminal: add support for zos Fixes golang/go#42496 Change-Id: Iae2ddb916904d9b3947bec9638c9fbf892df7b7c Reviewed-on: https://go-review.googlesource.com/c/crypto/+/269177 Reviewed-by: Tobias Klauser Trust: Tobias Klauser Trust: Michael Munday Run-TryBot: Tobias Klauser TryBot-Result: Go Bot --- util.go | 2 +- util_zos.go | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 util_zos.go diff --git a/util.go b/util.go index 3911040..73b370a 100644 --- a/util.go +++ b/util.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd +// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd zos // Package terminal provides support functions for dealing with terminals, as // commonly found on UNIX systems. diff --git a/util_zos.go b/util_zos.go new file mode 100644 index 0000000..8314a2d --- /dev/null +++ b/util_zos.go @@ -0,0 +1,10 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package terminal + +import "golang.org/x/sys/unix" + +const ioctlReadTermios = unix.TCGETS +const ioctlWriteTermios = unix.TCSETS