tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qsort_r

In article <>,
Alan Barrett  <> wrote:
>On Sun, 08 Dec 2013, David Holland wrote:
>> My irritation with not being able to pass a data pointer through 
>> qsort() boiled over just now. Apparently Linux and/or GNU 
>> has a qsort_r() that supports this; so, following is a patch 
>> that gives us a compatible qsort_r() plus mergesort_r(), and 
>> heapsort_r().
>Apparently FreeBSD [1] and GNU [2] have incompatible versions 
>of qsort_r, passing the extra 'thunk' or 'data' argument in a 
>different position.
>[1]: FreeBSD qsort_r <>
>[2]: Linux qsort_r  <>
>If we have to pick one, let's pick the FreeBSD version.

Actually let's not (fortunately dh@ chose the right one).
We should pick the linux one:


Home | Main Index | Thread Index | Old Index