Function
IdePtyInterceptcreate_slave
since: 3.32
Description
This creates a new slave to the PTY master master_fd.
This uses grantpt(), unlockpt(), and ptsname() to open a new
PTY slave.
Available since: 3.32
Parameters
master_fd-
Type:
IdePtyFdA pty master.
blocking-
Type:
gbooleanUse
FALSEto set O_NONBLOCK.
Return value
Type: IdePtyFd
A FD for the slave PTY that should be closed with close().
Upon error, IDE_PTY_FD_INVALID (-1) is returned.