Changeset View
Changeset View
Standalone View
Standalone View
sys/libkern/kern_zlib.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 <sys/time.h> | |||||
#include <sys/kernel.h> | |||||
#include <sys/module.h> | |||||
#ifdef _KERNEL | |||||
static int | |||||
zlib_modevent(module_t mod, int type, void *unused) | |||||
{ | |||||
switch (type) { | |||||
case MOD_LOAD: | |||||
return 0; | |||||
case MOD_UNLOAD: | |||||
return 0; | |||||
} | |||||
return EINVAL; | |||||
} | |||||
static moduledata_t zlib_mod = { | |||||
"zlib", | |||||
zlib_modevent, | |||||
0 | |||||
}; | |||||
DECLARE_MODULE(zlib, zlib_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); | |||||
MODULE_VERSION(zlib, 1); | |||||
#endif /* _KERNEL */ | |||||
#include "../contrib/zlib/crc32.c" /* avoid conflict with libkern/crc32.c */ |