> 2010-01-09 Bruno Haible <br...@clisp.org> > > Tests for module 'getlogin_r'. > * modules/getlogin_r-tests: New file. > * tests/test-getlogin_r.c: New file.
And a comment: 2010-01-09 Bruno Haible <br...@clisp.org> * lib/unistd.in.h (getlogin_r): Add comment. *** lib/unistd.in.h.orig Sat Jan 9 14:16:18 2010 --- lib/unistd.in.h Sat Jan 9 13:51:50 2010 *************** *** 485,490 **** --- 485,495 ---- provided (this case is hopefully rare but is left open by the POSIX spec). See <http://www.opengroup.org/susv3xsh/getlogin.html>. + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. */ # if !...@have_decl_getlogin_r@ extern int getlogin_r (char *name, size_t size) _GL_ARG_NONNULL ((1));