| 63 | }; |
| 64 | |
| 65 | void |
| 66 | usage (int status) |
| 67 | { |
| 68 | if (status != EXIT_SUCCESS) |
| 69 | emit_try_help (); |
| 70 | else |
| 71 | { |
| 72 | printf (_("Usage: %s [OPTION] [COMMAND [ARG]...]\n"), program_name); |
| 73 | printf (_("\ |
| 74 | Run COMMAND with an adjusted niceness, which affects process scheduling.\n\ |
| 75 | With no COMMAND, print the current niceness. Niceness values range from\n\ |
| 76 | %d (most favorable to the process) to %d (least favorable to the process).\n\ |
| 77 | "), |
| 78 | - NZERO, NZERO - 1); |
| 79 | |
| 80 | emit_mandatory_arg_note (); |
| 81 | |
| 82 | oputs (_("\ |
| 83 | -n, --adjustment=N\n\ |
| 84 | add integer N to the niceness (default 10)\n\ |
| 85 | ")); |
| 86 | oputs (HELP_OPTION_DESCRIPTION); |
| 87 | oputs (VERSION_OPTION_DESCRIPTION); |
| 88 | printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); |
| 89 | emit_exec_status (PROGRAM_NAME); |
| 90 | emit_ancillary_info (PROGRAM_NAME); |
| 91 | } |
| 92 | exit (status); |
| 93 | } |
| 94 | |
| 95 | static bool |
| 96 | perm_related_errno (int err) |
no test coverage detected