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

Function usage

src/nice.c:65–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65void
66usage (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 (_("\
74Run COMMAND with an adjusted niceness, which affects process scheduling.\n\
75With 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
95static bool
96perm_related_errno (int err)

Callers 1

mainFunction · 0.70

Calls 3

emit_mandatory_arg_noteFunction · 0.85
emit_exec_statusFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected