Hcreate_r , hdestroy_r, hsearch_data

Hi,

I want to use the below functions on solaris box
SunOS 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V240

Commands are

  1. hcreate_r
  2. hdestroy_r
  3. hsearch_data (a structure)

These are re-entrants version of hcreate & hdestroy functions available in <search.h>

My questions is that I can't locate them anywhere. On linux box I am able to use these functions as they are available in <search.h>

Please guide what shall I do?

---------- Post updated at 10:51 PM ---------- Previous update was at 01:01 PM ----------

NOT EVEN A SINGLE REPLY????

There's no SLA for these FREE forums - everything is done on the 'best effort' basis. Bumping posts and double posting will lessen your chances for a worthy replies.

Hello skyineyes,

Writing in capital letters and bumping up the posts is not acceptable, this forum is to help/guide/learn people, every body has to participate in the same and moreover
learning is not a single day process. kindly go through the rules again please in following link.

Rule no-1:

Rule no-2:

Rule no-4:

Please take my comments in positive way as I am also learning here and trying to help people/ learn from people as much as I/we can.

Thanks,
R. Singh

2 Likes

Hi,

In answer to your original post, I have a quick question - what compiler are you using and what is the value of

$LD_LIBRARY_PATH

Regards

Dave

You may have to port these routines onto your Solaris system.

From man hcreate:

CONFORMING TO
       The functions hcreate(), hsearch(), and hdestroy() are from  SVr4,  and
       are described in POSIX.1-2001.  The functions hcreate_r(), hsearch_r(),
       and hdestroy_r() are GNU extensions.