Add -DLIBCOUCHBASE_INTERNAL for lcbutils

Change-Id: I71a7a0955ff9c55e0621ccbfbfae0345a228a8fc
Reviewed-on: http://review.couchbase.org/31679
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-305: Create logging hooks

Change-Id: Ida74498b60fecd0b1f19a53b0d7fee9fade28e85
Reviewed-on: http://review.couchbase.org/31409
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Corrected off-by-one error on timer comparison.

Change-Id: I0498980c2c6ec8fd0df651fbf8224c678cbb3b36
Reviewed-on: http://review.couchbase.org/31793
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Select: Don't call select() if there are only timers

We can sleep manually and wait for them to expire. Otherwise we get a
SOCKET_ERROR on win32 which quits the event loop

Change-Id: I71fa090662cf7e22bfd1f26d77fa0272e6a3cf1f
Reviewed-on: http://review.couchbase.org/31741
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
IOCP: Handle async 0-interval timers better

Change-Id: I82d49a06afd19dece29f78129805f07f2c6e8796
Reviewed-on: http://review.couchbase.org/31797
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fix mingw build

Change-Id: Ic3c345fb8836ed094b004cf68308abb16038e0ac
Reviewed-on: http://review.couchbase.org/31680
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
vbucket: Allocate for extra NUL

Change-Id: I06f686fa09aa6313f0cea6c72ec7673ac89d57c5
Reviewed-on: http://review.couchbase.org/31427
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
add string_transfer function

Change-Id: Ie3cf6352a97b3e113c2fb1ffa8af30cce8e62d86
Reviewed-on: http://review.couchbase.org/31700
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Allow UV option on unix

Change-Id: I92fd6ae00187f44e4e6ab73e1a051fe35d5c06f7
Reviewed-on: http://review.couchbase.org/31706
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Makefile.am: Sync with new files

Change-Id: I76eed2948b209a5db56f121f0090eca675e32230
Reviewed-on: http://review.couchbase.org/31804
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
CMake: Use gtest 1.7.0

Change-Id: I60484da7e131ef41a569a68e72a5a2417adf328a
Reviewed-on: http://review.couchbase.org/31735
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fix build failure on mingw for hostlist

- Include <limits.h> for hostlist's LONG_MIN/LONG_MAX

Change-Id: I77186603c74844f707ef5b5af32d81c9bad02b55
Reviewed-on: http://review.couchbase.org/31806
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>