Return to pty.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.10, 1999/12/09 00:24:03 | version 1.11, 1999/12/11 09:35:46 | ||
---|---|---|---|
|
|
||
*ptyfd = open(buf, O_RDWR | O_NOCTTY); | *ptyfd = open(buf, O_RDWR | O_NOCTTY); | ||
if (*ptyfd < 0) | if (*ptyfd < 0) | ||
continue; | continue; | ||
snprintf(namebuf, sizeof namebuflen, "/dev/tty%c%c", | snprintf(namebuf, namebuflen, "/dev/tty%c%c", | ||
ptymajors[i / num_minors], ptyminors[i % num_minors]); | ptymajors[i / num_minors], ptyminors[i % num_minors]); | ||
/* Open the slave side. */ | /* Open the slave side. */ |