You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/08/16 23:16:28 UTC

[incubator-nuttx-apps] branch master updated: nsh: Don't check CONFIG_NFILE_STREAMS for mkdir/rename/rmdir/fs_unlink

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 74c506b  nsh: Don't check CONFIG_NFILE_STREAMS for mkdir/rename/rmdir/fs_unlink
74c506b is described below

commit 74c506b4d16bb91802da5f3f5f64a5fb5f63c78e
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Aug 13 23:05:56 2020 +0800

    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 <xi...@xiaomi.com>
    Change-Id: I320659eff933d49c4872e43320fa30696d8b8a54
---
 nshlib/nsh.h | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/nshlib/nsh.h b/nshlib/nsh.h
index 06e80cc..e219502 100644
--- a/nshlib/nsh.h
+++ b/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