| 48 | }; |
| 49 | |
| 50 | void |
| 51 | usage (int status) |
| 52 | { |
| 53 | if (status != EXIT_SUCCESS) |
| 54 | emit_try_help (); |
| 55 | else |
| 56 | { |
| 57 | printf (_("Usage: %s [OPTION]... DIRECTORY...\n"), program_name); |
| 58 | fputs (_("\ |
| 59 | Create the DIRECTORY(ies), if they do not already exist.\n\ |
| 60 | "), stdout); |
| 61 | |
| 62 | emit_mandatory_arg_note (); |
| 63 | |
| 64 | oputs (_("\ |
| 65 | -m, --mode=MODE\n\ |
| 66 | set file mode (as in chmod), not a=rwx - umask\n\ |
| 67 | ")); |
| 68 | oputs (_("\ |
| 69 | -p, --parents\n\ |
| 70 | no error if existing, make parent directories as needed,\n\ |
| 71 | with their file modes unaffected by any -m option\n\ |
| 72 | ")); |
| 73 | oputs (_("\ |
| 74 | -v, --verbose\n\ |
| 75 | print a message for each created directory\n\ |
| 76 | ")); |
| 77 | oputs (_("\ |
| 78 | -Z\n\ |
| 79 | set SELinux security context of each created directory\n\ |
| 80 | to the default type\n\ |
| 81 | ")); |
| 82 | oputs (_("\ |
| 83 | --context[=CTX]\n\ |
| 84 | like -Z, or if CTX is specified then set the\n\ |
| 85 | SELinux or SMACK security context to CTX\n\ |
| 86 | ")); |
| 87 | oputs (HELP_OPTION_DESCRIPTION); |
| 88 | oputs (VERSION_OPTION_DESCRIPTION); |
| 89 | emit_ancillary_info (PROGRAM_NAME); |
| 90 | } |
| 91 | exit (status); |
| 92 | } |
| 93 | |
| 94 | /* Options passed to subsidiary functions. */ |
| 95 | struct mkdir_options |
no test coverage detected