diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
commit | af3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch) | |
tree | 125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/uname.c | |
parent | 5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff) | |
download | busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2 busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip |
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/uname.c')
-rw-r--r-- | coreutils/uname.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c index fd677d27c..4d98fde25 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -4,10 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | /* BB_AUDIT SUSv3 compliant */ | ||
9 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uname.html */ | ||
10 | |||
11 | /* Option Example | 7 | /* Option Example |
12 | * -s, --sysname SunOS | 8 | * -s, --sysname SunOS |
13 | * -n, --nodename rocky8 | 9 | * -n, --nodename rocky8 |
@@ -37,7 +33,6 @@ | |||
37 | * -a, --all: all of the above, in the order shown. | 33 | * -a, --all: all of the above, in the order shown. |
38 | * If -p or -i is not known, don't show them | 34 | * If -p or -i is not known, don't show them |
39 | */ | 35 | */ |
40 | |||
41 | /* Busyboxed by Erik Andersen | 36 | /* Busyboxed by Erik Andersen |
42 | * | 37 | * |
43 | * Before 2003: Glenn McGrath and Manuel Novoa III | 38 | * Before 2003: Glenn McGrath and Manuel Novoa III |
@@ -47,6 +42,26 @@ | |||
47 | * Jan 2009: | 42 | * Jan 2009: |
48 | * Fix handling of -a to not print "unknown", add -o and -i support. | 43 | * Fix handling of -a to not print "unknown", add -o and -i support. |
49 | */ | 44 | */ |
45 | //config:config UNAME | ||
46 | //config: bool "uname" | ||
47 | //config: default y | ||
48 | //config: help | ||
49 | //config: uname is used to print system information. | ||
50 | //config: | ||
51 | //config:config UNAME_OSNAME | ||
52 | //config: string "Operating system name" | ||
53 | //config: default "GNU/Linux" | ||
54 | //config: depends on UNAME | ||
55 | //config: help | ||
56 | //config: Sets the operating system name reported by uname -o. The | ||
57 | //config: default is "GNU/Linux". | ||
58 | |||
59 | //applet:IF_UNAME(APPLET(uname, BB_DIR_BIN, BB_SUID_DROP)) | ||
60 | |||
61 | //kbuild:lib-$(CONFIG_UNAME) += uname.o | ||
62 | |||
63 | /* BB_AUDIT SUSv3 compliant */ | ||
64 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uname.html */ | ||
50 | 65 | ||
51 | //usage:#define uname_trivial_usage | 66 | //usage:#define uname_trivial_usage |
52 | //usage: "[-amnrspvio]" | 67 | //usage: "[-amnrspvio]" |