search.h 1001 B

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