[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>
>Synopsis: Illegal WSTOPPED #define in NetBSD's <sys/wait.h>
>Arrival-Date: Fri Apr 01 10:15:00 +0000 2016
>Originator: Jörg Schilling
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.
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.
Remove the illegal #define and replace it by the standard compliant definition:
#define WSTOPPED WUNTRACED
Main Index |
Thread Index |