Return to ttyin.c CVS log | Up to [local] / src / usr.bin / less |
version 1.11, 2015/11/09 03:09:19 | version 1.12, 2019/06/28 13:35:01 | ||
---|---|---|---|
|
|
||
* but also usually lets you read from the keyboard. | * but also usually lets you read from the keyboard. | ||
*/ | */ | ||
tty = open("/dev/tty", O_RDONLY); | tty = open("/dev/tty", O_RDONLY); | ||
if (tty < 0) | if (tty == -1) | ||
tty = STDERR_FILENO; | tty = STDERR_FILENO; | ||
} | } | ||