Lines Matching defs:slave
51 int slave; /* file descriptor for slave pseudo-tty */
210 (void) dup2(slave, 0);
211 (void) dup2(slave, 1);
212 (void) dup2(slave, 2);
213 (void) close(slave);
279 char *slavename; /* name of slave pseudo-tty */
281 grantpt(master); /* change permissions of slave */
282 unlockpt(master); /* unlock slave */
283 slavename = ptsname(master); /* get name of slave */
284 slave = open(slavename, O_RDWR); /* open slave */
285 if (slave < 0) { /* error on opening slave */
289 ioctl(slave, I_PUSH, "ptem"); /* push pt hw emulation module */
290 ioctl(slave, I_PUSH, "ldterm"); /* push line discipline */
292 (void) ioctl(slave, TCSETSF, (char *)&b);
293 (void) ioctl(slave, TIOCSWINSZ, (char *)&size);