1#ifndef _SEARCH_H
2#include <misc/search.h>
3
4#ifndef _ISOMAC
5extern __typeof (hcreate_r) __hcreate_r;
6libc_hidden_proto (__hcreate_r)
7extern __typeof (hdestroy_r) __hdestroy_r;
8libc_hidden_proto (__hdestroy_r)
9extern __typeof (hsearch_r) __hsearch_r;
10libc_hidden_proto (__hsearch_r)
11libc_hidden_proto (lfind)
12
13/* Now define the internal interfaces. */
14extern void __hdestroy (void);
15extern void *__tsearch (const void *__key, void **__rootp,
16 __compar_fn_t compar);
17libc_hidden_proto (__tsearch)
18extern void *__tfind (const void *__key, void *const *__rootp,
19 __compar_fn_t compar);
20libc_hidden_proto (__tfind)
21extern void *__tdelete (const void *__key, void **__rootp,
22 __compar_fn_t compar);
23libc_hidden_proto (__tdelete)
24extern void __twalk (const void *__root, __action_fn_t action);
25libc_hidden_proto (__twalk)
26extern void __tdestroy (void *__root, __free_fn_t freefct);
27#endif
28#endif
29