Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/kern_zlib.h
- 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 |
/* $FreeBSD$ */ | |||||
#ifndef KERN_ZLIB_H | |||||
#define KERN_ZLIB_H | |||||
/* | |||||
* #1 - sys/crc32.h is split out of sys/libkern.h to avoid conflicts | |||||
* between zlib's crc32 and system crc32. | |||||
* #2 - Use contrib/zstd/lib/freebsd's stdlib compatible includes. | |||||
* #3 - ZLIB_C is created con/kern.pre.mk to share compile paths. | |||||
* -I contrib/zlib | |||||
* -I sys/contrib/zstd/lib/freebsd | |||||
* #4 - sys/zlib.h defines these. | |||||
* Z_PREIFX | |||||
* NO_GZIP | |||||
* Z_SOLO - this is for libkern/zlib.c and not needed for clients of zlib. | |||||
* #5 - opencryptodeflate.c | |||||
* zfs.state->dummy is an address and doesn't seem to be useful. | |||||
* Its DTRACE probe is removed. | |||||
* #6 - netgraph/deflate.c needs and uses FreeBSD enhancements to zlib. | |||||
* Moved sys/zlib.h to netgraph/zlib.h, sys/libkern/zlib.c to | |||||
* netgraph/zlib.c, and netgraph/deflate.c includes netgraph/zlib.c | |||||
* to compile as a part of deflate.c. | |||||
* We may consider dropping functions with the same implementation | |||||
* as contrib/zlib from netgraph/zlib.c. However, this efforts | |||||
* require exposing static functions to general public. | |||||
* | |||||
* TODOs | |||||
* #1 - Should we move contrib/zlib to sys/contrib/zlib? | |||||
* #2 - zfs has its own copy of zlib, too. | |||||
* #3 - GZIP APIs are redefined in multiple places as static functions. | |||||
*/ | |||||
#define Z_PREFIX | |||||
#define NO_GZIP | |||||
#define Z_SOLO | |||||
#include <zconf.h> /* from contrib/zlib */ | |||||
#include <zlib.h> /* from contrib/zlib */ | |||||
#endif |