|
@@ -519,43 +519,43 @@ func Acct(path string) (err error) {
|
|
|
* Expose the ioctl function
|
|
* Expose the ioctl function
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-//sys ioctl(fd int, req int, arg uintptr) (err error)
|
|
|
|
|
|
|
+//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
|
|
|
|
|
|
|
-func IoctlSetInt(fd int, req int, value int) (err error) {
|
|
|
|
|
|
|
+func IoctlSetInt(fd int, req uint, value int) (err error) {
|
|
|
return ioctl(fd, req, uintptr(value))
|
|
return ioctl(fd, req, uintptr(value))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlSetWinsize(fd int, req int, value *Winsize) (err error) {
|
|
|
|
|
|
|
+func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlSetTermios(fd int, req int, value *Termios) (err error) {
|
|
|
|
|
|
|
+func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlSetTermio(fd int, req int, value *Termio) (err error) {
|
|
|
|
|
|
|
+func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlGetInt(fd int, req int) (int, error) {
|
|
|
|
|
|
|
+func IoctlGetInt(fd int, req uint) (int, error) {
|
|
|
var value int
|
|
var value int
|
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
|
return value, err
|
|
return value, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
|
|
|
|
|
|
|
+func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
|
var value Winsize
|
|
var value Winsize
|
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
|
return &value, err
|
|
return &value, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlGetTermios(fd int, req int) (*Termios, error) {
|
|
|
|
|
|
|
+func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
|
var value Termios
|
|
var value Termios
|
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
|
return &value, err
|
|
return &value, err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
|
|
|
|
|
|
+func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
|
|
var value Termio
|
|
var value Termio
|
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
|
return &value, err
|
|
return &value, err
|