roken: add mergesort_r()

Add mergesort_r() as a stable sort function that can be used by other
components of Heimdal. Note that there is no standardized prototype for this
function, however it appears that both FreeBSD and glibc would adopt the glibc
convention (where the private data argument appears last). See:

    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214248
This commit is contained in:
Luke Howard
2020-04-07 13:49:27 +10:00
committed by Nico Williams
parent 4f7dc7694e
commit 1c74afb01a
6 changed files with 408 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ HEIMDAL_ROKEN_2.0 {
rk_localtime_r;
rk_memmem;
rk_memset_s;
rk_mergesort;
rk_mergesort_r;
rk_mkdir;
rk_mkdtemp;
rk_mkostemp;