]> Savannah Git Hosting - gnulib.git/commit
qsort_r: new module, for GNU-style qsort_r
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Aug 2014 20:00:16 +0000 (13:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Aug 2014 20:49:52 +0000 (13:49 -0700)
commit1ce0e7dc093c81afd3565e1977a1d0f00116df74
treeb5a0ae15a82ed4a3232f4b7e47b8a489fb9c6ead
parenta6c54be167bd5be41013a254b4e6ba840420a1d0
qsort_r: new module, for GNU-style qsort_r

This works even on FreeBSD, which has an incompatible qsort_r API.
* MODULES.html.sh: Add it.
* doc/glibc-functions/qsort_r.texi: It's now supported.
* lib/qsort.c: New file, taken from glibc with minor changes
inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
removed.
* lib/qsort_r.c: New file, compiled only on FreeBSD.
* lib/stdlib.in.h (qsort_r): Declare in the usual way.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
* modules/qsort_r, modules/qsort_r-tests: New files.
* modules/stdlib (Makefile): Set up its defaults.
* tests/test-qsort_r.c: New file.
ChangeLog
MODULES.html.sh
doc/glibc-functions/qsort_r.texi
lib/qsort.c [new file with mode: 0644]
lib/qsort_r.c [new file with mode: 0644]
lib/stdlib.in.h
m4/stdlib_h.m4
modules/qsort_r [new file with mode: 0644]
modules/qsort_r-tests [new file with mode: 0644]
modules/stdlib
tests/test-qsort_r.c [new file with mode: 0644]