Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/zlib/zcalloc.c
Show All 18 Lines | |||||
void * | void * | ||||
zcalloc_nowait(void *nil, u_int items, u_int size) | zcalloc_nowait(void *nil, u_int items, u_int size) | ||||
{ | { | ||||
return mallocarray(items, size, M_ZLIB, M_NOWAIT); | 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 | void | ||||
zcfree(void *nil, void *ptr) | zcfree(void *nil, void *ptr) | ||||
{ | { | ||||
free(ptr, M_ZLIB); | free(ptr, M_ZLIB); | ||||
} | } |