You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by li...@apache.org on 2023/02/14 03:24:46 UTC

[nuttx] 03/03: fs: Don't guard rename with CONFIG_DISABLE_MOUNTPOINT

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

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a3a1883787a873577c96c6dd1723b139f46f5e52
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Feb 10 15:27:38 2023 +0800

    fs: Don't guard rename with CONFIG_DISABLE_MOUNTPOINT
    
    since the pseudo root fs support rename too
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 include/sys/syscall_lookup.h | 2 +-
 syscall/syscall.csv          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h
index 8dc62e9438..69446104d6 100644
--- a/include/sys/syscall_lookup.h
+++ b/include/sys/syscall_lookup.h
@@ -235,6 +235,7 @@ SYSCALL_LOOKUP(ftruncate,                  2)
 SYSCALL_LOOKUP(lseek,                      3)
 SYSCALL_LOOKUP(mmap,                       6)
 SYSCALL_LOOKUP(open,                       3)
+SYSCALL_LOOKUP(rename,                     2)
 SYSCALL_LOOKUP(stat,                       2)
 SYSCALL_LOOKUP(lstat,                      2)
 SYSCALL_LOOKUP(fstat,                      2)
@@ -275,7 +276,6 @@ SYSCALL_LOOKUP(munmap,                     2)
 #ifndef CONFIG_DISABLE_MOUNTPOINT
   SYSCALL_LOOKUP(mount,                    5)
   SYSCALL_LOOKUP(mkdir,                    2)
-  SYSCALL_LOOKUP(rename,                   2)
   SYSCALL_LOOKUP(rmdir,                    1)
   SYSCALL_LOOKUP(umount2,                  2)
   SYSCALL_LOOKUP(unlink,                   1)
diff --git a/syscall/syscall.csv b/syscall/syscall.csv
index f6215bf715..5759e61901 100644
--- a/syscall/syscall.csv
+++ b/syscall/syscall.csv
@@ -110,7 +110,7 @@
 "recv","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR void *","size_t","int"
 "recvfrom","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR void*","size_t","int","FAR struct sockaddr*","FAR socklen_t*"
 "recvmsg","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR struct msghdr *","int"
-"rename","stdio.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char *","FAR const char *"
+"rename","stdio.h","","int","FAR const char *","FAR const char *"
 "rmdir","unistd.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*"
 "rmmod","nuttx/module.h","defined(CONFIG_MODULE)","int","FAR void *"
 "sched_getaffinity","sched.h","defined(CONFIG_SMP)","int","pid_t","size_t","FAR cpu_set_t *"