diff options
author | Xin LI <delphij@FreeBSD.org> | 2019-08-07 01:41:17 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2019-08-07 01:41:17 +0000 |
commit | a15cb219c6f2b8ed16179c2fce882a2ff327b753 (patch) | |
tree | 349e309b3dc2c04b7d3023b638aa084ff4456645 /sys/dev/zlib/zcalloc.c | |
parent | 67b3fe8ecfee0266f3aaabc0c04e0b9de1af45ec (diff) | |
download | src-a15cb219c6f2b8ed16179c2fce882a2ff327b753.tar.gz src-a15cb219c6f2b8ed16179c2fce882a2ff327b753.zip |
Expose zlib's utility functions in Z_SOLO library when building kernel.
This allows kernel code to reuse zlib's implementation.
PR: 229763
Reviewed by: Yoshihiro Ota <ota j email ne jp>
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D21156
Notes
Notes:
svn path=/head/; revision=350670
Diffstat (limited to 'sys/dev/zlib/zcalloc.c')
-rw-r--r-- | sys/dev/zlib/zcalloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/zlib/zcalloc.c b/sys/dev/zlib/zcalloc.c index 198633d5de39..6f2b1a17c60c 100644 --- a/sys/dev/zlib/zcalloc.c +++ b/sys/dev/zlib/zcalloc.c @@ -24,6 +24,13 @@ zcalloc_nowait(void *nil, u_int items, u_int size) return mallocarray(items, size, M_ZLIB, M_NOWAIT); } +void * +zcalloc(void *nil, u_int items, u_int size) +{ + + return zcalloc_nowait(nil, items, size); +} + void zcfree(void *nil, void *ptr) { |