1998-09-06 23:45:24 +00:00
|
|
|
#ifndef _SEARCH_H
|
1995-09-17 20:23:15 +00:00
|
|
|
#include <misc/search.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
2012-02-25 23:18:39 -05:00
|
|
|
#ifndef _ISOMAC
|
2015-02-18 18:47:34 +00:00
|
|
|
extern __typeof (hcreate_r) __hcreate_r;
|
|
|
|
|
libc_hidden_proto (__hcreate_r)
|
|
|
|
|
extern __typeof (hdestroy_r) __hdestroy_r;
|
|
|
|
|
libc_hidden_proto (__hdestroy_r)
|
|
|
|
|
extern __typeof (hsearch_r) __hsearch_r;
|
|
|
|
|
libc_hidden_proto (__hsearch_r)
|
2002-08-04 01:29:29 +00:00
|
|
|
libc_hidden_proto (lfind)
|
|
|
|
|
|
1998-08-09 17:39:48 +00:00
|
|
|
/* Now define the internal interfaces. */
|
1999-11-23 17:31:31 +00:00
|
|
|
extern void __hdestroy (void);
|
2012-01-07 23:57:22 -05:00
|
|
|
extern void *__tsearch (const void *__key, void **__rootp,
|
1999-11-23 17:31:31 +00:00
|
|
|
__compar_fn_t compar);
|
2015-06-17 20:11:58 +00:00
|
|
|
libc_hidden_proto (__tsearch)
|
2012-01-07 23:57:22 -05:00
|
|
|
extern void *__tfind (const void *__key, void *const *__rootp,
|
1999-11-23 17:31:31 +00:00
|
|
|
__compar_fn_t compar);
|
2015-06-17 20:11:58 +00:00
|
|
|
libc_hidden_proto (__tfind)
|
2012-01-07 23:57:22 -05:00
|
|
|
extern void *__tdelete (const void *__key, void **__rootp,
|
1999-11-23 17:31:31 +00:00
|
|
|
__compar_fn_t compar);
|
2015-06-17 20:11:58 +00:00
|
|
|
libc_hidden_proto (__tdelete)
|
2012-01-07 23:57:22 -05:00
|
|
|
extern void __twalk (const void *__root, __action_fn_t action);
|
2015-06-17 20:11:58 +00:00
|
|
|
libc_hidden_proto (__twalk)
|
2019-05-02 11:42:51 +02:00
|
|
|
extern __typeof__ (twalk_r) __twalk_r;
|
|
|
|
|
libc_hidden_proto (__twalk_r)
|
1999-11-23 17:31:31 +00:00
|
|
|
extern void __tdestroy (void *__root, __free_fn_t freefct);
|
2017-10-01 16:06:43 -07:00
|
|
|
libc_hidden_proto (__tdestroy)
|
1998-09-06 23:45:24 +00:00
|
|
|
#endif
|
2012-02-25 23:18:39 -05:00
|
|
|
#endif
|