aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uname.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-31 14:43:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/uname.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.bz2
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.zip
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/uname.c')
-rw-r--r--coreutils/uname.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c
index d1c50e222..7a86b32a6 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -48,6 +48,23 @@
48 * Fix handling of -a to not print "unknown", add -o and -i support. 48 * Fix handling of -a to not print "unknown", add -o and -i support.
49 */ 49 */
50 50
51//usage:#define uname_trivial_usage
52//usage: "[-amnrspv]"
53//usage:#define uname_full_usage "\n\n"
54//usage: "Print system information\n"
55//usage: "\nOptions:"
56//usage: "\n -a Print all"
57//usage: "\n -m The machine (hardware) type"
58//usage: "\n -n Hostname"
59//usage: "\n -r OS release"
60//usage: "\n -s OS name (default)"
61//usage: "\n -p Processor type"
62//usage: "\n -v OS version"
63//usage:
64//usage:#define uname_example_usage
65//usage: "$ uname -a\n"
66//usage: "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
67
51#include "libbb.h" 68#include "libbb.h"
52/* After libbb.h, since it needs sys/types.h on some systems */ 69/* After libbb.h, since it needs sys/types.h on some systems */
53#include <sys/utsname.h> 70#include <sys/utsname.h>