summaryrefslogtreecommitdiff
path: root/modules/qsort_r-tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-08-29 13:00:16 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-08-29 13:49:52 -0700
commit1ce0e7dc093c81afd3565e1977a1d0f00116df74 (patch)
treeb5a0ae15a82ed4a3232f4b7e47b8a489fb9c6ead /modules/qsort_r-tests
parenta6c54be167bd5be41013a254b4e6ba840420a1d0 (diff)
downloadgnulib-1ce0e7dc093c81afd3565e1977a1d0f00116df74.tar.gz
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.
Diffstat (limited to 'modules/qsort_r-tests')
-rw-r--r--modules/qsort_r-tests10
1 files changed, 10 insertions, 0 deletions
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