Lines Matching refs:slave
115 static int pty_child(const char *prog, int slave, char *argv[]);
132 int slave = -1; /* The fd of the pseudo-terminal slave device */ in main() local
206 if((slave = pty_open_slave(prog, slave_name)) >= 0) { in main()
207 status = pty_child(prog, slave, argv + 1); in main()
208 close(slave); in main()
517 static int pty_child(const char *prog, int slave, char *argv[]) in pty_child() argument
523 if(tcgetattr(slave, &attr)) { in pty_child()
529 while(tcsetattr(slave, TCSADRAIN, &attr)) { in pty_child()
539 while(dup2(slave, STDIN_FILENO) < 0 && errno==EINTR) in pty_child()
541 while(dup2(slave, STDOUT_FILENO) < 0 && errno==EINTR) in pty_child()
543 while(dup2(slave, STDERR_FILENO) < 0 && errno==EINTR) in pty_child()