[uClibc] WEXITSTATUS

Gerhard Uttenthaler uttenthaler at ems-wuensche.com
Mon Oct 21 08:09:06 UTC 2002


Hello,

the WEXITSTATUS() macro should return the least significant 8 bits, but 
the implementation in  "libc/sysdeps/linux/common/bits/waitstatus.h"
return the higher 8bits:
#define       __WEXITSTATUS(status)   (((status) & 0xff00) >> 8)

Do I have a wrong configuration for the uClibc or found a bug?

BTW: Are the other macros then correct? I've found no specification 
about the "status" variable bits used there.

We use ARM7/nommu and uClibc 0.9.15.

Best Regards
Gerhard Uttenthaler
------------------------------------------------
EMS Dr. Thomas Wuensche
Sonnenhang 3
D-85304 Ilmmuenster

Tel.: +49-8441-490260
Fax: +49-8441-81860
Web-Site: www.ems-wuensche.com
email: uttenthaler at ems-wuensche.com
------------------------------------------------




More information about the uClibc mailing list