~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/drivers/common/gzio.c

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#endif
28
28
 
29
29
#ifdef __WIN32__
 
30
#ifndef HAVE_CONFLICTING_FREAD_DECLARATION
30
31
#define HAVE_CONFLICTING_FREAD_DECLARATION
 
32
#endif
31
33
#define FILENAMES_16BIT 1
32
34
#endif
33
35
 
632
634
    while (s->position < pos) {
633
635
        char buf[512];
634
636
        int n;
 
637
        int save_pos = s->position;
635
638
 
636
639
        n = pos - s->position;
637
640
        if (n > sizeof(buf))
643
646
            memset(buf, '\0', n);
644
647
            erts_gzwrite(file, buf, n);
645
648
        }
 
649
        if (save_pos == s->position) break;
646
650
    }
647
651
 
648
652
    return s->position;