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

« back to all changes in this revision

Viewing changes to src/tty.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
/* tty -- print the name of the terminal connected to standard input
2
 
   Copyright (C) 1990-2005, 2008-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
37
37
    TTY_WRITE_ERROR = 3
38
38
  };
39
39
 
40
 
/* The official name of this program (e.g., no `g' prefix).  */
 
40
/* The official name of this program (e.g., no 'g' prefix).  */
41
41
#define PROGRAM_NAME "tty"
42
42
 
43
43
#define AUTHORS proper_name ("David MacKenzie")
58
58
usage (int status)
59
59
{
60
60
  if (status != EXIT_SUCCESS)
61
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
62
 
             program_name);
 
61
    emit_try_help ();
63
62
  else
64
63
    {
65
64
      printf (_("Usage: %s [OPTION]...\n"), program_name);