Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/zlib/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/param.h> | |||||
#include <dev/zlib/zcalloc.h> | |||||
delphij: A license plate should be added. | |||||
Done Inline ActionsPlease use It is a clone of multiple copies of same functions. ota_j.email.ne.jp: Please use
/* This file is in the public domain. */
It is a clone of multiple copies of same… | |||||
#include <sys/kernel.h> | |||||
#include <sys/malloc.h> | |||||
MALLOC_DEFINE(M_ZLIB, "zlib", "ZLIB Compressor"); | |||||
void * | |||||
zcalloc_waitok(void *nil, u_int items, u_int size) | |||||
{ | |||||
return mallocarray(items, size, M_ZLIB, M_WAITOK); | |||||
} | |||||
void * | |||||
zcalloc_nowait(void *nil, u_int items, u_int size) | |||||
{ | |||||
return mallocarray(items, size, M_ZLIB, M_NOWAIT); | |||||
} | |||||
void | |||||
zcfree(void *nil, void *ptr) | |||||
{ | |||||
free(ptr, M_ZLIB); | |||||
} |
A license plate should be added.