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.
This commit is contained in:
David 'Digit' Turner
2009-12-02 17:38:41 -08:00
parent e1e684920f
commit 754c178ae5
4 changed files with 76 additions and 37 deletions

View File

@@ -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);