Home
last modified time | relevance | path

Searched refs:masterfd (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/cmd/zoneadmd/
H A Dzcons.c268 int masterfd; in destroy_console_devs() local
277 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) { in destroy_console_devs()
281 if (ioctl(masterfd, ZC_RELEASESLAVE, in destroy_console_devs()
292 (void) close(masterfd); in destroy_console_devs()
339 int masterfd; in init_console_dev() local
414 if ((masterfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) { in init_console_dev()
424 (void) close(masterfd); in init_console_dev()
433 if (ioctl(masterfd, ZC_HOLDSLAVE, (caddr_t)(intptr_t)slavefd) in init_console_dev()
447 (void) close(masterfd); in init_console_dev()
907 int masterfd; in serve_console() local
[all …]
/titanic_50/usr/src/cmd/zlogin/
H A Dzlogin.c95 static int masterfd; variable
280 masterfd = sockfd; in get_console_master()
290 if (write(masterfd, clientid, msglen) != msglen) { in get_console_master()
301 while ((err = read(masterfd, &c, 1)) == 1) { in get_console_master()
326 masterfd = -1; in get_console_master()
339 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) { in get_master_pty()
371 if (grantpt(masterfd) != 0) { in init_slave_pty()
376 if (unlockpt(masterfd) != 0) { in init_slave_pty()
390 if ((slavename = ptsname(masterfd)) == NULL) { in init_slave_pty()
446 if (zonept(masterfd, zoneid) != 0) { in init_slave_pty()
[all …]