mirror of
https://github.com/creack/pty.git
synced 2026-03-31 02:27:08 +09:00
Use syscall.TIOCGPTN and syscall.TIOCSPTLCK for ioctl
Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
ioctl_TIOCGPTN = _IOR('T', 0x30, unsafe.Sizeof(_C_uint(0))) /* Get Pty Number (of pty-mux device) */
|
||||
ioctl_TIOCSPTLCK = _IOW('T', 0x31, unsafe.Sizeof(_C_int(0))) /* Lock/unlock Pty */
|
||||
ioctl_TIOCGPTN = uintptr(syscall.TIOCGPTN) /* Get Pty Number (of pty-mux device) */
|
||||
ioctl_TIOCSPTLCK = uintptr(syscall.TIOCSPTLCK) /* Lock/unlock Pty */
|
||||
)
|
||||
|
||||
func open() (pty, tty *os.File, err error) {
|
||||
|
||||
Reference in New Issue
Block a user