2 * Written by J.T. Conklin <jtc@netbsd.org>
5 * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
6 * $FreeBSD: src/include/search.h,v 1.10 2002/10/16 14:29:23 robert Exp $
12 #include <sys/cdefs.h>
13 #include <machine/stdint.h>
15 #ifndef _SIZE_T_DECLARED
16 typedef __size_t
size_t;
17 #define _SIZE_T_DECLARED
20 typedef struct entry
{
36 #ifdef _SEARCH_PRIVATE
39 struct node
*llink
, *rlink
;
43 struct que_elem
*next
;
44 struct que_elem
*prev
;
51 ENTRY
*hsearch(ENTRY
, ACTION
);
52 void insque(void *, void *);
53 void *lfind(const void *, const void *, size_t *, size_t,
54 int (*)(const void *, const void *));
55 void *lsearch(const void *, void *, size_t *, size_t,
56 int (*)(const void *, const void *));
58 void *tdelete(const void * __restrict
, void ** __restrict
,
59 int (*)(const void *, const void *));
60 void *tfind(const void *, void * const *,
61 int (*)(const void *, const void *));
62 void *tsearch(const void *, void **, int (*)(const void *, const void *));
63 void twalk(const void *, void (*)(const void *, VISIT
, int));
66 #endif /* !_SEARCH_H_ */