Skip to content

Commit

Permalink
ssh/terminal: add support for zos
Browse files Browse the repository at this point in the history
Fixes golang/go#42496

Change-Id: Iae2ddb916904d9b3947bec9638c9fbf892df7b7c
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/269177
Reviewed-by: Tobias Klauser <[email protected]>
Trust: Tobias Klauser <[email protected]>
Trust: Michael Munday <[email protected]>
Run-TryBot: Tobias Klauser <[email protected]>
TryBot-Result: Go Bot <[email protected]>
  • Loading branch information
mahdi-hm authored and tklauser committed Nov 12, 2020
1 parent 07bee37 commit c955d0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions util_zos.go
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c955d0b

Please sign in to comment.