mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
sched/signal: Add support for disabling all signal functions
Signals in NuttX serve two primary purposes:
1. Synchronization and wake-up:
Signals can be used to block threads on specific signal sets and later
wake them up by delivering the corresponding signals to those threads.
2. Asynchronous notification:
Signals can also be used to install callback handlers for specific signals, allowing threads to
asynchronously invoke those handlers when the signals are delivered.
This change introduces the ability to disable all signal functionality to reduce footprint for NuttX.
Signed-off-by: Chengdong Wang wangchengdong@lixiang.com
This commit is contained in:
committed by
Alan C. Assis
parent
0ea686bc5b
commit
faf864b04f
@@ -158,11 +158,13 @@ SYSCALL_LOOKUP(tgkill, 3)
|
||||
SYSCALL_LOOKUP(sigaction, 3)
|
||||
SYSCALL_LOOKUP(sigpending, 1)
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_ALL_SIGNALS
|
||||
SYSCALL_LOOKUP(sigprocmask, 3)
|
||||
SYSCALL_LOOKUP(sigqueue, 3)
|
||||
SYSCALL_LOOKUP(sigsuspend, 1)
|
||||
SYSCALL_LOOKUP(sigtimedwait, 3)
|
||||
SYSCALL_LOOKUP(sigwaitinfo, 2)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(clock_nanosleep, 4)
|
||||
|
||||
/* The following are only defined if the system clock is enabled in the
|
||||
|
||||
Reference in New Issue
Block a user