~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to sys-utils/renice.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <stdlib.h>
45
45
#include <string.h>
46
46
#include <errno.h>
47
 
#include <err.h>
48
47
#include "nls.h"
 
48
#include "c.h"
49
49
 
50
50
static int donice(int,int,int);
51
51
 
52
52
static void __attribute__((__noreturn__)) usage(FILE *out)
53
53
{
54
 
        fprintf(out, _(
55
 
                "\nUsage:\n"
56
 
                " %1$s [-n] <priority> [-p] <pid> [<pid>  ...]\n"
 
54
        fputs(_("\nUsage:\n"), out);
 
55
        fprintf(out,
 
56
              _(" %1$s [-n] <priority> [-p] <pid> [<pid>  ...]\n"
57
57
                " %1$s [-n] <priority>  -g <pgrp> [<pgrp> ...]\n"
58
58
                " %1$s [-n] <priority>  -u <user> [<user> ...]\n"),
59
59
                program_invocation_short_name);
60
60
 
61
 
        fprintf(out, _(
62
 
                "\nOptions:\n"
63
 
                " -g, --pgrp <id>        interpret as process group ID\n"
 
61
        fputs(_("\nOptions:\n"), out);
 
62
        fputs(_(" -g, --pgrp <id>        interpret as process group ID\n"
64
63
                " -h, --help             print help\n"
65
64
                " -n, --priority <num>   set the nice increment value\n"
66
65
                " -p, --pid <id>         force to be interpreted as process ID\n"
67
66
                " -u, --user <name|id>   interpret as username or user ID\n"
68
 
                " -v, --version          print version\n"));
 
67
                " -v, --version          print version\n"), out);
69
68
 
70
 
        fprintf(out, _("\nFor more information see renice(1).\n"));
 
69
        fputs(_("\nFor more information see renice(1).\n"), out);
71
70
 
72
71
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
73
72
}