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

« back to all changes in this revision

Viewing changes to src/cksum.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
/* cksum -- calculate and print POSIX checksums and sizes of files
2
 
   Copyright (C) 1992, 1995-2006, 2008-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1992-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
28
28
      crctab > crctab.h
29
29
 
30
30
  This software is compatible with neither the System V nor the BSD
31
 
  `sum' program.  It is supposed to conform to POSIX, except perhaps
 
31
  'sum' program.  It is supposed to conform to POSIX, except perhaps
32
32
  for foreign language support.  Any inconsistency with the standard
33
33
  (other than foreign language support) is a bug.  */
34
34
 
35
35
#include <config.h>
36
36
 
37
 
/* The official name of this program (e.g., no `g' prefix).  */
 
37
/* The official name of this program (e.g., no 'g' prefix).  */
38
38
#define PROGRAM_NAME "cksum"
39
39
 
40
40
#define AUTHORS proper_name ("Q. Frank Xia")
257
257
usage (int status)
258
258
{
259
259
  if (status != EXIT_SUCCESS)
260
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
261
 
             program_name);
 
260
    emit_try_help ();
262
261
  else
263
262
    {
264
263
      printf (_("\
291
290
 
292
291
  atexit (close_stdout);
293
292
 
 
293
  /* Line buffer stdout to ensure lines are written atomically and immediately
 
294
     so that processes running in parallel do not intersperse their output.  */
 
295
  setvbuf (stdout, NULL, _IOLBF, 0);
 
296
 
294
297
  parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, Version,
295
298
                      usage, AUTHORS, (char const *) NULL);
296
299
  if (getopt_long (argc, argv, "", NULL, NULL) != -1)