delphij's Chaos


03 Oct 2006

Patch to replace GNU gzip with NetBSD gzip

The patch is available at: Please note that this is considered experimental and it is preliminary for FreeBSD for now, while I think it is very mature code and has been available on NetBSD for years. Positive and negative feedbacks are all welcome.

Archived: 4 Comments

langue | October 5, 2006 9:36 PM

呵呵,是时候做出行动了。不过我看了你blog里的另一篇文章,说有利用libz实现的BSD gzip,gzip本身也是利用了zlib的代码,所以说使用用zlib做的替代品去替代GNU gzip,显然不很合适。

Xin LI | October 5, 2006 9:47 PM

GNU gzip没有用zlib的代码。另外你的“不合适”从何而来,我倒想请教一下。

langue | October 6, 2006 10:04 AM

不敢。zlib 虽然没有直接使用 gzip 的代码,但 zlib 的压缩代码的作者曾负责维护 GNU gzip,你不觉得奇怪么?


另外,从 delphij _AT_ delphij _DOT_ net 发出的邮件,被误判为垃圾邮件了,惭愧。


gogo | November 15, 2006 9:07 PM


/* zlib.h – interface of the ‘zlib’ general purpose compression library
version, October 2nd, 2006

Copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler

This software is provided ‘as-is’, without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
    claim that you wrote the original software. If you use this software
    in a product, an acknowledgment in the product documentation would be
    appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Jean-loup Gailly Mark Adler

The data format used by the zlib library is described by RFCs (Request for
Comments) 1950 to 1952 in the files
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).