diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-03-31 14:43:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-31 14:43:25 +0200 |
commit | 34425389e09353a8dacdd6b23a62553f699c544c (patch) | |
tree | 4eb2e19685536384748e75af827deca885c9cc0a /coreutils/mknod.c | |
parent | e3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff) | |
download | busybox-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/mknod.c')
-rw-r--r-- | coreutils/mknod.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 14d91b5df..50dbd62e3 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -9,6 +9,24 @@ | |||
9 | 9 | ||
10 | /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ | 10 | /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ |
11 | 11 | ||
12 | //usage:#define mknod_trivial_usage | ||
13 | //usage: "[-m MODE] " IF_SELINUX("[-Z] ") "NAME TYPE MAJOR MINOR" | ||
14 | //usage:#define mknod_full_usage "\n\n" | ||
15 | //usage: "Create a special file (block, character, or pipe)\n" | ||
16 | //usage: "\nOptions:" | ||
17 | //usage: "\n -m MODE Creation mode (default a=rw)" | ||
18 | //usage: IF_SELINUX( | ||
19 | //usage: "\n -Z Set security context" | ||
20 | //usage: ) | ||
21 | //usage: "\nTYPE:" | ||
22 | //usage: "\n b Block device" | ||
23 | //usage: "\n c or u Character device" | ||
24 | //usage: "\n p Named pipe (MAJOR and MINOR are ignored)" | ||
25 | //usage: | ||
26 | //usage:#define mknod_example_usage | ||
27 | //usage: "$ mknod /dev/fd0 b 2 0\n" | ||
28 | //usage: "$ mknod -m 644 /tmp/pipe p\n" | ||
29 | |||
12 | #include <sys/sysmacros.h> // For makedev | 30 | #include <sys/sysmacros.h> // For makedev |
13 | 31 | ||
14 | #include "libbb.h" | 32 | #include "libbb.h" |