This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 070c9b03d31 include/sys: Add chroot() to the system call table.
070c9b03d31 is described below
commit 070c9b03d31cf09bc3e8a67e905d15c7c9a158d2
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Oct 20 19:56:26 2026 +0200
include/sys: Add chroot() to the system call table.
chroot() was in syscall/syscall.csv, but not in syscall_lookup.h, so
SYS_chroot did not exist. A kernel or protected build with
CONFIG_FS_CHROOT failed to compile its proxy (PROXY_chroot.c:
'SYS_chroot' undeclared).
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
include/sys/syscall_lookup.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h
index ccd78776e67..09c46e84bac 100644
--- a/include/sys/syscall_lookup.h
+++ b/include/sys/syscall_lookup.h
@@ -296,6 +296,10 @@ SYSCALL_LOOKUP(munlockall, 0)
SYSCALL_LOOKUP(readlink, 3)
#endif
+#ifdef CONFIG_FS_CHROOT
+ SYSCALL_LOOKUP(chroot, 1)
+#endif
+
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
SYSCALL_LOOKUP(pipe2, 2)
#endif