History log of /openbsd-current/sys/lib/libz/zopenbsd.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.10 22-Jul-2021 tb

Add sizes for free() in zlib

Rebased version of a diff from miod who described it as follows:

This tries to keep diffability against upstream, hence a questionable
choice of the size type for zcfree() - but all sizes should fit in 32
bits anyway.

Since all zcfree routines used in the tree cope with NULL arguments
(including the various alloc.c used by the boot blocks), I have
simplified TRY_FREE to compensate for the growth.

Reminded by and ok mpi


# 1.9 04-Jul-2021 deraadt

tb notices i did not add a copyright in 2011


# 1.8 04-Jul-2021 tb

Add missing RCS tags


# 1.7 16-May-2021 jsg

ansi


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.6 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.5 20-Jan-2015 krw

Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@


# 1.4 20-Jan-2015 krw

Missing $OpenBSD$'s.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.3 13-Jul-2014 deraadt

obvious conversion to mallocarray()


# 1.2 12-Jul-2014 tedu

guenther (who also should have been credited in previous free size commits)
noticed that i missed committing one file.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.1 07-Jul-2011 deraadt

Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libz
code. Missing chunks of the API are imported from the libc version,
with a few #ifdef's to port it into the kernel environment.

The bootblocks already used the newer code, and should encounter no
surprises since there are so few changes to the existing files. In
the kernel, ipcomp and kernel ppp are changed to the new API.
ipcomp has been tested.

ok tedu the brave


# 1.9 04-Jul-2021 deraadt

tb notices i did not add a copyright in 2011


# 1.8 04-Jul-2021 tb

Add missing RCS tags


# 1.7 16-May-2021 jsg

ansi


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.6 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.5 20-Jan-2015 krw

Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@


# 1.4 20-Jan-2015 krw

Missing $OpenBSD$'s.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.3 13-Jul-2014 deraadt

obvious conversion to mallocarray()


# 1.2 12-Jul-2014 tedu

guenther (who also should have been credited in previous free size commits)
noticed that i missed committing one file.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.1 07-Jul-2011 deraadt

Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libz
code. Missing chunks of the API are imported from the libc version,
with a few #ifdef's to port it into the kernel environment.

The bootblocks already used the newer code, and should encounter no
surprises since there are so few changes to the existing files. In
the kernel, ipcomp and kernel ppp are changed to the new API.
ipcomp has been tested.

ok tedu the brave


# 1.7 16-May-2021 jsg

ansi


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.6 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.5 20-Jan-2015 krw

Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@


# 1.4 20-Jan-2015 krw

Missing $OpenBSD$'s.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.3 13-Jul-2014 deraadt

obvious conversion to mallocarray()


# 1.2 12-Jul-2014 tedu

guenther (who also should have been credited in previous free size commits)
noticed that i missed committing one file.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.1 07-Jul-2011 deraadt

Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libz
code. Missing chunks of the API are imported from the libc version,
with a few #ifdef's to port it into the kernel environment.

The bootblocks already used the newer code, and should encounter no
surprises since there are so few changes to the existing files. In
the kernel, ipcomp and kernel ppp are changed to the new API.
ipcomp has been tested.

ok tedu the brave


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.6 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.5 20-Jan-2015 krw

Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@


# 1.4 20-Jan-2015 krw

Missing $OpenBSD$'s.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.3 13-Jul-2014 deraadt

obvious conversion to mallocarray()


# 1.2 12-Jul-2014 tedu

guenther (who also should have been credited in previous free size commits)
noticed that i missed committing one file.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.1 07-Jul-2011 deraadt

Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libz
code. Missing chunks of the API are imported from the libc version,
with a few #ifdef's to port it into the kernel environment.

The bootblocks already used the newer code, and should encounter no
surprises since there are so few changes to the existing files. In
the kernel, ipcomp and kernel ppp are changed to the new API.
ipcomp has been tested.

ok tedu the brave