From 9eb0be3963eaeb646c9a9b6d11f3da2b249bb2ca Mon Sep 17 00:00:00 2001 From: chigotc Date: Fri, 23 Nov 2018 16:23:17 +0100 Subject: [PATCH] ssh/terminal: add AIX operating system This commit adds AIX operation system to ssh/terminal package. Change-Id: I31ccec5512dbf476eaf22ff79951b5fab434d5fd Reviewed-on: https://go-review.googlesource.com/c/151077 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- ssh/terminal/util.go | 2 +- ssh/terminal/util_aix.go | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ssh/terminal/util_aix.go diff --git a/ssh/terminal/util.go b/ssh/terminal/util.go index 731c89a..9a3fb09 100644 --- a/ssh/terminal/util.go +++ b/ssh/terminal/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 darwin dragonfly freebsd linux,!appengine netbsd openbsd +// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd // Package terminal provides support functions for dealing with terminals, as // commonly found on UNIX systems. diff --git a/ssh/terminal/util_aix.go b/ssh/terminal/util_aix.go new file mode 100644 index 0000000..dfcd627 --- /dev/null +++ b/ssh/terminal/util_aix.go @@ -0,0 +1,12 @@ +// Copyright 2018 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. + +// +build aix + +package terminal + +import "golang.org/x/sys/unix" + +const ioctlReadTermios = unix.TCGETS +const ioctlWriteTermios = unix.TCSETS