mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
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:

committed by
Masayuki Ishikawa

parent
c335c13578
commit
28362eb6d1
@@ -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");
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Reference in New Issue
Block a user