This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 4046553e6327a15c3b11adc405356b8d1ee56fb9
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 12 01:18:18 2026 +0200

    include/sys/wait.h: Use 0, not false, in the status macros.
    
    WIFCONTINUED(), WIFSIGNALED(), WIFSTOPPED() and WSTOPSIG() expanded to
    false, but sys/wait.h does not include stdbool.h: a C program that used
    them without stdbool.h did not compile ("'false' undeclared").  They
    now expand to 0, which is also the right type for WSTOPSIG(), a signal
    number.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 include/sys/wait.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/sys/wait.h b/include/sys/wait.h
index f693436cf42..2f3b6a9142a 100644
--- a/include/sys/wait.h
+++ b/include/sys/wait.h
@@ -46,10 +46,10 @@
 #define WEXITSTATUS(s)  (((s) >> 8) & 0xff) /* Return exit status */
 #define WIFEXITED(s)    (((s) & 0xff) == 0) /* True: Child exited normally */
 
-#define WIFCONTINUED(s) (false)             /* True: Child has been continued 
*/
-#define WIFSIGNALED(s)  (false)             /* True: Child exited due to 
uncaught signal */
-#define WIFSTOPPED(s)   (false)             /* True: Child is currently 
stopped */
-#define WSTOPSIG(s)     (false)             /* Return signal number that 
caused process to stop */
+#define WIFCONTINUED(s) (0)                 /* True: Child has been continued 
*/
+#define WIFSIGNALED(s)  (0)                 /* True: Child exited due to 
uncaught signal */
+#define WIFSTOPPED(s)   (0)                 /* True: Child is currently 
stopped */
+#define WSTOPSIG(s)     (0)                 /* Return signal number that 
caused process to stop */
 #define WTERMSIG(s)     (((s) >> 8) & 0x7f) /* Return signal number that 
caused process to terminate */
 #define WCOREDUMP(s)    (((s) >> 8) & 0x80) /* True: Child has produced a core 
dump */
 

Reply via email to