Lines Matching refs:amaster
73 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument
83 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) in openpty()
88 close(*amaster); in openpty()
116 *amaster = ptm; in openpty()
120 close(*amaster); in openpty()
142 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty()
144 if ((ttname = ttyname(*amaster)) == NULL) in openpty()
147 close(*amaster); in openpty()
166 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1) in openpty()
170 close(*amaster); in openpty()
194 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
198 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) in openpty()
204 close(*amaster); in openpty()
208 if (tcgetattr(*amaster, &tio) != -1) { in openpty()
212 tcsetattr(*amaster, TCSANOW, &tio); in openpty()