[klibc] Macros for wait() status

H. Peter Anvin hpa at zytor.com
Sun Feb 15 12:35:47 PST 2004


Jon Smirl wrote:
> Can I get the macros for interpreting wait() exit status?
> 
> wait(&status);
> if (__WIFEXITED(status) && (__WEXITSTATUS(status) == 0)) {  //need klibc fix
> 

No, they need a fix in your code.

Don't use double-underscore macros - they're libc internal.

The standard WIFEXITED() etc macros are in klibc now.

	-hpa



More information about the klibc mailing list