aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/golang.org/x/sys/unix/ioctl.go
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:37 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:37 -0500
commit15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch)
tree255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/ioctl.go
parent07971ca38143c5faf951d152fba370ddcbe26ad5 (diff)
downloadterraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz
terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst
terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ioctl.go')
-rw-r--r--vendor/golang.org/x/sys/unix/ioctl.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go
new file mode 100644
index 0000000..f121a8d
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/ioctl.go
@@ -0,0 +1,30 @@
1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package unix
8
9import "runtime"
10
11// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
12//
13// To change fd's window size, the req argument should be TIOCSWINSZ.
14func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
15 // TODO: if we get the chance, remove the req parameter and
16 // hardcode TIOCSWINSZ.
17 err := ioctlSetWinsize(fd, req, value)
18 runtime.KeepAlive(value)
19 return err
20}
21
22// IoctlSetTermios performs an ioctl on fd with a *Termios.
23//
24// The req value will usually be TCSETA or TIOCSETA.
25func IoctlSetTermios(fd int, req uint, value *Termios) error {
26 // TODO: if we get the chance, remove the req parameter.
27 err := ioctlSetTermios(fd, req, value)
28 runtime.KeepAlive(value)
29 return err
30}