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

« back to all changes in this revision

Viewing changes to lib/close-stream.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
/* Close a stream, with nicer error checking than fclose's.
2
2
 
3
 
   Copyright (C) 1998-2002, 2004, 2006-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 1998-2002, 2004, 2006-2012 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
63
63
     fclose failed, with one exception: ignore an fclose failure if
64
64
     there was no previous error, no data remains to be flushed, and
65
65
     fclose failed with EBADF.  That can happen when a program like cp
66
 
     is invoked like this `cp a b >&-' (i.e., with standard output
 
66
     is invoked like this 'cp a b >&-' (i.e., with standard output
67
67
     closed) and doesn't generate any output (hence no previous error
68
68
     and nothing to be flushed).  */
69
69