rocksdb/port
Jim Paton 09de7a3b6a Fix Zlib_Compress and Zlib_Uncompress
Summary:
Zlib_{Compress,Uncompress} did not handle very small input buffers properly. In addition, they did not call inflate/deflate until Z_STREAM_END was returned; it was possible for them to exit when only Z_OK had returned.

This diff also fixes a bunch of lint errors.

Test Plan: Run make check

Reviewers: dhruba, sheki, haobo

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D11301
2013-06-18 16:57:42 -07:00
..
win reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
atomic_pointer.h merge 1.5 2012-08-28 11:43:33 -07:00
port_example.h merge 1.5 2012-08-28 11:43:33 -07:00
port_posix.cc [RocksDB] Introduce Fast Mutex option 2013-06-01 23:11:34 -07:00
port_posix.h Fix Zlib_Compress and Zlib_Uncompress 2013-06-18 16:57:42 -07:00
port.h merge 1.5 2012-08-28 11:43:33 -07:00
README reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
stack_trace.cc [RocksDB] Print stack trace to stderr instead of stdio. 2013-04-22 20:38:02 -07:00

This directory contains interfaces and implementations that isolate the
rest of the package from platform details.

Code in the rest of the package includes "port.h" from this directory.
"port.h" in turn includes a platform specific "port_<platform>.h" file
that provides the platform specific implementation.

See port_posix.h for an example of what must be provided in a platform
specific header file.