int __PTY_pipe(int filedes[2])
This is like pipe() except that it opens a pair of bidirection pipes using psuedo-tty's. filedes[0] is the master tty, and filedes[1] is the slave tty.
pipe()
Returns 0 on success otherwise -1 on error