Lines Matching defs:masterfd
95 static int masterfd;
280 masterfd = sockfd;
290 if (write(masterfd, clientid, msglen) != msglen) {
301 while ((err = read(masterfd, &c, 1)) == 1) {
326 masterfd = -1;
339 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) {
371 if (grantpt(masterfd) != 0) {
376 if (unlockpt(masterfd) != 0) {
390 if ((slavename = ptsname(masterfd)) == NULL) {
446 if (zonept(masterfd, zoneid) != 0) {
520 (void) ioctl(masterfd, TIOCSWINSZ, &ws);
1981 doio(masterfd, -1, masterfd, -1, -1, B_FALSE);
2120 if ((slavename = ptsname(masterfd)) == NULL) {
2275 doio(masterfd, -1, masterfd, -1, -1, B_FALSE);