Page MenuHomeFreeBSD

Add bsearch_b to the libc map and the stdlib header.
ClosedPublic

Authored by pfg on Aug 19 2014, 7:33 PM.
Tags
None
Referenced Files
F133097805: D638.id1156.diff
Wed, Oct 22, 11:10 PM
Unknown Object (File)
Fri, Oct 17, 2:34 AM
Unknown Object (File)
Mon, Oct 13, 7:59 AM
Unknown Object (File)
Thu, Oct 9, 6:20 PM
Unknown Object (File)
Sat, Oct 4, 11:15 AM
Unknown Object (File)
Mon, Sep 29, 8:35 PM
Unknown Object (File)
Sep 17 2025, 7:49 AM
Unknown Object (File)
Sep 16 2025, 8:23 AM
Subscribers

Details

Reviewers
theraven
pfg
Summary

bsearch_b is the Apple blocks enabled version of bsearch(3).
This was added to libc in Revision 264042 but the commit
missed the declaration required to make use of it.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

pfg retitled this revision from to Add bsearch_b to the libc map and the stdlib header..
pfg updated this object.
pfg edited the test plan for this revision. (Show Details)
pfg added a reviewer: theraven.

Shouldn't all of these BLOCKS declarations be moved down to the main BSD_VISIBLE block, since they are non-standard interfaces?

In D638#3, @wollman wrote:

Shouldn't all of these BLOCKS declarations be moved down to the main BSD_VISIBLE block, since they are non-standard interfaces?

Yes, I think that is reasonable.

They were proposed as N1451, and have become popular but they are not standard.

  1. Updating D638: Add bsearch_b to the libc map and the stdlib header. #

As suggested by Garrett Wollman, move the block declarations
to the BSD_VISIBLE section.

pfg added a reviewer: pfg.

...
Sending include/stdlib.h
Sending lib/libc/stdlib/Symbol.map
Transmitting file data ..
Committed revision 270952.

Special Thanks to wollman for the review!

This revision is now accepted and ready to land.Sep 1 2014, 10:27 PM

This was committed (long ago) as r270952.
Thanks!