Add support for devfs device names.

This commit is contained in:
Matt Kraai
2001-07-23 14:52:08 +00:00
parent 0139ca92ff
commit 439e3df653
17 changed files with 102 additions and 58 deletions

View File

@@ -79,9 +79,9 @@ extern int more_main(int argc, char **argv)
/* not use inputing from terminal if usage: more > outfile */
if(isatty(fileno(stdout))) {
cin = fopen("/dev/tty", "r");
cin = fopen(CURRENT_TTY, "r");
if (!cin)
cin = xfopen("/dev/console", "r");
cin = xfopen(CONSOLE_DEV, "r");
please_display_more_prompt = 0;
#ifdef BB_FEATURE_USE_TERMIOS
getTermSettings(fileno(cin), &initial_settings);