delphij's Chaos

选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……

03 Oct 2006

Patch to replace GNU gzip with NetBSD gzip

The patch is available at: http://people.freebsd.org/~delphij/for_review/bsd_gzip/. 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的代码呢?

我看了一下zlib的声明(下载的版本是1.2.3.3)
/* zlib.h – interface of the ‘zlib’ general purpose compression library
version 1.2.3.3, 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
jloup@gzip.org madler@alumni.caltech.edu

The data format used by the zlib library is described by RFCs (Request for
Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
*/

这与BSD协议有冲突吗?