Lines Matching refs:masterfd
266 int masterfd;
275 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
279 if (ioctl(masterfd, ZC_RELEASESLAVE,
290 (void) close(masterfd);
337 int masterfd;
411 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
421 (void) close(masterfd);
424 if (ioctl(masterfd, ZC_HOLDSLAVE, (caddr_t)(intptr_t)slavefd) == 0)
430 (void) close(masterfd);
867 int masterfd;
875 masterfd = open(conspath, O_RDWR|O_NONBLOCK|O_NOCTTY);
876 if (masterfd == -1) {
889 if (ioctl(masterfd, I_SRDOPT, RNORM|RPROTDIS) == -1) {
896 do_console_io(zlogp, masterfd, serverfd);
905 (void) close(masterfd);