diff options
author | Robert Drehmel <robert@FreeBSD.org> | 2002-10-16 14:29:23 +0000 |
---|---|---|
committer | Robert Drehmel <robert@FreeBSD.org> | 2002-10-16 14:29:23 +0000 |
commit | 6c84d0b1a5f243e4aa87fe02c82627b7d11d053e (patch) | |
tree | 145e091db92040b76b92fbd0f0dddfd41d3cd87a /include | |
parent | 31cfc49a4e7db1eb298e7aa274d0a03730c43f6f (diff) | |
download | src-6c84d0b1a5f243e4aa87fe02c82627b7d11d053e.tar.gz src-6c84d0b1a5f243e4aa87fe02c82627b7d11d053e.zip |
- 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.
Notes
Notes:
svn path=/head/; revision=105250
Diffstat (limited to 'include')
-rw-r--r-- | include/search.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/search.h b/include/search.h index 566aac84918e..4e4606f12720 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 *)); |