nsh: Don't check CONFIG_NFILE_STREAMS for mkdir/rename/rmdir/fs_unlink

since these function don't depend on standard input/output function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I320659eff933d49c4872e43320fa30696d8b8a54
This commit is contained in:
Xiang Xiao 2020-08-13 23:05:56 +08:00 committed by Abdelatif Guettouche
parent e71e537e24
commit 74c506b4d1

View File

@ -67,18 +67,8 @@
* pseudo-filesystem are not disabled.
*/
#undef NSH_HAVE_WRITABLE_MOUNTPOINT
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_STREAMS > 0
# define NSH_HAVE_WRITABLE_MOUNTPOINT 1
#endif
#undef NSH_HAVE_PSEUDOFS_OPERATIONS
#if !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && CONFIG_NFILE_STREAMS > 0
# define NSH_HAVE_PSEUDOFS_OPERATIONS 1
#endif
#undef NSH_HAVE_DIROPTS
#if defined(NSH_HAVE_WRITABLE_MOUNTPOINT) || defined(NSH_HAVE_PSEUDOFS_OPERATIONS)
#if !defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
# define NSH_HAVE_DIROPTS 1
#endif