From 1ce0e7dc093c81afd3565e1977a1d0f00116df74 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 29 Aug 2014 13:00:16 -0700 Subject: 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 " 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. --- modules/qsort_r-tests | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/qsort_r-tests (limited to 'modules/qsort_r-tests') diff --git a/modules/qsort_r-tests b/modules/qsort_r-tests new file mode 100644 index 0000000000..428baf1355 --- /dev/null +++ b/modules/qsort_r-tests @@ -0,0 +1,10 @@ +Files: +tests/test-qsort_r.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-qsort_r +check_PROGRAMS += test-qsort_r -- cgit v1.2.1