~ubuntu-branches/ubuntu/trusty/eglibc/trusty

« back to all changes in this revision

Viewing changes to libio/iofwrite.c

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-01-10 18:39:35 UTC
  • mfrom: (1.5.2) (4.4.24 experimental)
  • Revision ID: package-import@ubuntu.com-20130110183935-afsgfxkmg7wk5eaj
Tags: 2.17-0ubuntu1
* Merge with Debian, bringing in a new upstream and many small fixes:
  - patches/any/cvs-malloc-deadlock.diff: Dropped, merged upstream.
  - patches/ubuntu/lddebug-scopes.diff: Rebase for upstream changes.
  - patches/ubuntu/local-CVE-2012-3406.diff: Rebased against upstream.
  - patches/ubuntu/no-asm-mtune-i686.diff: Fixed in recent binutils.
* This upstream merge fixes a nasty hang in pulseaudio (LP: #1085342)
* Bump MIN_KERNEL_SUPPORTED to 2.6.32 on ARM, now that we no longer
  have to support shonky 2.6.31 kernels on imx51 babbage builders.
* Drop patches/ubuntu/local-disable-nscd-host-caching.diff, as these
  issues were apparently resolved upstream a while ago (LP: #613662)
* Fix the compiled-in bug URL to point to launchpad.net, not Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  if (_IO_vtable_offset (fp) != 0 || _IO_fwide (fp, -1) == -1)
43
43
    written = _IO_sputn (fp, (const char *) buf, request);
44
44
  _IO_release_lock (fp);
45
 
  /* We have written all of the input in case the return value indicates
46
 
     this or EOF is returned.  The latter is a special case where we
47
 
     simply did not manage to flush the buffer.  But the data is in the
48
 
     buffer and therefore written as far as fwrite is concerned.  */
49
 
  if (written == request || written == EOF)
 
45
  /* We are guaranteed to have written all of the input, none of it, or
 
46
     some of it.  */
 
47
  if (written == request)
50
48
    return count;
 
49
  else if (written == EOF)
 
50
    return 0;
51
51
  else
52
52
    return written / size;
53
53
}