Lines Matching refs:Master
76 int Master, Slave; /* sides of the pty */ variable
226 if ((Master = open("/dev/ptmx", O_RDWR)) == -1) {
233 printf("open-ptmx success Master =%d\n", Master);
235 printf("Before grantpt...Master=%d\n", Master);
237 if (grantpt(Master) == -1) {
241 if (unlockpt(Master) == -1) {
245 if ((slavename = ptsname(Master)) == NULL) {
272 ioctl(Master, FIONBIO, &on);
275 uxprt[MASTER].xp_fd = Master;
307 close(Master);
325 close(Master); in KillHelper()
546 (void) ioctl(Master, TIOCSWINSZ, &newsize); in SetPtySize()
587 if (fdp[i].fd == Master && fdp[i].revents != 0) in HelperRead()
598 retval = read(Master, buf, sizeof (buf)); in HelperRead()
631 (void) write(Master, buf, retval); in HelperRead()