[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getlogin on Windows systems
From: |
Bruno Haible |
Subject: |
Re: getlogin on Windows systems |
Date: |
Sat, 9 Jan 2010 14:18:13 +0100 |
User-agent: |
KMail/1.9.9 |
> 2010-01-09 Bruno Haible <address@hidden>
>
> 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 <address@hidden>
* 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 address@hidden@
extern int getlogin_r (char *name, size_t size) _GL_ARG_NONNULL ((1));