cederom commented on PR #15197:
URL: https://github.com/apache/nuttx/pull/15197#issuecomment-2545448959

   Hello world :-) Here is the FreeBSD src repo with the functions:
   
   https://cgit.freebsd.org/src/tree/lib/libc/stdlib
   
   1. `bsearch`: 
   * NuttX: 
https://github.com/apache/nuttx/blob/master/libs/libc/stdlib/lib_bsearch.c.
   * FreeBSD: https://cgit.freebsd.org/src/tree/lib/libc/stdlib/bsearch.c.
   * FreeBSD manpage: https://man.freebsd.org/cgi/man.cgi?query=bsearch.
   * FreeBSD version has 3 clause BSD license (`SPDX-License-Identifier: 
BSD-3-Clause`), seems compatible, may need some minor tweak if we do not need 
block `bsearch_b()` variant and to use old param names + documentation, but 
these may come handy?
   
   2. `qsort`:
   * NuttX: 
https://github.com/apache/nuttx/blob/master/libs/libc/stdlib/lib_qsort.c.
   * FreeBSD: https://cgit.freebsd.org/src/tree/lib/libc/stdlib/qsort.c
   * FreeBSD manpage: https://man.freebsd.org/cgi/man.cgi?query=qsort.
   * FreeBSD version has 3 clause BSD license (`SPDX-License-Identifier: 
BSD-3-Clause`), seems compatible, may need some minor tweak if we do not 
updated implementation / variants + documentation, but these may come handy?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to