nshlib: Remove fdopen for the stdin, stdout and stderr

not really need since these file stream should be opened automatically

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-12-15 15:34:56 +08:00
committed by Masayuki Ishikawa
parent c335c13578
commit 28362eb6d1
2 changed files with 0 additions and 34 deletions

View File

@@ -87,17 +87,6 @@ static void nsh_configstdio(int fd)
dup2(fd, 0);
dup2(fd, 1);
dup2(fd, 2);
/* fdopen to get the stdin, stdout and stderr streams.
*
* fd = 0 is stdin (read-only)
* fd = 1 is stdout (write-only, append)
* fd = 2 is stderr (write-only, append)
*/
fdopen(0, "r");
fdopen(1, "a");
fdopen(2, "a");
}
/****************************************************************************