1 /* $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ */
2 /* $FreeBSD: src/include/search.h,v 1.3.2.1 2000/08/17 07:38:34 jhb Exp $ */
3 /* $DragonFly: src/include/search.h,v 1.6 2008/05/19 10:05:18 corecode Exp $ */
6 * Written by J.T. Conklin <jtc@netbsd.org>
13 #include <sys/cdefs.h>
14 #include <machine/stdint.h>
16 #ifndef _SIZE_T_DECLARED
17 #define _SIZE_T_DECLARED
18 typedef __size_t
size_t;
21 typedef struct entry
{
37 #ifdef _SEARCH_PRIVATE
40 struct node
*llink
, *rlink
;
47 ENTRY
*hsearch (ENTRY
, ACTION
);
48 void *lfind(const void *, const void *, size_t *, size_t,
49 int (*)(const void *, const void *));
50 void *lsearch(const void *, void *, size_t *, size_t,
51 int (*)(const void *, const void *));
52 void *tdelete (const void *, void **,
53 int (*)(const void *, const void *));
54 void *tfind (const void *, void **,
55 int (*)(const void *, const void *));
56 void *tsearch (const void *, void **,
57 int (*)(const void *, const void *));
58 void twalk (const void *, void (*)(const void *, VISIT
, int));
61 #endif /* !_SEARCH_H_ */