1. 07 6月, 2022 1 次提交
  2. 11 3月, 2021 1 次提交
  3. 09 9月, 2020 1 次提交
  4. 16 1月, 2017 1 次提交
  5. 02 1月, 2017 1 次提交
  6. 01 1月, 2017 1 次提交
  7. 04 12月, 2016 2 次提交
    • M
      Create z_size_t and z_ssize_t types. · ca50ebd4
      Mark Adler 提交于
      Normally these are set to size_t and ssize_t. But if they do not
      exist, then they are set to the smallest integer type that can
      contain a pointer. size_t is unsigned and ssize_t is signed.
      ca50ebd4
    • M
      Clean up gz* function return values. · 123f9cfa
      Mark Adler 提交于
      In some cases the return values did not match the documentation,
      or the documentation did not document all of the return values.
      gzprintf() now consistently returns negative values on error,
      which matches the behavior of the stdio fprintf() function.
      123f9cfa
  8. 30 1月, 2016 1 次提交
  9. 02 8月, 2015 1 次提交
  10. 06 7月, 2015 1 次提交
  11. 25 4月, 2014 1 次提交
    • M
      Assure that gzoffset() is correct when appending. · 72c70060
      Mark Adler 提交于
      An open() with O_APPEND followed by an lseek() to determine the
      position will return zero for a non-empty file, even though the
      next write will start at the end of the file.  This commit works
      around that by doing an lseek() to the end when appending.
      72c70060
  12. 25 3月, 2013 2 次提交
  13. 13 8月, 2012 1 次提交
    • M
      Clean up the usage of z_const and respect const usage within zlib. · 62d6112a
      Mark Adler 提交于
      This patch allows zlib to compile cleanly with the -Wcast-qual gcc
      warning enabled, but only if ZLIB_CONST is defined, which adds
      const to next_in and msg in z_stream and in the in_func prototype.
      A --const option is added to ./configure which adds -DZLIB_CONST
      to the compile flags, and adds -Wcast-qual to the compile flags
      when ZLIBGCCWARN is set in the environment.
      62d6112a
  14. 23 5月, 2012 1 次提交
  15. 03 5月, 2012 1 次提交
    • M
      Replace use of unsafe string functions with snprintf if available. · c58f7ab2
      Mark Adler 提交于
      This avoids warnings in OpenBSD that apparently can't be turned
      off whenever you link strcpy, strcat, or sprintf.  When snprintf
      isn't available, the use of the "unsafe" string functions has
      always in fact been safe, since the lengths are all checked before
      those functions are called.
      
      We do not use strlcpy or strlcat, since they are not (yet) found on
      all systems.  snprintf on the other hand is part of the C standard
      library and is very common.
      c58f7ab2
  16. 19 3月, 2012 3 次提交
  17. 18 3月, 2012 1 次提交
  18. 17 3月, 2012 1 次提交
  19. 11 3月, 2012 2 次提交
  20. 05 3月, 2012 1 次提交
  21. 04 3月, 2012 1 次提交
  22. 19 12月, 2011 1 次提交
  23. 12 12月, 2011 1 次提交
    • M
      Fix gzeof() to behave just like feof() when read is not past end of file. · 98f5779f
      Mark Adler 提交于
      Before, gzeof() would return true (accurately) when the last read request
      went just up to the end of the uncompressed data.  In the analogous case,
      feof() would return false, only returning true when a read request goes
      past the end of the file.  This patch corrects gzeof() to behave in the
      same way as feof(), as noted in the zlib.h documentation.
      98f5779f
  24. 03 10月, 2011 1 次提交
  25. 02 10月, 2011 1 次提交
  26. 01 10月, 2011 1 次提交
  27. 27 9月, 2011 3 次提交
  28. 26 9月, 2011 1 次提交
    • M
      Allow gzread() and related to continue after gzclearerr(). · 5ad116ab
      Mark Adler 提交于
      Before this fix, gzread() would lose data if a premature end of file
      was encountered.  This prevented gzread() from being used on a file
      that was being written concurrently.  Now gzread() returns all of the
      data it has available before indicating a premature end of file.
      
      This also changes the error returned on a premature end of file from
      Z_DATA_ERROR to Z_BUF_ERROR.  This allows the user to determine if
      the error is recoverable, which it is if Z_BUF_ERROR is returned.  If
      a Z_DATA_ERROR is returned, then the error is not recoverable.
      
      This patch replaces the functionality of a previous patch that fixed
      reading through an empty gzip stream in a concatenation of gzip
      streams.
      
      To implement this fix, a noticeable rewrite of gzread.c was needed.
      The patch has the added advantage of using inflate's gzip processing
      instead of replicating the functionality in gzread.c.  This makes the
      gz code a little simpler.
      5ad116ab
  29. 12 9月, 2011 1 次提交
  30. 10 9月, 2011 4 次提交