From 3361cfa64ad042478aea5834785270e1553b1801 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 9 Jan 2010 14:16:57 +0100 Subject: [PATCH] getlogin_r: Add comment. --- ChangeLog | 4 ++++ lib/unistd.in.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 41a153208a..a201f25699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-09 Bruno Haible + + * lib/unistd.in.h (getlogin_r): Add comment. + 2010-01-09 Bruno Haible Tests for module 'getlogin_r'. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index f1ed8b826a..3e22d8defc 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -485,6 +485,11 @@ extern int gethostname(char *name, size_t len) _GL_ARG_NONNULL ((1)); provided (this case is hopefully rare but is left open by the POSIX spec). See . + + 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)); -- 2.30.2