Re: [PATCH] strerror_r: enforce POSIX recommendations

2011-05-23 Thread Eric Blake
On 05/21/2011 12:09 PM, Bruno Haible wrote: > Eric Blake wrote: >> 2011-05-20 Eric Blake >> >> +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):

Re: [PATCH] strerror_r: enforce POSIX recommendations

2011-05-21 Thread Bruno Haible
Eric Blake wrote: > 2011-05-20 Eric Blake > > + 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 POS

[PATCH] strerror_r: enforce POSIX recommendations

2011-05-20 Thread Eric Blake
* 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. --- This now p