critical impact:
wait3 - incompatible parameters (CrCh32)
Problem description
On Tru64 UNIX, there are two versions of wait3 and wait. For backward compatibility, a BSD version of wait3 and wait are supported. The BSD version is not supported on HP-UX.
The backward-compatible version of wait3 and wait are declared as follows:
extern pid_t wait(union wait *);
#include <sys/resource.h>
extern pid_t wait3(union wait *, int, struct rusage *);
The backward-compatible version of wait3 or wait is activated only if the _BSD macro is enabled when compiling the application. The union wait data structure is an abstraction to access the individual field of the returned status directly instead of using macros. There is no functionality difference. Identifiers
 wait3 |
|
|
|
|
|
|
See also
Solution description
Review the applicable manpages and your code to determine if unexpected behavior will result.
If an application is using the BSD version of wait3 or wait, you must modify your code to use the standard interface. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| KN |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|