Changeset View
Changeset View
Standalone View
Standalone View
head/sys/contrib/zlib/zlib.h
Show First 20 Lines • Show All 1,207 Lines • ▼ Show 20 Lines | /* Return flags indicating compile-time options. | ||||
24: 0 = vs*, 1 = s* -- 1 means limited to 20 arguments after the format | 24: 0 = vs*, 1 = s* -- 1 means limited to 20 arguments after the format | ||||
25: 0 = *nprintf, 1 = *printf -- 1 means gzprintf() not secure! | 25: 0 = *nprintf, 1 = *printf -- 1 means gzprintf() not secure! | ||||
26: 0 = returns value, 1 = void -- 1 means inferred string length returned | 26: 0 = returns value, 1 = void -- 1 means inferred string length returned | ||||
Remainder: | Remainder: | ||||
27-31: 0 (reserved) | 27-31: 0 (reserved) | ||||
*/ | */ | ||||
#ifndef Z_SOLO | #if !defined(Z_SOLO) || defined(_KERNEL) | ||||
/* utility functions */ | /* utility functions */ | ||||
/* | /* | ||||
The following utility functions are implemented on top of the basic | The following utility functions are implemented on top of the basic | ||||
stream-oriented functions. To simplify the interface, some default options | stream-oriented functions. To simplify the interface, some default options | ||||
are assumed (compression level and memory usage, standard memory allocation | are assumed (compression level and memory usage, standard memory allocation | ||||
functions). The source code of these utility functions can be modified if | functions). The source code of these utility functions can be modified if | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen, | ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen, | ||||
const Bytef *source, uLong *sourceLen)); | const Bytef *source, uLong *sourceLen)); | ||||
/* | /* | ||||
Same as uncompress, except that sourceLen is a pointer, where the | Same as uncompress, except that sourceLen is a pointer, where the | ||||
length of the source is *sourceLen. On return, *sourceLen is the number of | length of the source is *sourceLen. On return, *sourceLen is the number of | ||||
source bytes consumed. | source bytes consumed. | ||||
*/ | */ | ||||
#endif /* !Z_SOLO || _KERNEL */ | |||||
#ifndef Z_SOLO | |||||
/* gzip file access functions */ | /* gzip file access functions */ | ||||
/* | /* | ||||
This library supports reading and writing files in gzip (.gz) format with | This library supports reading and writing files in gzip (.gz) format with | ||||
an interface similar to that of stdio, using the functions that start with | an interface similar to that of stdio, using the functions that start with | ||||
"gz". The gzip format is different from the zlib format. gzip is a gzip | "gz". The gzip format is different from the zlib format. gzip is a gzip | ||||
wrapper, documented in RFC 1952, wrapped around a deflate stream. | wrapper, documented in RFC 1952, wrapped around a deflate stream. | ||||
▲ Show 20 Lines • Show All 615 Lines • Show Last 20 Lines |