On 8/7/19 2:43 PM, enh wrote:
What's the plan for the qsort_r interface, given that glibc and BSD have mutually incompatible ones (which is why I didn't add it to Android)?

For what it's worth, Solaris has followed the lead of glibc and NetBSD in
implementing qsort_r() as:

       void qsort_r(void *base, size_t nel, size_t width,
           int (*compar)(const void *x, const void *y, void *context),
           void *context);

with the engineer responsible citing https://reviews.freebsd.org/D17083 as
resolving the discrepancy in FreeBSD.

--
        -Alan Coopersmith-               alan.coopersm...@oracle.com
         Oracle Solaris Engineering - https://blogs.oracle.com/alanc

Reply via email to