critical impact:
hsearch_r, hcreate_r, hdestroy_r - not supported; use hsearch, hcreate, and hdestroy (CrUn40)
Problem description
The hsearch_r, hcreate_r, and hdestroy_r functions exist on Tru64 UNIX, but not on HP-UX.
The hsearch_r, hcreate_r, and hdestroy_r functions are reentrant versions of the hsearch, hcreate, and hdestroy functions. Threads can share hash tables by using the hsearch_r, hcreate_r, and hdestroy_r functions with a common hsearch_data value. Identifiers
 hcreate_r |
 hdestroy_r |
 hsearch_r |
|
See also
Solution description
To achieve similar results, use the hsearch, hcreate, and hdestroy functions.
The hsearch, hcreate, and hdestroy functions are thread_safe on HP-UX. The correct way for applications to share hash tables among threads is to use hsearch, hcreate, and hdestroy. Review your code and applicable manpages for more information on the hash table managing APIs. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| UN |
C, C++ |
any HP-UX 11i version |
critical |
unavailable |
|