MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/mknod.c:46–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46void
47usage (int status)
48{
49 if (status != EXIT_SUCCESS)
50 emit_try_help ();
51 else
52 {
53 printf (_("Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n"),
54 program_name);
55 fputs (_("\
56Create the special file NAME of the given TYPE.\n\
57"), stdout);
58
59 emit_mandatory_arg_note ();
60
61 oputs (_("\
62 -m, --mode=MODE\n\
63 set file permission bits to MODE, not a=rw - umask\n\
64"));
65 oputs (_("\
66 -Z\n\
67 set the SELinux security context to default type\n\
68"));
69 oputs (_("\
70 --context[=CTX]\n\
71 like -Z, or if CTX is specified then set the\n\
72 SELinux or SMACK security context to CTX\n\
73"));
74 oputs (HELP_OPTION_DESCRIPTION);
75 oputs (VERSION_OPTION_DESCRIPTION);
76 fputs (_("\
77\n\
78Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they\n\
79must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,\n\
80it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;\n\
81otherwise, as decimal. TYPE may be:\n\
82"), stdout);
83 fputs (_("\
84\n\
85 b create a block (buffered) special file\n\
86 c, u create a character (unbuffered) special file\n\
87 p create a FIFO\n\
88"), stdout);
89 printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
90 emit_ancillary_info (PROGRAM_NAME);
91 }
92 exit (status);
93}
94
95int
96main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 2

emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected