uClibc - waitid()

From: Sue Alfano
Date: Thu Jan 18 2007 - 06:18:34 EST


Can anyone help with this?

We have an application that runs fine on our linux workstations, but
will not compile to run on a new target. This application is using
the WNOWAIT option for the waitid() function. When the source file is
compiled for the target using powerpc-uclibc-gcc, it fails because
WNOWAIT is not defined. The best that I can tell, waitid() doesn't
appear to be supported in uClibc (version 0.9.27). I checked the
latest version on the uClibc site, but it doesn't appear to have been
considered for inclusion. I looked in glibc (versions 2.4, 2.3.5, and
2.0.6), but could only find emulated/stub/pseudo implementations for
waitid(). The Linux man page for waitid() states that it's supported
since the 2.6.9 kernel release. At this point I'm not sure where the
waitid() source code and WNOWAIT definition is suppose to be (kernel,
uClibc, glibc, gcc) or what version of wait.h is actually being used
(there appears to be many versions floating around on the machine).
Since I'm way off in the weeds on this I was hoping somebody with more
Linux experience than me (that would be just about anyone) might be
able to shed some light on this problem or point me in a more
constructive direction.

Do you have any information as to the status of the waitid() support?
It must have been available at one time since it's running on my linux
workstation (Linux version 2.6.15-1.2054_FC5smp
(bhcompile@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.0 20060304
(Red Hat 4.1.0-3)) #1 SMP Tue Mar 14 16:05:46 EST2006).

Was there a reason why it wasn't added to uClibc (other than the size issue)?

Is there a recommended way to deal with applications that are using
waitid() with the WNOWAIT option?

Thanks for any assistance,
Sue
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/