aboutsummaryrefslogtreecommitdiff
path: root/coreutils/mknod.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /coreutils/mknod.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'coreutils/mknod.c')
-rw-r--r--coreutils/mknod.c18
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"