Commit Graph

86 Commits

Author SHA1 Message Date
andvar 6f8dc1509f fix various typos, mainly in comments, but also in man pages and log messages. 2021-10-21 13:21:53 +00:00
mrg 1c682a68c9 use GCC_NO_IMPLICIT_FALLTHRU. 2021-04-26 07:17:30 +00:00
mrg 21303c93e9 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-29 23:44:58 +00:00
mrg 1fcf7be45f - use -Wno-error=implicit-fallthrough with GCC7. 2019-02-04 04:05:15 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
wiz 65bf0053ed Update zlib version in pkgconfig file. 2017-03-12 20:38:30 +00:00
christos 93f630910e Adapt to new zlib 2017-01-10 01:28:03 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
wiz 87bc762a20 Install a pkg-config file for zlib. 2014-01-30 06:49:16 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
matt 572e1c8587 These directories don't handle WARNS=5 2012-03-21 10:08:30 +00:00
njoly a973b36486 Use Lk macro when dealing with URLs. Another part of PR/29238. 2012-03-15 19:04:46 +00:00
joerg f70c7c0422 Use .In instead of .Ar Pa 2010-03-22 21:56:05 +00:00
joerg 5d4d55d864 Remove redundant physical markup. Don't workaround ancient macro argment
limit with .Xo/.Xc.
2009-03-12 12:47:49 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
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