aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2014-07-21 15:22:48 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2014-07-21 15:22:48 +0000
commit9823a90c79bac3a172a02f7e76947fcbb57e0955 (patch)
tree04c219a619b87d71d16ffe6fb7dcf512acecacc9 /include
parentb2cd178ea2af4107671ef287aec3d5307971e479 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/search.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/search.h b/include/search.h
index 4e4606f12720..068c82d3ca61 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,8 +1,8 @@
/*-
- * Written by J.T. Conklin <jtc@netbsd.org>
+ * Written by J.T. Conklin <jtc@NetBSD.org>
* Public domain.
*
- * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
+ * $NetBSD: search.h,v 1.16 2005/02/03 04:39:32 perry Exp $
* $FreeBSD$
*/
@@ -45,6 +45,15 @@ struct que_elem {
};
#endif
+#if __BSD_VISIBLE
+struct _ENTRY;
+struct hsearch_data {
+ struct _ENTRY *table;
+ size_t size;
+ size_t filled;
+};
+#endif
+
__BEGIN_DECLS
int hcreate(size_t);
void hdestroy(void);
@@ -61,6 +70,13 @@ void *tfind(const void *, void * const *,
int (*)(const void *, const void *));
void *tsearch(const void *, void **, int (*)(const void *, const void *));
void twalk(const void *, void (*)(const void *, VISIT, int));
+
+#if __BSD_VISIBLE
+int hcreate_r(size_t, struct hsearch_data *);
+void hdestroy_r(struct hsearch_data *);
+int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
+#endif
+
__END_DECLS
#endif /* !_SEARCH_H_ */