Lines Matching refs:masterfd
91 static int masterfd;
274 masterfd = sockfd;
284 if (write(masterfd, clientid, msglen) != msglen) {
295 while ((err = read(masterfd, &c, 1)) == 1) {
320 masterfd = -1;
333 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) {
365 if (grantpt(masterfd) != 0) {
370 if (unlockpt(masterfd) != 0) {
384 if ((slavename = ptsname(masterfd)) == NULL) {
440 if (zonept(masterfd, zoneid) != 0) {
514 (void) ioctl(masterfd, TIOCSWINSZ, &ws);
1941 doio(masterfd, -1, masterfd, -1, -1, B_FALSE);
2060 if ((slavename = ptsname(masterfd)) == NULL) {
2214 doio(masterfd, -1, masterfd, -1, -1, B_FALSE);