This commit adds internal versions of the signal interfaces:
sigtimedwait() -> nxsig_timedwait() sigwaitinfo() -> nxsig_waitinfo() nanosleep() -> nxsig_nanosleep() The internal OS versions differ from the standard application interfaces in that: - They do not create cancellation points, and - they do not modify the application's errno variable Squashed commit of the following: sched/signal: Replace all usage of sigwaitinfo(), sigtimedwait(), and nanosleep() with the OS internal counterparts nxsig_waitinfo(), nxsig_timedwait(), and nxsig_nanosleep(). sched/signal: Add nxsig_nanosleep(). This is an internal OS version of nanosleep(). It differs in that it does not set the errno varaiable and does not create a cancellation point. sched/signal: Add nxsig_timedwait() and nxsig_waitinfo(). These are internal OS versions of sigtimedwait() and sigwaitinfo(). They differ in that they do not set the errno varaiable and they do not create cancellation points.
Showing
- include/nuttx/signal.h 124 additions, 3 deletionsinclude/nuttx/signal.h
- sched/sched/sched_waitid.c 8 additions, 6 deletionssched/sched/sched_waitid.c
- sched/sched/sched_waitpid.c 4 additions, 3 deletionssched/sched/sched_waitpid.c
- sched/signal/sig_nanosleep.c 103 additions, 48 deletionssched/signal/sig_nanosleep.c
- sched/signal/sig_pause.c 9 additions, 1 deletionsched/signal/sig_pause.c
- sched/signal/sig_timedwait.c 80 additions, 26 deletionssched/signal/sig_timedwait.c
- sched/signal/sig_waitinfo.c 12 additions, 7 deletionssched/signal/sig_waitinfo.c
- sched/wqueue/kwork_process.c 1 addition, 1 deletionsched/wqueue/kwork_process.c
Loading
Please register or sign in to comment