aboutsummaryrefslogtreecommitdiff
path: root/coreutils/logname.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/logname.c')
-rw-r--r--coreutils/logname.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/coreutils/logname.c b/coreutils/logname.c
index 10b9615a1..a9b1c956d 100644
--- a/coreutils/logname.c
+++ b/coreutils/logname.c
@@ -6,10 +6,6 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9
10/* BB_AUDIT SUSv3 compliant */
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/logname.html */
12
13/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 9/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
14 * 10 *
15 * SUSv3 specifies the string used is that returned from getlogin(). 11 * SUSv3 specifies the string used is that returned from getlogin().
@@ -19,6 +15,18 @@
19 * correct course of action wrt SUSv3 for a failing getlogin() is 15 * correct course of action wrt SUSv3 for a failing getlogin() is
20 * a diagnostic message and an error return. 16 * a diagnostic message and an error return.
21 */ 17 */
18//config:config LOGNAME
19//config: bool "logname"
20//config: default y
21//config: help
22//config: logname is used to print the current user's login name.
23
24//applet:IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname))
25
26//kbuild:lib-$(CONFIG_LOGNAME) += logname.o
27
28/* BB_AUDIT SUSv3 compliant */
29/* http://www.opengroup.org/onlinepubs/007904975/utilities/logname.html */
22 30
23//usage:#define logname_trivial_usage 31//usage:#define logname_trivial_usage
24//usage: "" 32//usage: ""