- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for PosixOpenpt (0.16 sec)
-
src/internal/testpty/pty_darwin.go
// license that can be found in the LICENSE file. package testpty import ( "internal/syscall/unix" "os" "syscall" ) func open() (pty *os.File, processTTY string, err error) { m, err := unix.PosixOpenpt(syscall.O_RDWR) if err != nil { return nil, "", ptyError("posix_openpt", err) } if err := unix.Grantpt(m); err != nil { syscall.Close(m) return nil, "", ptyError("grantpt", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 19:00:19 UTC 2022 - 790 bytes - Viewed (0) -
src/internal/syscall/unix/pty_darwin.go
buf = buf[:i] break } } return string(buf), nil } //go:cgo_import_dynamic libc_posix_openpt posix_openpt "/usr/lib/libSystem.B.dylib" func libc_posix_openpt_trampoline() func PosixOpenpt(flag int) (fd int, err error) { ufd, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_posix_openpt_trampoline), uintptr(flag), 0, 0, 0, 0, 0) if errno != 0 { return -1, errno } return int(ufd), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 19:24:46 UTC 2022 - 1.6K bytes - Viewed (0)