From a3a1883787a873577c96c6dd1723b139f46f5e52 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 10 Feb 2023 15:27:38 +0800 Subject: [PATCH] fs: Don't guard rename with CONFIG_DISABLE_MOUNTPOINT since the pseudo root fs support rename too Signed-off-by: Xiang Xiao --- 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 *"