Function

IdePtyInterceptcreate_consumer

Declaration

IdePtyFd
ide_pty_intercept_create_consumer (
  void
)

Description

Creates a new PTY consumer using posix_openpt(). Some fallbacks are provided for non-Linux systems where O_CLOEXEC and O_NONBLOCK may not be supported.

Return value

Type: IdePtyFd

A FD that should be closed with close() if successful. Upon error, IDE_PTY_FD_INVALID (-1) is returned.