You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "extinguish (via GitHub)" <gi...@apache.org> on 2026/01/15 03:02:49 UTC

[PR] Ltp linux kernel completement sys wait impl [nuttx]

extinguish opened a new pull request, #17918:
URL: https://github.com/apache/nuttx/pull/17918

   ## Summary
   
   Add POSIX‑compliant wait‑status macros to support LTP (Linux Test Project) kernel testcases on NuttX:
   1. Implement WTERMSIG(s): Replace the dummy false definition with (((s) >> 8) & 0x7f) to correctly extract the terminating signal number from the wait status.
   2. Add WCOREDUMP(s): Define as (((s) >> 8) & 0x80) to indicate whether a terminated process produced a core dump.
   Both macros follow the POSIX wait‑status bit layout (signal number in bits 8–14, core‑dump flag in bit 7).
   
   ## Impact
   
   1. Enables LTP kernel testcases to compile and run on NuttX without implicit‑declaration warnings or incorrect behavior.
   2. Improves POSIX compliance of the <sys/wait.h> header by providing proper implementations of standard wait‑status inspection macros.
   
   ## Testing
   
   Verified that LTP testcases requiring WTERMSIG and WCOREDUMP now compile cleanly on NuttX.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Ltp linux kernel completement sys wait impl [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #17918:
URL: https://github.com/apache/nuttx/pull/17918


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org