Updated golang/x/net. Also updated golang.org/x/sys, as required by

hack/lint-dependencies.sh.
This commit is contained in:
Chao Xu
2020-10-31 16:21:08 -07:00
parent 24a9d07bf8
commit ec6e232126
225 changed files with 5186 additions and 8241 deletions

View File

@@ -20,6 +20,15 @@ func IoctlSetInt(fd int, req uint, value int) error {
return ioctl(fd, req, uintptr(value))
}
// IoctlSetPointerInt performs an ioctl operation which sets an
// integer value on fd, using the specified request number. The ioctl
// argument is called with a pointer to the integer value, rather than
// passing the integer value directly.
func IoctlSetPointerInt(fd int, req uint, value int) error {
v := int32(value)
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
}
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
//
// To change fd's window size, the req argument should be TIOCSWINSZ.