Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/common/lz4/lz4.c
Show All 38 Lines | |||||
#include <sys/zfs_context.h> | #include <sys/zfs_context.h> | ||||
#elif defined(_STANDALONE) | #elif defined(_STANDALONE) | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#include <stand.h> | #include <stand.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
#undef ASSERT | |||||
#define ASSERT assert | #define ASSERT assert | ||||
#else | #else | ||||
#include <string.h> | #include <string.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
#undef ASSERT | |||||
#define ASSERT assert | #define ASSERT assert | ||||
#endif | #endif | ||||
#include <lz4.h> | #include "lz4.h" | ||||
static int real_LZ4_compress(const char *source, char *dest, int isize, | static int real_LZ4_compress(const char *source, char *dest, int isize, | ||||
int osize); | int osize); | ||||
static int LZ4_uncompress_unknownOutputSize(const char *source, char *dest, | static int LZ4_uncompress_unknownOutputSize(const char *source, char *dest, | ||||
int isize, int maxOutputSize); | int isize, int maxOutputSize); | ||||
static int LZ4_compressCtx(void *ctx, const char *source, char *dest, | static int LZ4_compressCtx(void *ctx, const char *source, char *dest, | ||||
int isize, int osize); | int isize, int osize); | ||||
static int LZ4_compress64kCtx(void *ctx, const char *source, char *dest, | static int LZ4_compress64kCtx(void *ctx, const char *source, char *dest, | ||||
▲ Show 20 Lines • Show All 978 Lines • Show Last 20 Lines |