Commit Graph

71 Commits

Author SHA1 Message Date
christos 80beac2873 use zlib-1.2.3 2006-01-14 20:12:36 +00:00
tron 72f9a2a842 Return correct error on all zero length codes. Fix from Gentoo bug 94584. 2005-08-04 14:36:42 +00:00
christos 476fac655a PR/21167: Christian Biere: ctype function misuse. 2005-04-17 17:22:36 +00:00
yamt 97bb1b498d revert zlib.h rev.1.15 (gzopenfull and gzdopenfull)
as gzio.c counterpart has been reverted.
2005-02-05 16:37:03 +00:00
mrg d04c0ebe4a oops; don't back out the minor number, just remove the functions.
this will allow updating to happen seemlessly.
2004-05-01 07:57:46 +00:00
mrg cd841de728 backout the changes made on 29th of january:
- remove gzopenfull() and gzdopenfull()
	- un-bump minor number
	- remove docs for gone functions.

traditionally this is an invalid change (removing an API from a library
without bumping the major.)  it has been decided that this case is special
enough not to require that.  no one should have been using these new
functions yet.

PS:  this may cause "make install" to barf about older libraries already
being installed.
2004-05-01 07:54:50 +00:00
wiz 49bcfb35d8 Call it Adler-32 consistently. From jmc@openbsd. 2004-03-05 01:30:52 +00:00
wiz 375b7a6d24 Use -literal instead of -unfilled Bds; replace OpenBSD with .Ox;
<> -> \*[Lt]\*[Gt].
2004-01-29 15:23:09 +00:00
mrg 42d0909cf9 add two functions to zlib: gzopenfull() and gzdopenfull() that both take
additional "const char *savename" and "u_int32_t mtime" parameters that
are written out into the gzip header in the mtime field and as the original
filename.
2004-01-29 13:08:19 +00:00
wiz 51dc91caa9 Add zlib(3) provided by jmc@openbsd -- thank you! 2003-10-03 18:46:22 +00:00
christos 19fe9b6b27 remove parameter names to avoid shadowing of globals. 2003-03-22 17:23:09 +00:00
jdolecek 47bc3eb448 in gzseek(), use fseeko() instead of fseek() to support full 64bit offset 2003-03-18 20:51:24 +00:00
jdolecek 8174d4a1bb eliminate some const-castaways 2003-03-18 20:47:47 +00:00
jdolecek 6a28264443 constify compress_block() 2003-03-18 20:37:33 +00:00
mycroft ecd973b46f const poisoning. There is no initialized read-write data in the static library
now.
2003-03-18 19:53:15 +00:00
lukem e2d7870626 add RCSID 2003-03-08 07:42:33 +00:00
groo d5953564e9 Remove the HAS_* ifdefs which select [v]s{,n}printf. Always choose the
n version.
2003-03-05 02:20:19 +00:00
christos 4b0ce4e260 fix for potential buffer overflow in snprintf() (from OpenBSD) 2003-03-05 01:15:48 +00:00
wiz 9115df8c49 success, not sucess. Noted by mjl. 2003-01-28 22:35:02 +00:00
lukem ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +00:00
christos daa19b1c89 I've been scolded for not bumping the minor, so there. 2002-05-29 20:07:44 +00:00
christos 8285c57686 Add some extensions that pppdump needs. These do not affect functionality
outside pppdump so I am not bumping the minor number.
2002-05-29 18:15:17 +00:00
tron cf76f4876d Fix memory leak which occurs after an allocation failure. 2002-05-07 09:06:51 +00:00
fvdl 2e99ea24ad Resolve (rcsid) conflicts. 2002-03-11 23:40:14 +00:00
fvdl bc84308f58 Upgrade to zlib 1.1.4 (security fix) 2002-03-11 23:23:32 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
tv 001067bbd1 Readability cleanups; MKfoo=no -> NOfoo. 2001-12-12 00:51:00 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
itojun e30f75ded9 declare __P if missing 2001-01-08 14:53:19 +00:00
itojun 60a6af6e96 do not declare OF() in header. use __P().
maybe we could have ansified it, but did not for possible feedback to the
original zlib distribution
2001-01-08 14:48:19 +00:00
sommerfeld 12c2f5bd9a Add format checking 2000-10-04 17:12:01 +00:00
thorpej 728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
simonb f5f92cb0f4 Sync with src/sys/lib/libz/zutil.h. 1999-11-12 12:14:20 +00:00
itojun 31f706c2ef fix backward-compatible upgrade function name. (__RENAME thing)
the digit after the function name must be (shlib major + 1).

From: Klaus Klein <kleink@ira.uka.de>
1999-10-26 22:16:48 +00:00
itojun 52c808fa73 increase shlib minor for z_off_t changes. 1999-10-26 10:00:29 +00:00
itojun fb26763771 make z_off_t into off_t, which used to be "long" by mistake.
backward compatibility functions are supplied.

XXX increase shlib major, or minor?
1999-10-26 03:42:58 +00:00
garbled 61abb01179 libz works much better when the examples aren't compiled into the
library.  This caused severe pain with c++, as the example contained
a main().
1999-07-09 07:07:13 +00:00
simonb 10b4ca41b4 Revert white space changes for imported sources. 1999-07-03 12:30:16 +00:00
simonb 6bf3aa19f9 More trailing white space. 1999-07-02 15:46:05 +00:00
christos d9d6177e6a Somehow I forgot to update the changes from the kernel. 1999-05-03 09:41:08 +00:00
abs edc1a24a56 Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
RCS Id.
1999-02-25 08:02:19 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
tron b3c5527722 Sync with file in "src/sys/lib/libz". 1998-11-03 22:05:43 +00:00
tron bce471cd9e Bump minor version because some function calls were added. 1998-11-02 08:17:09 +00:00
tron 36d279e15c Resolve import conflicts. 1998-11-01 20:33:24 +00:00
tron fa4fef0f6d Import zlib version 1.1.3. 1998-11-01 19:48:17 +00:00
cgd d376f961fd if _STANDALONE or _KERNEL, don't include standard headers and pull
in libkern.h instead.  (That doesn't even appear to be necessary,
but it's the 'standard' thing to do.)
1998-03-27 01:10:43 +00:00
perry 93db5caa95 RCSID Police. 1998-01-05 07:41:06 +00:00
lukem 570f447f0e use CPPFLAGS instead of CFLAGS 1997-10-23 03:31:09 +00:00
lukem 5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00