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
commit 21fe2dcf540b27e780ac6d625d3f072ffdf4cf34 Author: Marco Casaroli <[email protected]> AuthorDate: Sat Oct 17 19:57:58 2026 +0200 Documentation: Show the current siginfo_t members. The siginfo_t listing shows only si_signo, si_code and si_value. The structure has more members, and si_uid is new. Show all members of siginfo_t and describe si_pid and si_uid. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/reference/user/structures.rst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/reference/user/structures.rst b/Documentation/reference/user/structures.rst index 872fd58066a..f3737126d09 100644 --- a/Documentation/reference/user/structures.rst +++ b/Documentation/reference/user/structures.rst @@ -137,11 +137,22 @@ The following types is used to pass parameters to/from signal handlers: typedef struct siginfo { - int si_signo; - int si_code; + uint8_t si_signo; + uint8_t si_code; + uint8_t si_errno; union sigval si_value; + #ifdef CONFIG_SCHED_HAVE_PARENT + pid_t si_pid; + uid_t si_uid; + int si_status; + #endif + void *si_user; } siginfo_t; +``si_pid`` and ``si_uid`` are the process ID and the real user ID of the +sender. For ``SIGCHLD`` and ``waitid()``, they are those of the child. +Without ``CONFIG_SCHED_USER_IDENTITY``, ``si_uid`` is always 0. + .. c:union:: sigval This defines the type of the struct siginfo si_value field and is used
