Lines Matching refs:master
84 static int master; variable
103 if(openpty(&master, &slave, line, 0, 0) == 0) in open_pty()
118 master = open(*q, O_RDWR); in open_pty()
119 if(master >= 0){ in open_pty()
121 grantpt(master); in open_pty()
124 unlockpt(master); in open_pty()
126 strlcpy(line, ptsname(master), sizeof(line)); in open_pty()
219 while((sret = read(master, &in, sizeof(in))) > 0) { in eval_parent()
263 if (net_write(master, &ctrl, 1) != 1) in eval_parent()
266 if (net_write(master, &c->str[i], 1) != 1) in eval_parent()
277 while(read(master, &in, sizeof(in)) > 0) in eval_parent()