parameters: (tty_name)
return_statement: return result
docstring: slave_open(tty_name) -> slave_fd
      Open the pty slave and acquire the controlling terminal, returning
      opened filedescriptor.
      Deprecated, use openpty() instead.
docstring_summary: slave_open(tty_name) -> slave_fd
      Open the pty slave and acquire the controlling terminal, returning
      opened filedescriptor.
      Deprecated, use openpty() instead.
docstring_tokens: slave_open ( tty_name ) - > slave_fd Open the pty slave and acquire the controlling terminal returning opened filedescriptor . Deprecated use openpty () instead .
function: def slave_open(tty_name):
      """slave_open(tty_name) -> slave_fd
      Open the pty slave and acquire the controlling terminal, returning
      opened filedescriptor.
      Deprecated, use openpty() instead."""
  
      result = os.open(tty_name, os.O_RDWR)
      try:
          from fcntl import ioctl, I_PUSH
      except ImportError:
          return result
      try:
          ioctl(result, I_PUSH, "ptem")
          ioctl(result, I_PUSH, "ldterm")
      except IOError:
          pass
      return result
function_tokens: def slave_open ( tty_name ) : result = os . open ( tty_name , os . O_RDWR ) try : from fcntl import ioctl , I_PUSH except ImportError : return result try : ioctl ( result , I_PUSH , "ptem" ) ioctl ( result , I_PUSH , "ldterm" ) except IOError : pass return result