This is an automated email from the ASF dual-hosted git repository.
acassis 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 5c2fae25338 syscall: Add pause() to the system call table.
5c2fae25338 is described below
commit 5c2fae253382b31555228318988038c23667c81b
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Oct 17 19:51:52 2026 +0200
syscall: Add pause() to the system call table.
pause() is implemented in sched/signal/sig_pause.c, but it has no
system call entry. In a protected or kernel build, user programs that
call pause() fail to link.
Add pause() to syscall.csv and to syscall_lookup.h, with the same
condition as the implementation (!CONFIG_DISABLE_ALL_SIGNALS).
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
include/sys/syscall_lookup.h | 1 +
syscall/syscall.csv | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h
index dfdbe44316d..5bbd5b017b8 100644
--- a/include/sys/syscall_lookup.h
+++ b/include/sys/syscall_lookup.h
@@ -174,6 +174,7 @@ SYSCALL_LOOKUP(sigqueue, 3)
SYSCALL_LOOKUP(sigsuspend, 1)
SYSCALL_LOOKUP(sigtimedwait, 3)
SYSCALL_LOOKUP(sigwaitinfo, 2)
+SYSCALL_LOOKUP(pause, 0)
#endif
SYSCALL_LOOKUP(clock_nanosleep, 4)
diff --git a/syscall/syscall.csv b/syscall/syscall.csv
index 1a88bd0045d..873629b2d89 100644
--- a/syscall/syscall.csv
+++ b/syscall/syscall.csv
@@ -108,6 +108,7 @@
"nxsem_unlink","nuttx/semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR
const char *"
"nxsem_wait_slow","nuttx/semaphore.h","","int","FAR sem_t *"
"open","fcntl.h","","int","FAR const char *","int","...","mode_t"
+"pause","unistd.h","!defined(CONFIG_DISABLE_ALL_SIGNALS)","int"
"pgalloc", "nuttx/arch.h", "defined(CONFIG_BUILD_KERNEL)", "uintptr_t",
"uintptr_t", "unsigned int"
"pipe2","unistd.h","defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE >
0","int","int [2]|FAR int *","int"
"poll","poll.h","","int","FAR struct pollfd *","nfds_t","int"