Changeset View
Changeset View
Standalone View
Standalone View
sys/libkern/kern_zcalloc.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#include <sys/malloc.h> | |||||
#include <zutil.h> | |||||
void * | |||||
z_zcalloc(void *nil, u_int items, u_int size) | |||||
{ | |||||
void *ptr; | |||||
ptr = malloc(items * size, M_TEMP, M_NOWAIT); /* HIRO - can we use kernl malloc/free? */ | |||||
return ptr; | |||||
} | |||||
void | |||||
z_zcfree(void *nil, void *ptr) | |||||
{ | |||||
free(ptr, M_TEMP); | |||||
} |