| 44 | }; |
| 45 | |
| 46 | void |
| 47 | usage (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 (_("\ |
| 56 | Create 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\ |
| 78 | Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they\n\ |
| 79 | must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,\n\ |
| 80 | it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;\n\ |
| 81 | otherwise, 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 | |
| 95 | int |
| 96 | main (int argc, char **argv) |
no test coverage detected