Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/zlib.c
- This file was copied from sys/libkern/zlib.c.
/* | /* | ||||
* This file is derived from various .h and .c files from the zlib-1.0.4 | * This file is derived from various .h and .c files from the zlib-1.0.4 | ||||
* distribution by Jean-loup Gailly and Mark Adler, with some additions | * distribution by Jean-loup Gailly and Mark Adler, with some additions | ||||
* by Paul Mackerras to aid in implementing Deflate compression and | * by Paul Mackerras to aid in implementing Deflate compression and | ||||
* decompression for PPP packets. See zlib.h for conditions of | * decompression for PPP packets. See zlib.h for conditions of | ||||
* distribution and use. | * distribution and use. | ||||
* | * | ||||
* Changes that have been made include: | * Changes that have been made include: | ||||
* - added Z_PACKET_FLUSH (see zlib.h for details) | * - added Z_PACKET_FLUSH (see zlib.h for details) | ||||
* - added inflateIncomp and deflateOutputPending | * - added inflateIncomp and deflateOutputPending | ||||
* - allow strm->next_out to be NULL, meaning discard the output | * - allow strm->next_out to be NULL, meaning discard the output | ||||
* | * | ||||
* $FreeBSD: head/sys/libkern/zlib.c 318389 2017-05-17 00:34:34Z emaste $ | * $FreeBSD: head/sys/libkern/zlib.c -1 $ | ||||
*/ | */ | ||||
/* | /* | ||||
* ==FILEVERSION 971210== | * ==FILEVERSION 971210== | ||||
* | * | ||||
* This marker is used by the Linux installation script to determine | * This marker is used by the Linux installation script to determine | ||||
* whether an up-to-date version of this file is already installed. | * whether an up-to-date version of this file is already installed. | ||||
*/ | */ | ||||
Show All 27 Lines | |||||
*/ | */ | ||||
/* From: zutil.h,v 1.16 1996/07/24 13:41:13 me Exp $ */ | /* From: zutil.h,v 1.16 1996/07/24 13:41:13 me Exp $ */ | ||||
#ifndef _Z_UTIL_H | #ifndef _Z_UTIL_H | ||||
#define _Z_UTIL_H | #define _Z_UTIL_H | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/zlib.h> | #include <netgraph/zlib.h> | ||||
#else | #else | ||||
#include "zlib.h" | #include "zlib.h" | ||||
#endif | #endif | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* Assume this is a *BSD or SVR4 kernel */ | /* Assume this is a *BSD or SVR4 kernel */ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
▲ Show 20 Lines • Show All 5,349 Lines • Show Last 20 Lines |