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:
parent
e71e537e24
commit
74c506b4d1
12
nshlib/nsh.h
12
nshlib/nsh.h
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user