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.5 2003/11/15 19:28:42 asmodai 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 *tdelete (const void *, void **,
49 int (*)(const void *, const void *));
50 void *tfind (const void *, void **,
51 int (*)(const void *, const void *));
52 void *tsearch (const void *, void **,
53 int (*)(const void *, const void *));
54 void twalk (const void *, void (*)(const void *, VISIT
, int));
57 #endif /* !_SEARCH_H_ */