summaryrefslogtreecommitdiff
path: root/vendor/github.com/moby/term/tc.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-17 15:18:17 -0400
committerGitHub <noreply@github.com>2020-09-17 15:18:17 -0400
commit175d7b19dd15381d13082f896d7ce1594d7bdefa (patch)
tree7d78fa45249684da3a34dffe5e9475dca3fa529b /vendor/github.com/moby/term/tc.go
parentdc23ef1cbf57458b6c47f3585e3433aaddc58184 (diff)
parent661786808c8a5249e05672af1f4d9cfaef39b38e (diff)
downloadpodman-175d7b19dd15381d13082f896d7ce1594d7bdefa.tar.gz
podman-175d7b19dd15381d13082f896d7ce1594d7bdefa.tar.bz2
podman-175d7b19dd15381d13082f896d7ce1594d7bdefa.zip
Merge pull request #7677 from AkihiroSuda/update-moby-20200918
update github.com/docker/docker and relevant deps
Diffstat (limited to 'vendor/github.com/moby/term/tc.go')
-rw-r--r--vendor/github.com/moby/term/tc.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/moby/term/tc.go b/vendor/github.com/moby/term/tc.go
new file mode 100644
index 000000000..65556027a
--- /dev/null
+++ b/vendor/github.com/moby/term/tc.go
@@ -0,0 +1,19 @@
+// +build !windows
+
+package term
+
+import (
+ "golang.org/x/sys/unix"
+)
+
+func tcget(fd uintptr) (*Termios, error) {
+ p, err := unix.IoctlGetTermios(int(fd), getTermios)
+ if err != nil {
+ return nil, err
+ }
+ return p, nil
+}
+
+func tcset(fd uintptr, p *Termios) error {
+ return unix.IoctlSetTermios(int(fd), setTermios, p)
+}