From 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 2 Dec 2009 17:38:41 -0800 Subject: Add qsort_r() implementation to the C library. NOTE: This replaces qsort.c with the FreeBSD version. While the patch changes the source, it should not alter the implementation that should use the exact same algorithm. --- libc/include/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/include') diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index acfe694..4f18833 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -101,6 +101,7 @@ extern void * bsearch(const void *key, const void *base0, int (*compar)(const void *, const void *)); extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); +extern void qsort_r(void *a, size_t n, size_t es, void *thunk, int (*)(void *, const void *, const void *)); extern long jrand48(unsigned short *); extern long mrand48(void); -- cgit v1.1