d32f0ff079
hashicorp/hcl library added some better validation for error and illegal characters. The diff is primarily improved error reporting. The parser.go change includes a case where illegal characters were silently dropped, but now get reported as invalid characters.
14 lines
203 B
Go
14 lines
203 B
Go
// +build !windows,!solaris
|
|
|
|
package pty
|
|
|
|
import "syscall"
|
|
|
|
func ioctl(fd, cmd, ptr uintptr) error {
|
|
_, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
|
|
if e != 0 {
|
|
return e
|
|
}
|
|
return nil
|
|
}
|