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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to