strerror_r: enforce POSIX recommendations
[pspp] / ChangeLog
index 4ec646385ea06fc8d0eeb7db021d2ebe362fbef9..bc838bdacb7cf763b4aeaedb109e9cb50175ae5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-05-24  Eric Blake  <eblake@redhat.com>
+
+       strerror_r: enforce POSIX recommendations
+       * lib/strerror_r.c (safe_copy): New helper method.
+       (strerror_r): Guarantee a non-empty string.
+       * tests/test-strerror_r.c (main): Enhance tests to incorporate
+       recent POSIX rulings and to match our strerror guarantees.
+       * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
+
 2011-05-24  Jim Meyering  <meyering@redhat.com>
 
        test-perror2.c: avoid warning about unused variable