summaryrefslogtreecommitdiffstats
path: root/include/search.h
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-10-16 14:29:23 +0000
committerrobert <robert@FreeBSD.org>2002-10-16 14:29:23 +0000
commit98e716a4fe3c11b8fa3a358acb490ca6d58d7ff6 (patch)
tree145e091db92040b76b92fbd0f0dddfd41d3cd87a /include/search.h
parent9782655096a5873d6e6f26617941855764223d29 (diff)
downloadFreeBSD-src-98e716a4fe3c11b8fa3a358acb490ca6d58d7ff6.zip
FreeBSD-src-98e716a4fe3c11b8fa3a358acb490ca6d58d7ff6.tar.gz
- Remove the lsearch() and lfind() functions and their manpage from
the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header.
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/search.h b/include/search.h
index 566aac8..4e4606f 100644
--- a/include/search.h
+++ b/include/search.h
@@ -50,6 +50,10 @@ int hcreate(size_t);
void hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION);
void insque(void *, void *);
+void *lfind(const void *, const void *, size_t *, size_t,
+ int (*)(const void *, const void *));
+void *lsearch(const void *, void *, size_t *, size_t,
+ int (*)(const void *, const void *));
void remque(void *);
void *tdelete(const void * __restrict, void ** __restrict,
int (*)(const void *, const void *));
OpenPOWER on IntegriCloud