TUN-7356: Bump golang.org/x/net package to 0.7.0

This commit is contained in:
Devin Carr
2023-04-07 09:41:23 -07:00
parent 55ed995bf0
commit 69eb9698b5
165 changed files with 1377 additions and 943 deletions

View File

@@ -20,3 +20,11 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
}
return
}
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
if r0 == -1 && er != nil {
err = er
}
return
}