logo       

WEXITSTATUS: msg#00157

lib.uclibc.general

Subject: WEXITSTATUS

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@xxxxxxxxxxxxxxxx
------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise