0ed1d6fb00
with an eventual goal to convert all legacl zlib callers to the new zlib version: * Move generic zlib shims that are not specific to zlib 1.0.4 to sys/dev/zlib. * Connect new zlib (1.2.11) to the zlib kernel module, currently built with Z_SOLO. * Prefix the legacy zlib (1.0.4) with 'zlib104_' namespace. * Convert sys/opencrypto/cryptodeflate.c to use new zlib. * Remove bundled zlib 1.2.3 from ZFS and adapt it to new zlib and make it depend on the zlib module. * Fix Z_SOLO build of new zlib. PR: 229763 Submitted by: Yoshihiro Ota <ota j email ne jp> Reviewed by: markm (sys/dev/zlib/zlib_kmod.c) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D19706
14 lines
275 B
C
14 lines
275 B
C
/*
|
|
* This file is in the public domain.
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
#ifndef _DEV_ZLIB_ZCALLOC_
|
|
#define _DEV_ZLIB_ZCALLOC_
|
|
|
|
void * zcalloc_waitok(void *nil, u_int items, u_int size);
|
|
void * zcalloc_nowait(void *nil, u_int items, u_int size);
|
|
void zcfree(void *nil, void *ptr);
|
|
|
|
#endif
|