Function
IdePtyInterceptcreate_master
since: 3.32
Description
Creates a new PTY master using posix_openpt(). Some fallbacks are provided for non-Linux systems where O_CLOEXEC and O_NONBLOCK may not be supported.
Available since: 3.32
Return value
Type: IdePtyFd
A FD that should be closed with close()
if successful.
Upon error, IDE_PTY_FD_INVALID
(-1) is returned.