getlogin_r: Avoid test failure on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Jan 2011 01:51:03 +0000 (02:51 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 3 Jan 2011 01:51:03 +0000 (02:51 +0100)
commit45dda1d3990612615119ac946d2d34d3ddfa9d8c
treecbf968497fc68e39c4b60fd85ecc3caf662f8487
parent9e0325950c35c2ff5bad205eebbfaba928fdafc6
getlogin_r: Avoid test failure on HP-UX 11.

* tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
ERANGE when the second argument is zero.
* doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
portability problem.
ChangeLog
doc/posix-functions/getlogin_r.texi
tests/test-getlogin_r.c