1 #include <sys/types.h> 2 #include <sys/malloc.h> 3 #include <lib/libz/zutil.h> 4 5 /* 6 * Space allocation and freeing routines for use by zlib routines. 7 */ 8 void * 9 zcalloc(notused, items, size) 10 void *notused; 11 u_int items, size; 12 { 13 void *ptr; 14 15 ptr = malloc(items * size, M_DEVBUF, M_NOWAIT); 16 return ptr; 17 } 18 19 void 20 zcfree(notused, ptr) 21 void *notused; 22 void *ptr; 23 { 24 free(ptr, M_DEVBUF); 25 } 26