From 9b5186374412d895b49368bef0ffdecd201ccbe9 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 --- util.go | 2 +- util_aix.go | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 util_aix.go diff --git a/util.go b/util.go index 731c89a..9a3fb09 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 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/util_aix.go b/util_aix.go new file mode 100644 index 0000000..dfcd627 --- /dev/null +++ b/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