~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/nice.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* nice -- run a program with modified niceness
2
 
   Copyright (C) 1990-2005, 2007-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1990-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
33
33
#include "quote.h"
34
34
#include "xstrtol.h"
35
35
 
36
 
/* The official name of this program (e.g., no `g' prefix).  */
 
36
/* The official name of this program (e.g., no 'g' prefix).  */
37
37
#define PROGRAM_NAME "nice"
38
38
 
39
39
#define AUTHORS proper_name ("David MacKenzie")
66
66
usage (int status)
67
67
{
68
68
  if (status != EXIT_SUCCESS)
69
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
70
 
             program_name);
 
69
    emit_try_help ();
71
70
  else
72
71
    {
73
72
      printf (_("Usage: %s [OPTION] [COMMAND [ARG]...]\n"), program_name);
74
73
      printf (_("\
75
74
Run COMMAND with an adjusted niceness, which affects process scheduling.\n\
76
 
With no COMMAND, print the current niceness.  Nicenesses range from\n\
77
 
%d (most favorable scheduling) to %d (least favorable).\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\
78
77
\n\
79
78
  -n, --adjustment=N   add integer N to the niceness (default 10)\n\
80
79
"),