Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/zlogin/
H A Dzlogin.c365 int slavefd = -1; in init_slave_pty() local
398 if ((slavefd = open(zoneslavename, O_RDWR)) < 0) { in init_slave_pty()
408 if (ioctl(slavefd, I_PUSH, "ptem") == -1) { in init_slave_pty()
419 if (ioctl(slavefd, I_ANCHOR) == -1) { in init_slave_pty()
425 if (ioctl(slavefd, I_PUSH, "ldterm") == -1) { in init_slave_pty()
430 if (ioctl(slavefd, I_PUSH, "ttcompat") == -1) { in init_slave_pty()
439 if (tcsetattr(slavefd, TCSAFLUSH, &save_termios) == -1) { in init_slave_pty()
444 (void) ioctl(slavefd, TIOCSWINSZ, (char *)&winsize); in init_slave_pty()
451 return (slavefd); in init_slave_pty()
454 (void) close(slavefd); in init_slave_pty()
[all …]
/titanic_50/usr/src/cmd/zoneadmd/
H A Dzcons.c269 int slavefd; in destroy_console_devs() local
280 if ((slavefd = open(conspath, O_RDWR | O_NOCTTY)) != -1) { in destroy_console_devs()
282 (caddr_t)(intptr_t)slavefd) != 0) in destroy_console_devs()
286 (void) close(slavefd); in destroy_console_devs()
340 int slavefd; in init_console_dev() local
421 if ((slavefd = open(conspath, O_RDWR | O_NOCTTY)) == -1) { in init_console_dev()
433 if (ioctl(masterfd, ZC_HOLDSLAVE, (caddr_t)(intptr_t)slavefd) in init_console_dev()
446 (void) close(slavefd); in init_console_dev()