From 6073421583e094c5757060422b2f7410f25ce665 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 14 Dec 2002 14:15:38 +0000 Subject: [PATCH] (usage): Specify how major and minor mode numbers are interpreted. Remove now-redundant usage-specifying comment. --- src/mknod.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/mknod.c b/src/mknod.c index 2149856..8156fae 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -15,17 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Usage: mknod [-m mode] [--mode=mode] path {bcu} major minor - make a block or character device node - mknod [-m mode] [--mode=mode] path p - make a FIFO (named pipe) - - Options: - -m, --mode=mode Set the mode of created nodes to MODE, which is - symbolic as in chmod and uses the umask as a point of - departure. - - David MacKenzie */ +/* Written by David MacKenzie */ #include #include @@ -62,7 +52,8 @@ usage (int status) program_name); else { - printf (_("Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n"), program_name); + printf (_("Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n"), + program_name); fputs (_("\ Create the special file NAME of the given TYPE.\n\ \n\ @@ -77,7 +68,12 @@ Mandatory arguments to long options are mandatory for short options too.\n\ fputs (VERSION_OPTION_DESCRIPTION, stdout); fputs (_("\ \n\ -MAJOR MINOR are forbidden for TYPE p, mandatory otherwise. TYPE may be:\n\ +Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they\n\ +must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,\n\ +it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;\n\ +otherwise, as decimal. TYPE may be:\n\ +"), stdout); + fputs (_("\ \n\ b create a block (buffered) special file\n\ c, u create a character (unbuffered) special file\n\ -- 2.7.4