NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

standards/51035: Illegal WSTOPPED #define in NetBSD's <sys/wait.h>



>Number:         51035
>Category:       standards
>Synopsis:       Illegal WSTOPPED #define in NetBSD's <sys/wait.h>
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 01 10:15:00 +0000 2016
>Originator:     Jörg Schilling
>Release:        all
>Organization:
Fraunhofer FOKUS
>Environment:
any
>Description:
sys/wait.h #defines WSTOPPED _WSTOPPED which is 0177

This is a bug as WSTOPPED has been introduced as a waitid() flag bit
in 1989 and is standardized in POSIX as a better name for WUNTRACED.


>How-To-Repeat:
Compile standard compliant sources that make use of WSTOPPED and see that the behavior of the wait*() calls that use flags is not as expected.
>Fix:
Remove the illegal #define and replace it by the standard compliant definition:

#define WSTOPPED WUNTRACED



Home | Main Index | Thread Index | Old Index