From: Continuous Integration Date: Fri, 4 May 2012 04:28:41 +0000 (-0700) Subject: jenkins-promote-staging-trunk-libmemcached-16 X-Git-Tag: 1.0.8~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8da5675f446c52fa0410edeb8d94ad18201b004b;hp=1c012a73c8d584d485924348388c0975cdd71831;p=awesomized%2Flibmemcached jenkins-promote-staging-trunk-libmemcached-16 --- diff --git a/.bzrignore b/.bzrignore index 10a43471..2ce25562 100644 --- a/.bzrignore +++ b/.bzrignore @@ -148,3 +148,4 @@ memcached/.git memcached/.gitignore memcached/memcached memcached/memcached.spec +tests/parser diff --git a/ChangeLog b/ChangeLog index d0c8d139..62a3351e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +1.0.8 +* Added support for setting options via ENV variable LIBMEMCACHED + 1.0.7 Sat Apr 28 00:48:29 PDT 2012 * Add API call for exist calls. * Update all license files to be BSD. diff --git a/docs/libmemcached_configuration.rst b/docs/libmemcached_configuration.rst index 8cd48ce2..2f3da9d4 100644 --- a/docs/libmemcached_configuration.rst +++ b/docs/libmemcached_configuration.rst @@ -8,7 +8,9 @@ Configuring Libmemcached SYNOPSIS -------- -#include +#include + +.. envvar:: LIBMEMCACHED .. c:function:: memcached_st *memcached(const char *string, size_t string_length) diff --git a/docs/man/hashkit_clone.3 b/docs/man/hashkit_clone.3 index addf1a64..e1d92d9a 100644 --- a/docs/man/hashkit_clone.3 +++ b/docs/man/hashkit_clone.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_CLONE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_CLONE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_clone \- libhashkit Documentation . diff --git a/docs/man/hashkit_crc32.3 b/docs/man/hashkit_crc32.3 index 5f1c5000..1eb4e9a0 100644 --- a/docs/man/hashkit_crc32.3 +++ b/docs/man/hashkit_crc32.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_CRC32" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_CRC32" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_crc32 \- libhashkit Documentation . diff --git a/docs/man/hashkit_create.3 b/docs/man/hashkit_create.3 index 2834dca8..9b26a58e 100644 --- a/docs/man/hashkit_create.3 +++ b/docs/man/hashkit_create.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_CREATE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_CREATE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_create \- libhashkit Documentation . diff --git a/docs/man/hashkit_fnv1_32.3 b/docs/man/hashkit_fnv1_32.3 index 35978ee8..5a603949 100644 --- a/docs/man/hashkit_fnv1_32.3 +++ b/docs/man/hashkit_fnv1_32.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FNV1_32" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FNV1_32" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_fnv1_32 \- libhashkit Documentation . diff --git a/docs/man/hashkit_fnv1_64.3 b/docs/man/hashkit_fnv1_64.3 index 721927e3..41c841db 100644 --- a/docs/man/hashkit_fnv1_64.3 +++ b/docs/man/hashkit_fnv1_64.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FNV1_64" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FNV1_64" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_fnv1_64 \- libhashkit Documentation . diff --git a/docs/man/hashkit_fnv1a_32.3 b/docs/man/hashkit_fnv1a_32.3 index bfa3e2b4..97fa939a 100644 --- a/docs/man/hashkit_fnv1a_32.3 +++ b/docs/man/hashkit_fnv1a_32.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FNV1A_32" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FNV1A_32" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_fnv1a_32 \- libhashkit Documentation . diff --git a/docs/man/hashkit_fnv1a_64.3 b/docs/man/hashkit_fnv1a_64.3 index 176af940..6592addd 100644 --- a/docs/man/hashkit_fnv1a_64.3 +++ b/docs/man/hashkit_fnv1a_64.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FNV1A_64" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FNV1A_64" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_fnv1a_64 \- libhashkit Documentation . diff --git a/docs/man/hashkit_free.3 b/docs/man/hashkit_free.3 index a0d6b6c5..91846553 100644 --- a/docs/man/hashkit_free.3 +++ b/docs/man/hashkit_free.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FREE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FREE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_free \- libhashkit Documentation . diff --git a/docs/man/hashkit_functions.3 b/docs/man/hashkit_functions.3 index 72bcd5d9..496614fc 100644 --- a/docs/man/hashkit_functions.3 +++ b/docs/man/hashkit_functions.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_FUNCTIONS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_FUNCTIONS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_functions \- libhashkit Documentation . diff --git a/docs/man/hashkit_hsieh.3 b/docs/man/hashkit_hsieh.3 index d9e0c6bf..7a3d7dd1 100644 --- a/docs/man/hashkit_hsieh.3 +++ b/docs/man/hashkit_hsieh.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_HSIEH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_HSIEH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_hsieh \- libhashkit Documentation . diff --git a/docs/man/hashkit_is_allocated.3 b/docs/man/hashkit_is_allocated.3 index 89c67a50..6e02720d 100644 --- a/docs/man/hashkit_is_allocated.3 +++ b/docs/man/hashkit_is_allocated.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_IS_ALLOCATED" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_IS_ALLOCATED" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_is_allocated \- libhashkit Documentation . diff --git a/docs/man/hashkit_jenkins.3 b/docs/man/hashkit_jenkins.3 index f897cfac..5d6019c1 100644 --- a/docs/man/hashkit_jenkins.3 +++ b/docs/man/hashkit_jenkins.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_JENKINS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_JENKINS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_jenkins \- libhashkit Documentation . diff --git a/docs/man/hashkit_md5.3 b/docs/man/hashkit_md5.3 index 472f55da..b8841e5e 100644 --- a/docs/man/hashkit_md5.3 +++ b/docs/man/hashkit_md5.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_MD5" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_MD5" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_md5 \- libhashkit Documentation . diff --git a/docs/man/hashkit_murmur.3 b/docs/man/hashkit_murmur.3 index e089c4cb..0bc07862 100644 --- a/docs/man/hashkit_murmur.3 +++ b/docs/man/hashkit_murmur.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_MURMUR" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_MURMUR" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_murmur \- libhashkit Documentation . diff --git a/docs/man/hashkit_value.3 b/docs/man/hashkit_value.3 index 98f4fc73..dabdd5e3 100644 --- a/docs/man/hashkit_value.3 +++ b/docs/man/hashkit_value.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_VALUE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "HASHKIT_VALUE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME hashkit_value \- libhashkit Documentation . diff --git a/docs/man/libhashkit.3 b/docs/man/libhashkit.3 index 8478d43f..78bf2bde 100644 --- a/docs/man/libhashkit.3 +++ b/docs/man/libhashkit.3 @@ -1,4 +1,4 @@ -.TH "LIBHASHKIT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBHASHKIT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libhashkit \- libhashkit Documentation . diff --git a/docs/man/libmemcached.3 b/docs/man/libmemcached.3 index e18d9def..c42517b6 100644 --- a/docs/man/libmemcached.3 +++ b/docs/man/libmemcached.3 @@ -1,4 +1,4 @@ -.TH "LIBMEMCACHED" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBMEMCACHED" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libmemcached \- Introducing the C Client Library for memcached . diff --git a/docs/man/libmemcached_check_configuration.3 b/docs/man/libmemcached_check_configuration.3 index 127be704..3cc79f5e 100644 --- a/docs/man/libmemcached_check_configuration.3 +++ b/docs/man/libmemcached_check_configuration.3 @@ -1,4 +1,4 @@ -.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBMEMCACHED_CHECK_CONFIGURATION" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libmemcached_check_configuration \- libmemcached Documentation . @@ -32,7 +32,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] . .SH SYNOPSIS .sp -#include +#include +.INDENT 0.0 +.TP +.B LIBMEMCACHED +.UNINDENT .INDENT 0.0 .TP .B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) diff --git a/docs/man/libmemcached_configuration.3 b/docs/man/libmemcached_configuration.3 index 91ed6d18..866a5c2c 100644 --- a/docs/man/libmemcached_configuration.3 +++ b/docs/man/libmemcached_configuration.3 @@ -1,4 +1,4 @@ -.TH "LIBMEMCACHED_CONFIGURATION" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBMEMCACHED_CONFIGURATION" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libmemcached_configuration \- libmemcached Documentation . @@ -32,7 +32,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] . .SH SYNOPSIS .sp -#include +#include +.INDENT 0.0 +.TP +.B LIBMEMCACHED +.UNINDENT .INDENT 0.0 .TP .B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) diff --git a/docs/man/libmemcached_examples.3 b/docs/man/libmemcached_examples.3 index b739e1b8..0e7013b1 100644 --- a/docs/man/libmemcached_examples.3 +++ b/docs/man/libmemcached_examples.3 @@ -1,4 +1,4 @@ -.TH "LIBMEMCACHED_EXAMPLES" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBMEMCACHED_EXAMPLES" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libmemcached_examples \- libmemcached Documentation . diff --git a/docs/man/libmemcachedutil.3 b/docs/man/libmemcachedutil.3 index db9dd668..a93559f5 100644 --- a/docs/man/libmemcachedutil.3 +++ b/docs/man/libmemcachedutil.3 @@ -1,4 +1,4 @@ -.TH "LIBMEMCACHEDUTIL" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "LIBMEMCACHEDUTIL" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME libmemcachedutil \- libmemcached Documentation . diff --git a/docs/man/memaslap.1 b/docs/man/memaslap.1 index 741a973b..64692a27 100644 --- a/docs/man/memaslap.1 +++ b/docs/man/memaslap.1 @@ -1,4 +1,4 @@ -.TH "MEMASLAP" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMASLAP" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memaslap \- libmemcached Documentation . diff --git a/docs/man/memcached.3 b/docs/man/memcached.3 index 389d3949..c44ca806 100644 --- a/docs/man/memcached.3 +++ b/docs/man/memcached.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached \- libmemcached Documentation . @@ -32,7 +32,11 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] . .SH SYNOPSIS .sp -#include +#include +.INDENT 0.0 +.TP +.B LIBMEMCACHED +.UNINDENT .INDENT 0.0 .TP .B memcached_st *memcached(const char\fI\ *string\fP, size_t\fI\ string_length\fP) diff --git a/docs/man/memcached_add.3 b/docs/man/memcached_add.3 index 1460d82b..b7376f3c 100644 --- a/docs/man/memcached_add.3 +++ b/docs/man/memcached_add.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_ADD" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_ADD" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_add \- Storing and Replacing Data . diff --git a/docs/man/memcached_add_by_key.3 b/docs/man/memcached_add_by_key.3 index db8ca1e0..fc2e8e95 100644 --- a/docs/man/memcached_add_by_key.3 +++ b/docs/man/memcached_add_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_ADD_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_ADD_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_add_by_key \- Storing and Replacing Data . diff --git a/docs/man/memcached_analyze.3 b/docs/man/memcached_analyze.3 index 695f88c1..2c00c30a 100644 --- a/docs/man/memcached_analyze.3 +++ b/docs/man/memcached_analyze.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_ANALYZE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_ANALYZE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_analyze \- libmemcached Documentation . diff --git a/docs/man/memcached_append.3 b/docs/man/memcached_append.3 index 3c31222e..e55a6b0c 100644 --- a/docs/man/memcached_append.3 +++ b/docs/man/memcached_append.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_APPEND" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_APPEND" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_append \- Appending to or Prepending to data on the server . diff --git a/docs/man/memcached_append_by_key.3 b/docs/man/memcached_append_by_key.3 index c7f8e9a0..f9db3490 100644 --- a/docs/man/memcached_append_by_key.3 +++ b/docs/man/memcached_append_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_APPEND_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_APPEND_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_append_by_key \- Appending to or Prepending to data on the server . diff --git a/docs/man/memcached_auto.3 b/docs/man/memcached_auto.3 index be2e0eb6..06cb342f 100644 --- a/docs/man/memcached_auto.3 +++ b/docs/man/memcached_auto.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_AUTO" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_AUTO" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_auto \- Incrementing and Decrementing Values . diff --git a/docs/man/memcached_behavior.3 b/docs/man/memcached_behavior.3 index 13a33ac2..bf9bf13d 100644 --- a/docs/man/memcached_behavior.3 +++ b/docs/man/memcached_behavior.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_BEHAVIOR" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_BEHAVIOR" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_behavior \- libmemcached Documentation . diff --git a/docs/man/memcached_behavior_get.3 b/docs/man/memcached_behavior_get.3 index 9abf3b68..0d0f3a51 100644 --- a/docs/man/memcached_behavior_get.3 +++ b/docs/man/memcached_behavior_get.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_BEHAVIOR_GET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_BEHAVIOR_GET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_behavior_get \- libmemcached Documentation . diff --git a/docs/man/memcached_behavior_set.3 b/docs/man/memcached_behavior_set.3 index 4c20758a..d8199028 100644 --- a/docs/man/memcached_behavior_set.3 +++ b/docs/man/memcached_behavior_set.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_BEHAVIOR_SET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_BEHAVIOR_SET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_behavior_set \- libmemcached Documentation . diff --git a/docs/man/memcached_callback.3 b/docs/man/memcached_callback.3 index 9ffe321e..6b46c3fc 100644 --- a/docs/man/memcached_callback.3 +++ b/docs/man/memcached_callback.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CALLBACK" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CALLBACK" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_callback \- libmemcached Documentation . diff --git a/docs/man/memcached_callback_get.3 b/docs/man/memcached_callback_get.3 index 394d074e..a1ab8020 100644 --- a/docs/man/memcached_callback_get.3 +++ b/docs/man/memcached_callback_get.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CALLBACK_GET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CALLBACK_GET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_callback_get \- libmemcached Documentation . diff --git a/docs/man/memcached_callback_set.3 b/docs/man/memcached_callback_set.3 index 02f587ed..6d88ffd7 100644 --- a/docs/man/memcached_callback_set.3 +++ b/docs/man/memcached_callback_set.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CALLBACK_SET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CALLBACK_SET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_callback_set \- libmemcached Documentation . diff --git a/docs/man/memcached_cas.3 b/docs/man/memcached_cas.3 index cbf20759..fd4cbdc0 100644 --- a/docs/man/memcached_cas.3 +++ b/docs/man/memcached_cas.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CAS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CAS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_cas \- Working with data on the server in an atomic fashion . diff --git a/docs/man/memcached_cas_by_key.3 b/docs/man/memcached_cas_by_key.3 index c6d07710..2492b741 100644 --- a/docs/man/memcached_cas_by_key.3 +++ b/docs/man/memcached_cas_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CAS_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CAS_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_cas_by_key \- Storing and Replacing Data . diff --git a/docs/man/memcached_clone.3 b/docs/man/memcached_clone.3 index b0d803a1..552ff7dc 100644 --- a/docs/man/memcached_clone.3 +++ b/docs/man/memcached_clone.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CLONE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CLONE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_clone \- libmemcached Documentation . @@ -64,8 +64,7 @@ communicate with the server. You should either pass a statically declared a NULL. If a NULL passed in then a structure is allocated for you. .sp Please note, when you write new application use -\fBmemcached()\fP over -\fI\%memcached_create()\fP. +\fBmemcached()\fP over \fI\%memcached_create()\fP. .sp \fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but it copies the defaults and list of servers from the source diff --git a/docs/man/memcached_create.3 b/docs/man/memcached_create.3 index 9bde3df5..26d7c2db 100644 --- a/docs/man/memcached_create.3 +++ b/docs/man/memcached_create.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_CREATE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_CREATE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_create \- libmemcached Documentation . @@ -64,8 +64,7 @@ communicate with the server. You should either pass a statically declared a NULL. If a NULL passed in then a structure is allocated for you. .sp Please note, when you write new application use -\fBmemcached()\fP over -\fI\%memcached_create()\fP. +\fBmemcached()\fP over \fI\%memcached_create()\fP. .sp \fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but it copies the defaults and list of servers from the source diff --git a/docs/man/memcached_decrement.3 b/docs/man/memcached_decrement.3 index 90d2169c..c9e8c658 100644 --- a/docs/man/memcached_decrement.3 +++ b/docs/man/memcached_decrement.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DECREMENT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DECREMENT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_decrement \- Incrementing and Decrementing Values . diff --git a/docs/man/memcached_decrement_with_initial.3 b/docs/man/memcached_decrement_with_initial.3 index bbc15827..ae28e6b2 100644 --- a/docs/man/memcached_decrement_with_initial.3 +++ b/docs/man/memcached_decrement_with_initial.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DECREMENT_WITH_INITIAL" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_decrement_with_initial \- Incrementing and Decrementing Values . diff --git a/docs/man/memcached_delete.3 b/docs/man/memcached_delete.3 index fdf6f159..3a6cf573 100644 --- a/docs/man/memcached_delete.3 +++ b/docs/man/memcached_delete.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DELETE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DELETE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_delete \- libmemcached Documentation . diff --git a/docs/man/memcached_delete_by_key.3 b/docs/man/memcached_delete_by_key.3 index 6f805dcd..0911921b 100644 --- a/docs/man/memcached_delete_by_key.3 +++ b/docs/man/memcached_delete_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DELETE_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DELETE_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_delete_by_key \- libmemcached Documentation . diff --git a/docs/man/memcached_destroy_sasl_auth_data.3 b/docs/man/memcached_destroy_sasl_auth_data.3 index 6eea91c9..f391fd61 100644 --- a/docs/man/memcached_destroy_sasl_auth_data.3 +++ b/docs/man/memcached_destroy_sasl_auth_data.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_destroy_sasl_auth_data \- libmemcached Documentation . diff --git a/docs/man/memcached_dump.3 b/docs/man/memcached_dump.3 index 65e9a2c8..ba8b15f3 100644 --- a/docs/man/memcached_dump.3 +++ b/docs/man/memcached_dump.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_DUMP" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_DUMP" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_dump \- libmemcached Documentation . diff --git a/docs/man/memcached_exist.3 b/docs/man/memcached_exist.3 index 16a45e73..2da32a39 100644 --- a/docs/man/memcached_exist.3 +++ b/docs/man/memcached_exist.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_EXIST" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_EXIST" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_exist \- libmemcached Documentation . diff --git a/docs/man/memcached_exist_by_key.3 b/docs/man/memcached_exist_by_key.3 index c6e06f59..7baa3712 100644 --- a/docs/man/memcached_exist_by_key.3 +++ b/docs/man/memcached_exist_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_EXIST_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_EXIST_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_exist_by_key \- libmemcached Documentation . diff --git a/docs/man/memcached_fetch.3 b/docs/man/memcached_fetch.3 index a7eac542..2aa75d1f 100644 --- a/docs/man/memcached_fetch.3 +++ b/docs/man/memcached_fetch.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FETCH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FETCH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_fetch \- Retrieving data from the server . diff --git a/docs/man/memcached_fetch_execute.3 b/docs/man/memcached_fetch_execute.3 index fa65efc9..076bb3ac 100644 --- a/docs/man/memcached_fetch_execute.3 +++ b/docs/man/memcached_fetch_execute.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FETCH_EXECUTE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FETCH_EXECUTE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_fetch_execute \- Retrieving data from the server . diff --git a/docs/man/memcached_fetch_result.3 b/docs/man/memcached_fetch_result.3 index 6a3e3a94..b081204b 100644 --- a/docs/man/memcached_fetch_result.3 +++ b/docs/man/memcached_fetch_result.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FETCH_RESULT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FETCH_RESULT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_fetch_result \- Retrieving data from the server . diff --git a/docs/man/memcached_flush.3 b/docs/man/memcached_flush.3 index c25193d0..1536387c 100644 --- a/docs/man/memcached_flush.3 +++ b/docs/man/memcached_flush.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FLUSH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FLUSH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_flush \- libmemcached Documentation . diff --git a/docs/man/memcached_flush_buffers.3 b/docs/man/memcached_flush_buffers.3 index 9d0245da..a28497ab 100644 --- a/docs/man/memcached_flush_buffers.3 +++ b/docs/man/memcached_flush_buffers.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FLUSH_BUFFERS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FLUSH_BUFFERS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_flush_buffers \- libmemcached Documentation . diff --git a/docs/man/memcached_free.3 b/docs/man/memcached_free.3 index 8e41091c..0cbd25fd 100644 --- a/docs/man/memcached_free.3 +++ b/docs/man/memcached_free.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_FREE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_FREE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_free \- libmemcached Documentation . @@ -64,8 +64,7 @@ communicate with the server. You should either pass a statically declared a NULL. If a NULL passed in then a structure is allocated for you. .sp Please note, when you write new application use -\fBmemcached()\fP over -\fI\%memcached_create()\fP. +\fBmemcached()\fP over \fI\%memcached_create()\fP. .sp \fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but it copies the defaults and list of servers from the source diff --git a/docs/man/memcached_generate_hash.3 b/docs/man/memcached_generate_hash.3 index ee214b5b..c62fe988 100644 --- a/docs/man/memcached_generate_hash.3 +++ b/docs/man/memcached_generate_hash.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GENERATE_HASH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GENERATE_HASH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_generate_hash \- Generating hash values directly . diff --git a/docs/man/memcached_generate_hash_value.3 b/docs/man/memcached_generate_hash_value.3 index 91063793..65666994 100644 --- a/docs/man/memcached_generate_hash_value.3 +++ b/docs/man/memcached_generate_hash_value.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_generate_hash_value \- Generating hash values directly . diff --git a/docs/man/memcached_get.3 b/docs/man/memcached_get.3 index 4c201f97..32cce224 100644 --- a/docs/man/memcached_get.3 +++ b/docs/man/memcached_get.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_get \- Retrieving data from the server . diff --git a/docs/man/memcached_get_by_key.3 b/docs/man/memcached_get_by_key.3 index fa82124f..29d98d2b 100644 --- a/docs/man/memcached_get_by_key.3 +++ b/docs/man/memcached_get_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GET_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GET_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_get_by_key \- Retrieving data from the server . diff --git a/docs/man/memcached_get_memory_allocators.3 b/docs/man/memcached_get_memory_allocators.3 index 1a3fd60a..465398b9 100644 --- a/docs/man/memcached_get_memory_allocators.3 +++ b/docs/man/memcached_get_memory_allocators.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GET_MEMORY_ALLOCATORS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_get_memory_allocators \- libmemcached Documentation . diff --git a/docs/man/memcached_get_sasl_callbacks.3 b/docs/man/memcached_get_sasl_callbacks.3 index 862775ee..0a447987 100644 --- a/docs/man/memcached_get_sasl_callbacks.3 +++ b/docs/man/memcached_get_sasl_callbacks.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GET_SASL_CALLBACKS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_get_sasl_callbacks \- libmemcached Documentation . diff --git a/docs/man/memcached_get_user_data.3 b/docs/man/memcached_get_user_data.3 index 9ab93ba1..018693cf 100644 --- a/docs/man/memcached_get_user_data.3 +++ b/docs/man/memcached_get_user_data.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_GET_USER_DATA" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_GET_USER_DATA" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_get_user_data \- libmemcached Documentation . diff --git a/docs/man/memcached_increment.3 b/docs/man/memcached_increment.3 index d0e8574f..ca7f67d2 100644 --- a/docs/man/memcached_increment.3 +++ b/docs/man/memcached_increment.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_INCREMENT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_INCREMENT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_increment \- Incrementing and Decrementing Values . diff --git a/docs/man/memcached_increment_with_initial.3 b/docs/man/memcached_increment_with_initial.3 index 893669ce..edcd659f 100644 --- a/docs/man/memcached_increment_with_initial.3 +++ b/docs/man/memcached_increment_with_initial.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_INCREMENT_WITH_INITIAL" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_increment_with_initial \- Incrementing and Decrementing Values . diff --git a/docs/man/memcached_last_error_message.3 b/docs/man/memcached_last_error_message.3 index 42a2588e..d21e9c10 100644 --- a/docs/man/memcached_last_error_message.3 +++ b/docs/man/memcached_last_error_message.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_LAST_ERROR_MESSAGE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_LAST_ERROR_MESSAGE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_last_error_message \- libmemcached Documentation . diff --git a/docs/man/memcached_lib_version.3 b/docs/man/memcached_lib_version.3 index 204b5046..39d03fb3 100644 --- a/docs/man/memcached_lib_version.3 +++ b/docs/man/memcached_lib_version.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_LIB_VERSION" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_LIB_VERSION" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_lib_version \- libmemcached Documentation . diff --git a/docs/man/memcached_memory_allocators.3 b/docs/man/memcached_memory_allocators.3 index 45e921d3..c7265a5f 100644 --- a/docs/man/memcached_memory_allocators.3 +++ b/docs/man/memcached_memory_allocators.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_MEMORY_ALLOCATORS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_memory_allocators \- libmemcached Documentation . diff --git a/docs/man/memcached_mget.3 b/docs/man/memcached_mget.3 index a6261050..bf43a3f7 100644 --- a/docs/man/memcached_mget.3 +++ b/docs/man/memcached_mget.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_MGET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_MGET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_mget \- Retrieving data from the server . diff --git a/docs/man/memcached_mget_by_key.3 b/docs/man/memcached_mget_by_key.3 index 3fb69f6d..d3da64b9 100644 --- a/docs/man/memcached_mget_by_key.3 +++ b/docs/man/memcached_mget_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_MGET_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_MGET_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_mget_by_key \- Retrieving data from the server . diff --git a/docs/man/memcached_mget_execute.3 b/docs/man/memcached_mget_execute.3 index 494354bf..f13c9134 100644 --- a/docs/man/memcached_mget_execute.3 +++ b/docs/man/memcached_mget_execute.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_MGET_EXECUTE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_MGET_EXECUTE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_mget_execute \- Retrieving data from the server . diff --git a/docs/man/memcached_mget_execute_by_key.3 b/docs/man/memcached_mget_execute_by_key.3 index 7cf5473e..efe3cdbf 100644 --- a/docs/man/memcached_mget_execute_by_key.3 +++ b/docs/man/memcached_mget_execute_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_MGET_EXECUTE_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_mget_execute_by_key \- Retrieving data from the server . diff --git a/docs/man/memcached_pool.3 b/docs/man/memcached_pool.3 index 61415372..cea7e403 100644 --- a/docs/man/memcached_pool.3 +++ b/docs/man/memcached_pool.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_behavior_get.3 b/docs/man/memcached_pool_behavior_get.3 index ca1b90ac..b07fa1a6 100644 --- a/docs/man/memcached_pool_behavior_get.3 +++ b/docs/man/memcached_pool_behavior_get.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_BEHAVIOR_GET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_behavior_get \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_behavior_set.3 b/docs/man/memcached_pool_behavior_set.3 index 665f71c6..a2a31d01 100644 --- a/docs/man/memcached_pool_behavior_set.3 +++ b/docs/man/memcached_pool_behavior_set.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_BEHAVIOR_SET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_behavior_set \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_create.3 b/docs/man/memcached_pool_create.3 index 7bc45f05..030c5a93 100644 --- a/docs/man/memcached_pool_create.3 +++ b/docs/man/memcached_pool_create.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_CREATE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_CREATE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_create \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_destroy.3 b/docs/man/memcached_pool_destroy.3 index a5c62364..09c554ae 100644 --- a/docs/man/memcached_pool_destroy.3 +++ b/docs/man/memcached_pool_destroy.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_DESTROY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_DESTROY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_destroy \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_fetch.3 b/docs/man/memcached_pool_fetch.3 index ff409c84..b8812ae5 100644 --- a/docs/man/memcached_pool_fetch.3 +++ b/docs/man/memcached_pool_fetch.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_FETCH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_FETCH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_fetch \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_pop.3 b/docs/man/memcached_pool_pop.3 index a2bbb22d..60d4c32f 100644 --- a/docs/man/memcached_pool_pop.3 +++ b/docs/man/memcached_pool_pop.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_POP" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_POP" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_pop \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_push.3 b/docs/man/memcached_pool_push.3 index 5aa8ff0f..1630be8c 100644 --- a/docs/man/memcached_pool_push.3 +++ b/docs/man/memcached_pool_push.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_PUSH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_PUSH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_push \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_release.3 b/docs/man/memcached_pool_release.3 index a9759278..aff2cc76 100644 --- a/docs/man/memcached_pool_release.3 +++ b/docs/man/memcached_pool_release.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_RELEASE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_RELEASE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_release \- libmemcached Documentation . diff --git a/docs/man/memcached_pool_st.3 b/docs/man/memcached_pool_st.3 index b4ddff1a..11a5b338 100644 --- a/docs/man/memcached_pool_st.3 +++ b/docs/man/memcached_pool_st.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_POOL_ST" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_POOL_ST" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_pool_st \- libmemcached Documentation . diff --git a/docs/man/memcached_prepend.3 b/docs/man/memcached_prepend.3 index 65fe1509..e96c5401 100644 --- a/docs/man/memcached_prepend.3 +++ b/docs/man/memcached_prepend.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_PREPEND" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_PREPEND" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_prepend \- Appending to or Prepending to data on the server . diff --git a/docs/man/memcached_prepend_by_key.3 b/docs/man/memcached_prepend_by_key.3 index a2eb0c9f..092eefde 100644 --- a/docs/man/memcached_prepend_by_key.3 +++ b/docs/man/memcached_prepend_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_PREPEND_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_PREPEND_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_prepend_by_key \- Appending to or Prepending to data on the server . diff --git a/docs/man/memcached_quit.3 b/docs/man/memcached_quit.3 index 8656e3cc..23e71e2b 100644 --- a/docs/man/memcached_quit.3 +++ b/docs/man/memcached_quit.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_QUIT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_QUIT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_quit \- libmemcached Documentation . diff --git a/docs/man/memcached_replace.3 b/docs/man/memcached_replace.3 index 761facc5..684e78e6 100644 --- a/docs/man/memcached_replace.3 +++ b/docs/man/memcached_replace.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_REPLACE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_REPLACE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_replace \- Storing and Replacing Data . diff --git a/docs/man/memcached_replace_by_key.3 b/docs/man/memcached_replace_by_key.3 index 627554d1..73ddc4ea 100644 --- a/docs/man/memcached_replace_by_key.3 +++ b/docs/man/memcached_replace_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_REPLACE_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_REPLACE_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_replace_by_key \- Storing and Replacing Data . diff --git a/docs/man/memcached_result_cas.3 b/docs/man/memcached_result_cas.3 index 5fa23f02..da33a6c8 100644 --- a/docs/man/memcached_result_cas.3 +++ b/docs/man/memcached_result_cas.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_CAS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_CAS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_cas \- Working with result sets . diff --git a/docs/man/memcached_result_create.3 b/docs/man/memcached_result_create.3 index ab798b5d..411f8a1f 100644 --- a/docs/man/memcached_result_create.3 +++ b/docs/man/memcached_result_create.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_CREATE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_CREATE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_create \- Working with result sets . diff --git a/docs/man/memcached_result_flags.3 b/docs/man/memcached_result_flags.3 index 6abaf877..a4d1a93a 100644 --- a/docs/man/memcached_result_flags.3 +++ b/docs/man/memcached_result_flags.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_FLAGS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_FLAGS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_flags \- Working with result sets . diff --git a/docs/man/memcached_result_free.3 b/docs/man/memcached_result_free.3 index 71cff378..a6e9af78 100644 --- a/docs/man/memcached_result_free.3 +++ b/docs/man/memcached_result_free.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_FREE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_FREE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_free \- Working with result sets . diff --git a/docs/man/memcached_result_key_length.3 b/docs/man/memcached_result_key_length.3 index ce228254..68d774a2 100644 --- a/docs/man/memcached_result_key_length.3 +++ b/docs/man/memcached_result_key_length.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_KEY_LENGTH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_key_length \- Working with result sets . diff --git a/docs/man/memcached_result_key_value.3 b/docs/man/memcached_result_key_value.3 index 086d818b..cc6faf13 100644 --- a/docs/man/memcached_result_key_value.3 +++ b/docs/man/memcached_result_key_value.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_KEY_VALUE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_key_value \- Working with result sets . diff --git a/docs/man/memcached_result_length.3 b/docs/man/memcached_result_length.3 index 3b608709..1ca809a5 100644 --- a/docs/man/memcached_result_length.3 +++ b/docs/man/memcached_result_length.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_LENGTH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_LENGTH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_length \- Working with result sets . diff --git a/docs/man/memcached_result_st.3 b/docs/man/memcached_result_st.3 index 89f34d06..420f2156 100644 --- a/docs/man/memcached_result_st.3 +++ b/docs/man/memcached_result_st.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_ST" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_ST" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_st \- Working with result sets . diff --git a/docs/man/memcached_result_value.3 b/docs/man/memcached_result_value.3 index 95218eef..2637a6a8 100644 --- a/docs/man/memcached_result_value.3 +++ b/docs/man/memcached_result_value.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RESULT_VALUE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RESULT_VALUE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_result_value \- Working with result sets . diff --git a/docs/man/memcached_return_t.3 b/docs/man/memcached_return_t.3 index 0cfd7d9e..39f8eb31 100644 --- a/docs/man/memcached_return_t.3 +++ b/docs/man/memcached_return_t.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_RETURN_T" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_RETURN_T" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_return_t \- Return type values . diff --git a/docs/man/memcached_sasl.3 b/docs/man/memcached_sasl.3 index 359b2af7..a4729ca9 100644 --- a/docs/man/memcached_sasl.3 +++ b/docs/man/memcached_sasl.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SASL" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SASL" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_sasl \- libmemcached Documentation . diff --git a/docs/man/memcached_sasl_set_auth_data.3 b/docs/man/memcached_sasl_set_auth_data.3 index 9b3111dd..51e8235b 100644 --- a/docs/man/memcached_sasl_set_auth_data.3 +++ b/docs/man/memcached_sasl_set_auth_data.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SASL_SET_AUTH_DATA" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_sasl_set_auth_data \- libmemcached Documentation . diff --git a/docs/man/memcached_server_add.3 b/docs/man/memcached_server_add.3 index 06291d9f..4b0be904 100644 --- a/docs/man/memcached_server_add.3 +++ b/docs/man/memcached_server_add.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_ADD" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_ADD" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_add \- libmemcached Documentation . diff --git a/docs/man/memcached_server_add_unix_socket.3 b/docs/man/memcached_server_add_unix_socket.3 index 8e8627eb..774989c5 100644 --- a/docs/man/memcached_server_add_unix_socket.3 +++ b/docs/man/memcached_server_add_unix_socket.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_ADD_UNIX_SOCKET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_add_unix_socket \- libmemcached Documentation . diff --git a/docs/man/memcached_server_count.3 b/docs/man/memcached_server_count.3 index 1223ab11..a276e24f 100644 --- a/docs/man/memcached_server_count.3 +++ b/docs/man/memcached_server_count.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_COUNT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_COUNT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_count \- libmemcached Documentation . diff --git a/docs/man/memcached_server_cursor.3 b/docs/man/memcached_server_cursor.3 index 9ce49cb2..df6ed956 100644 --- a/docs/man/memcached_server_cursor.3 +++ b/docs/man/memcached_server_cursor.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_CURSOR" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_CURSOR" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_cursor \- libmemcached Documentation . diff --git a/docs/man/memcached_server_list.3 b/docs/man/memcached_server_list.3 index 5c09ddcc..38221e43 100644 --- a/docs/man/memcached_server_list.3 +++ b/docs/man/memcached_server_list.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_LIST" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_LIST" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_list \- libmemcached Documentation . diff --git a/docs/man/memcached_server_list_append.3 b/docs/man/memcached_server_list_append.3 index b27bad9b..70b47174 100644 --- a/docs/man/memcached_server_list_append.3 +++ b/docs/man/memcached_server_list_append.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_LIST_APPEND" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_list_append \- libmemcached Documentation . diff --git a/docs/man/memcached_server_list_count.3 b/docs/man/memcached_server_list_count.3 index fba97399..816a639f 100644 --- a/docs/man/memcached_server_list_count.3 +++ b/docs/man/memcached_server_list_count.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_LIST_COUNT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_list_count \- libmemcached Documentation . diff --git a/docs/man/memcached_server_list_free.3 b/docs/man/memcached_server_list_free.3 index 3245fd33..c8811c2e 100644 --- a/docs/man/memcached_server_list_free.3 +++ b/docs/man/memcached_server_list_free.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_LIST_FREE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_LIST_FREE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_list_free \- libmemcached Documentation . diff --git a/docs/man/memcached_server_push.3 b/docs/man/memcached_server_push.3 index c797abc3..4e0c9588 100644 --- a/docs/man/memcached_server_push.3 +++ b/docs/man/memcached_server_push.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_PUSH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_PUSH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_push \- libmemcached Documentation . diff --git a/docs/man/memcached_server_st.3 b/docs/man/memcached_server_st.3 index cdae4edb..4173b317 100644 --- a/docs/man/memcached_server_st.3 +++ b/docs/man/memcached_server_st.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVER_ST" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVER_ST" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_server_st \- libmemcached Documentation . diff --git a/docs/man/memcached_servers.3 b/docs/man/memcached_servers.3 index c44bb770..eb0ce7c9 100644 --- a/docs/man/memcached_servers.3 +++ b/docs/man/memcached_servers.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVERS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVERS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_servers \- libmemcached Documentation . diff --git a/docs/man/memcached_servers_parse.3 b/docs/man/memcached_servers_parse.3 index 3474b7ec..20646d75 100644 --- a/docs/man/memcached_servers_parse.3 +++ b/docs/man/memcached_servers_parse.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVERS_PARSE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVERS_PARSE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_servers_parse \- libmemcached Documentation . diff --git a/docs/man/memcached_servers_reset.3 b/docs/man/memcached_servers_reset.3 index 5339c280..0dded8d3 100644 --- a/docs/man/memcached_servers_reset.3 +++ b/docs/man/memcached_servers_reset.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SERVERS_RESET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SERVERS_RESET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_servers_reset \- libmemcached Documentation . @@ -64,8 +64,7 @@ communicate with the server. You should either pass a statically declared a NULL. If a NULL passed in then a structure is allocated for you. .sp Please note, when you write new application use -\fBmemcached()\fP over -\fI\%memcached_create()\fP. +\fBmemcached()\fP over \fI\%memcached_create()\fP. .sp \fI\%memcached_clone()\fP is similar to \fI\%memcached_create()\fP but it copies the defaults and list of servers from the source diff --git a/docs/man/memcached_set.3 b/docs/man/memcached_set.3 index b85eb3cd..1843f863 100644 --- a/docs/man/memcached_set.3 +++ b/docs/man/memcached_set.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set \- Storing and Replacing Data . diff --git a/docs/man/memcached_set_by_key.3 b/docs/man/memcached_set_by_key.3 index 5c393817..7f56e97f 100644 --- a/docs/man/memcached_set_by_key.3 +++ b/docs/man/memcached_set_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set_by_key \- Storing and Replacing Data . diff --git a/docs/man/memcached_set_memory_allocators.3 b/docs/man/memcached_set_memory_allocators.3 index d36fb9ba..e9f5348f 100644 --- a/docs/man/memcached_set_memory_allocators.3 +++ b/docs/man/memcached_set_memory_allocators.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET_MEMORY_ALLOCATORS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set_memory_allocators \- libmemcached Documentation . diff --git a/docs/man/memcached_set_memory_allocators_context.3 b/docs/man/memcached_set_memory_allocators_context.3 index 0f9818c4..c80903e0 100644 --- a/docs/man/memcached_set_memory_allocators_context.3 +++ b/docs/man/memcached_set_memory_allocators_context.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET_MEMORY_ALLOCATORS_CONTEXT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set_memory_allocators_context \- libmemcached Documentation . diff --git a/docs/man/memcached_set_sasl_callbacks.3 b/docs/man/memcached_set_sasl_callbacks.3 index abe09acb..93ec2b0f 100644 --- a/docs/man/memcached_set_sasl_callbacks.3 +++ b/docs/man/memcached_set_sasl_callbacks.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET_SASL_CALLBACKS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set_sasl_callbacks \- libmemcached Documentation . diff --git a/docs/man/memcached_set_user_data.3 b/docs/man/memcached_set_user_data.3 index 66aaed83..c1c4105e 100644 --- a/docs/man/memcached_set_user_data.3 +++ b/docs/man/memcached_set_user_data.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_SET_USER_DATA" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_SET_USER_DATA" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_set_user_data \- libmemcached Documentation . diff --git a/docs/man/memcached_stat.3 b/docs/man/memcached_stat.3 index 1decb490..ebd11ef3 100644 --- a/docs/man/memcached_stat.3 +++ b/docs/man/memcached_stat.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STAT" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STAT" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stat \- libmemcached Documentation . diff --git a/docs/man/memcached_stat_execute.3 b/docs/man/memcached_stat_execute.3 index 607d6f16..9ae7efc8 100644 --- a/docs/man/memcached_stat_execute.3 +++ b/docs/man/memcached_stat_execute.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STAT_EXECUTE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STAT_EXECUTE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stat_execute \- libmemcached Documentation . diff --git a/docs/man/memcached_stat_get_keys.3 b/docs/man/memcached_stat_get_keys.3 index 9dbbeb7e..b757aa08 100644 --- a/docs/man/memcached_stat_get_keys.3 +++ b/docs/man/memcached_stat_get_keys.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STAT_GET_KEYS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STAT_GET_KEYS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stat_get_keys \- libmemcached Documentation . diff --git a/docs/man/memcached_stat_get_value.3 b/docs/man/memcached_stat_get_value.3 index 0db8ffdd..43f1e34b 100644 --- a/docs/man/memcached_stat_get_value.3 +++ b/docs/man/memcached_stat_get_value.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STAT_GET_VALUE" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STAT_GET_VALUE" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stat_get_value \- libmemcached Documentation . diff --git a/docs/man/memcached_stat_servername.3 b/docs/man/memcached_stat_servername.3 index afb5a566..398e1fde 100644 --- a/docs/man/memcached_stat_servername.3 +++ b/docs/man/memcached_stat_servername.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STAT_SERVERNAME" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STAT_SERVERNAME" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stat_servername \- libmemcached Documentation . diff --git a/docs/man/memcached_stats.3 b/docs/man/memcached_stats.3 index 2983aa3c..b76e9e28 100644 --- a/docs/man/memcached_stats.3 +++ b/docs/man/memcached_stats.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STATS" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STATS" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_stats \- libmemcached Documentation . diff --git a/docs/man/memcached_strerror.3 b/docs/man/memcached_strerror.3 index e0e97d3c..3de5bd76 100644 --- a/docs/man/memcached_strerror.3 +++ b/docs/man/memcached_strerror.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_STRERROR" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_STRERROR" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_strerror \- libmemcached Documentation . diff --git a/docs/man/memcached_touch.3 b/docs/man/memcached_touch.3 index 2e07928d..e14b6a05 100644 --- a/docs/man/memcached_touch.3 +++ b/docs/man/memcached_touch.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_TOUCH" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_TOUCH" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_touch \- libmemcached Documentation . diff --git a/docs/man/memcached_touch_by_key.3 b/docs/man/memcached_touch_by_key.3 index 51bd1e2f..6156d672 100644 --- a/docs/man/memcached_touch_by_key.3 +++ b/docs/man/memcached_touch_by_key.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_TOUCH_BY_KEY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_TOUCH_BY_KEY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_touch_by_key \- libmemcached Documentation . diff --git a/docs/man/memcached_user_data.3 b/docs/man/memcached_user_data.3 index 182fbb7a..4f0ce55c 100644 --- a/docs/man/memcached_user_data.3 +++ b/docs/man/memcached_user_data.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_USER_DATA" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_USER_DATA" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_user_data \- libmemcached Documentation . diff --git a/docs/man/memcached_verbosity.3 b/docs/man/memcached_verbosity.3 index 357d2885..b1d79063 100644 --- a/docs/man/memcached_verbosity.3 +++ b/docs/man/memcached_verbosity.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_VERBOSITY" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_VERBOSITY" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_verbosity \- libmemcached Documentation . diff --git a/docs/man/memcached_version.3 b/docs/man/memcached_version.3 index 31e23129..a7e71c81 100644 --- a/docs/man/memcached_version.3 +++ b/docs/man/memcached_version.3 @@ -1,4 +1,4 @@ -.TH "MEMCACHED_VERSION" "3" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCACHED_VERSION" "3" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcached_version \- libmemcached Documentation . diff --git a/docs/man/memcapable.1 b/docs/man/memcapable.1 index 2ff5bc2b..e84c002a 100644 --- a/docs/man/memcapable.1 +++ b/docs/man/memcapable.1 @@ -1,4 +1,4 @@ -.TH "MEMCAPABLE" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCAPABLE" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcapable \- libmemcached Documentation . diff --git a/docs/man/memcat.1 b/docs/man/memcat.1 index f63f5e62..fc11b912 100644 --- a/docs/man/memcat.1 +++ b/docs/man/memcat.1 @@ -1,4 +1,4 @@ -.TH "MEMCAT" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCAT" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcat \- libmemcached Documentation . diff --git a/docs/man/memcp.1 b/docs/man/memcp.1 index f2c45f55..ebce8b19 100644 --- a/docs/man/memcp.1 +++ b/docs/man/memcp.1 @@ -1,4 +1,4 @@ -.TH "MEMCP" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMCP" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memcp \- libmemcached Documentation . diff --git a/docs/man/memdump.1 b/docs/man/memdump.1 index c350b71b..cf83ee62 100644 --- a/docs/man/memdump.1 +++ b/docs/man/memdump.1 @@ -1,4 +1,4 @@ -.TH "MEMDUMP" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMDUMP" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memdump \- libmemcached Documentation . diff --git a/docs/man/memerror.1 b/docs/man/memerror.1 index 69542c69..10492eee 100644 --- a/docs/man/memerror.1 +++ b/docs/man/memerror.1 @@ -1,4 +1,4 @@ -.TH "MEMERROR" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMERROR" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memerror \- libmemcached Documentation . diff --git a/docs/man/memflush.1 b/docs/man/memflush.1 index c45c6346..d25050f9 100644 --- a/docs/man/memflush.1 +++ b/docs/man/memflush.1 @@ -1,4 +1,4 @@ -.TH "MEMFLUSH" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMFLUSH" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memflush \- libmemcached Documentation . diff --git a/docs/man/memrm.1 b/docs/man/memrm.1 index 737e9a1c..b9dd5f80 100644 --- a/docs/man/memrm.1 +++ b/docs/man/memrm.1 @@ -1,4 +1,4 @@ -.TH "MEMRM" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMRM" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memrm \- libmemcached Documentation . diff --git a/docs/man/memslap.1 b/docs/man/memslap.1 index 8441275e..11305e70 100644 --- a/docs/man/memslap.1 +++ b/docs/man/memslap.1 @@ -1,4 +1,4 @@ -.TH "MEMSLAP" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMSLAP" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memslap \- libmemcached Documentation . diff --git a/docs/man/memstat.1 b/docs/man/memstat.1 index e5b48e9d..e9cd7f8f 100644 --- a/docs/man/memstat.1 +++ b/docs/man/memstat.1 @@ -1,4 +1,4 @@ -.TH "MEMSTAT" "1" "April 28, 2012" "1.0.7" "libmemcached" +.TH "MEMSTAT" "1" "May 03, 2012" "1.0.7" "libmemcached" .SH NAME memstat \- libmemcached Documentation . diff --git a/docs/memcached_create.rst b/docs/memcached_create.rst index 5eaaee03..ae851ba9 100644 --- a/docs/memcached_create.rst +++ b/docs/memcached_create.rst @@ -32,8 +32,7 @@ communicate with the server. You should either pass a statically declared a NULL. If a NULL passed in then a structure is allocated for you. Please note, when you write new application use -:c:func:`memcached` over -:c:func:`memcached_create`. +:c:func:`memcached` over :c:func:`memcached_create`. :c:func:`memcached_clone` is similar to :c:func:`memcached_create` but it copies the defaults and list of servers from the source diff --git a/libmemcached-1.0/memcached.h b/libmemcached-1.0/memcached.h index da8ac7e3..fa966152 100644 --- a/libmemcached-1.0/memcached.h +++ b/libmemcached-1.0/memcached.h @@ -37,23 +37,22 @@ #pragma once -#include +/* This seems to be required for older compilers @note http://stackoverflow.com/questions/8132399/how-to-printf-uint64-t */ +#define __STDC_FORMAT_MACROS #ifdef __cplusplus -#include -#include +# include +# include +# include #else -#include -#include +# include +# include +# include +# include #endif #include - -#if !defined(__cplusplus) -# include -#endif - #include #include #include diff --git a/libmemcached/memcached.cc b/libmemcached/memcached.cc index 2eb91281..2bcf6fa8 100644 --- a/libmemcached/memcached.cc +++ b/libmemcached/memcached.cc @@ -208,30 +208,49 @@ memcached_st *memcached_create(memcached_st *ptr) memcached_st *memcached(const char *string, size_t length) { - memcached_st *self= memcached_create(NULL); - if (self == NULL) + if (length == 0 and string) + { + return NULL; + } + + if (length and string == NULL) { return NULL; } if (length == 0) { - return self; + if (bool(getenv("LIBMEMCACHED"))) + { + string= getenv("LIBMEMCACHED"); + length= string ? strlen(string) : 0; + } + } + + memcached_st *memc= memcached_create(NULL); + if (memc == NULL) + { + return NULL; + } + + if (length == 0 or string == NULL) + { + return memc; } - memcached_return_t rc= memcached_parse_configuration(self, string, length); - if (memcached_success(rc) and memcached_parse_filename(self)) + memcached_return_t rc= memcached_parse_configuration(memc, string, length); + if (memcached_success(rc) and memcached_parse_filename(memc)) { - rc= memcached_parse_configure_file(*self, memcached_parse_filename(self), memcached_parse_filename_length(self)); + rc= memcached_parse_configure_file(*memc, memcached_parse_filename(memc), memcached_parse_filename_length(memc)); } if (memcached_failed(rc)) { - memcached_free(self); + memcached_free(memc); return NULL; } - return self; + return memc; } memcached_return_t memcached_reset(memcached_st *ptr) diff --git a/libtest/collection.cc b/libtest/collection.cc new file mode 100644 index 00000000..c6fec1eb --- /dev/null +++ b/libtest/collection.cc @@ -0,0 +1,179 @@ +/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: + * + * Data Differential YATL (i.e. libtest) library + * + * Copyright (C) 2012 Data Differential, http://datadifferential.com/ + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * The names of its contributors may not be used to endorse or + * promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#include + +#include + +static test_return_t runner_code(Framework* frame, + test_st* run, + libtest::Timer& _timer) +{ // Runner Code + + assert(frame->runner()); + assert(run->test_fn); + + test_return_t return_code; + try + { + _timer.reset(); + return_code= frame->runner()->run(run->test_fn, frame->creators_ptr()); + } + // Special case where check for the testing of the exception + // system. + catch (libtest::fatal &e) + { + if (libtest::fatal::is_disabled()) + { + libtest::fatal::increment_disabled_counter(); + return_code= TEST_SUCCESS; + } + else + { + throw; + } + } + + _timer.sample(); + + return return_code; +} + +namespace libtest { + +Collection::Collection(Framework* frame_arg, + collection_st* arg) : + _name(arg->name), + _pre(arg->pre), + _post(arg->post), + _tests(arg->tests), + _frame(frame_arg), + _success(0), + _skipped(0), + _failed(0), + _total(0) +{ + fatal_assert(arg); +} + +test_return_t Collection::exec() +{ + Out << "Collection: " << _name; + + if (test_success(_frame->runner()->pre(_pre, _frame->creators_ptr()))) + { + for (test_st *run= _tests; run->name; run++) + { + long int load_time= 0; + + if (_frame->match(run->name)) + { + continue; + } + _total++; + + test_return_t return_code; + try + { + if (run->requires_flush) + { + if (test_failed(_frame->runner()->flush(_frame->creators_ptr()))) + { + Error << "frame->runner()->flush(creators_ptr)"; + _skipped++; + continue; + } + } + + return_code= runner_code(_frame, run, _timer); + } + catch (libtest::fatal &e) + { + Error << "Fatal exception was thrown: " << e.what(); + return_code= TEST_FAILURE; + _failed++; + throw; + } + + switch (return_code) + { + case TEST_SUCCESS: + Out << "\tTesting " + << run->name + << "\t\t\t\t\t" + << _timer + << " [ " << test_strerror(return_code) << " ]"; + _success++; + break; + + case TEST_FAILURE: + _failed++; + Out << "\tTesting " << run->name << "\t\t\t\t\t" << "[ " << test_strerror(return_code) << " ]"; + break; + + case TEST_SKIPPED: + _skipped++; + Out << "\tTesting " << run->name << "\t\t\t\t\t" << "[ " << test_strerror(return_code) << " ]"; + break; + + default: + fatal_message("invalid return code"); + } +#if 0 + @TODO add code here to allow for a collection to define a method to reset to allow tests to continue. +#endif + } + + (void) _frame->runner()->post(_post, _frame->creators_ptr()); + } + + if (_failed == 0 and _skipped == 0 and _success) + { + return TEST_SUCCESS; + } + + if (_failed) + { + return TEST_FAILURE; + } + + fatal_assert(_skipped or _success == 0); + + return TEST_SKIPPED; +} + +} // namespace libtest + diff --git a/libtest/collection.h b/libtest/collection.h index 044acf03..91c76a6d 100644 --- a/libtest/collection.h +++ b/libtest/collection.h @@ -36,6 +36,10 @@ #pragma once +#include + +class Framework; + /** A structure which describes a collection of test cases. */ @@ -46,4 +50,50 @@ struct collection_st { struct test_st *tests; }; +namespace libtest { + +class Collection { +public: + Collection(Framework*, collection_st*); + + test_return_t exec(); + + const char* name() + { + return _name; + } + + uint32_t success() + { + return _success; + } + + uint32_t skipped() + { + return _skipped; + } + + uint32_t failed() + { + return _failed; + } + + uint32_t total() + { + return _total; + } + +private: + const char *_name; + test_callback_fn *_pre; + test_callback_fn *_post; + struct test_st *_tests; + Framework* _frame; + uint32_t _success; + uint32_t _skipped; + uint32_t _failed; + uint32_t _total; + libtest::Timer _timer; +}; +} // namespace libtest diff --git a/libtest/common.h b/libtest/common.h index a9221916..777d21c3 100644 --- a/libtest/common.h +++ b/libtest/common.h @@ -76,6 +76,5 @@ #include #include -#include #include diff --git a/libtest/core.cc b/libtest/core.cc index 1663bf47..fba81c03 100644 --- a/libtest/core.cc +++ b/libtest/core.cc @@ -45,7 +45,7 @@ void create_core(void) #ifdef TARGET_OS_OSX return; #endif - if (getenv("LIBMEMCACHED_NO_COREDUMP") == NULL) + if (getenv("YATL_COREDUMP")) { pid_t pid= fork(); diff --git a/libtest/fatal.cc b/libtest/fatal.cc index 75e276d5..9ab3292f 100644 --- a/libtest/fatal.cc +++ b/libtest/fatal.cc @@ -40,16 +40,21 @@ namespace libtest { -fatal::fatal(const char *file, int line, const char *func, const char *format, ...) : - std::runtime_error(func) +fatal::fatal(const char *file_arg, int line_arg, const char *func_arg, const char *format, ...) : + std::runtime_error(func_arg), + _file(file_arg), + _line(line_arg), + _func(func_arg) { va_list args; va_start(args, format); char last_error[BUFSIZ]; - (void)vsnprintf(last_error, sizeof(last_error), format, args); + int last_error_length= vsnprintf(last_error, sizeof(last_error), format, args); va_end(args); - snprintf(_error_message, sizeof(_error_message), "%s:%d FATAL:%s (%s)", file, int(line), last_error, func); + strncpy(_mesg, last_error, sizeof(_mesg)); + + snprintf(_error_message, sizeof(_error_message), "%s:%d FATAL:%s (%s)", _file, int(_line), last_error, _func); } static bool _disabled= false; diff --git a/libtest/fatal.hpp b/libtest/fatal.hpp index bc288afe..54f672b6 100644 --- a/libtest/fatal.hpp +++ b/libtest/fatal.hpp @@ -56,6 +56,11 @@ public: return _error_message; } + const char* mesg() const throw() + { + return _error_message; + } + // The following are just for unittesting the exception class static bool is_disabled(); static void disable(); @@ -63,8 +68,27 @@ public: static uint32_t disabled_counter(); static void increment_disabled_counter(); + int line() + { + return _line; + } + + const char* file() + { + return _file; + } + + const char* func() + { + return _func; + } + private: char _error_message[BUFSIZ]; + char _mesg[BUFSIZ]; + int _line; + const char* _file; + const char* _func; }; class disconnected : std::runtime_error diff --git a/libtest/framework.cc b/libtest/framework.cc index 3bab5f0a..eb0f4120 100644 --- a/libtest/framework.cc +++ b/libtest/framework.cc @@ -35,19 +35,39 @@ */ #include + #include +#include +#include + +#include #include using namespace libtest; -Framework::Framework() : +Framework::Framework(libtest::SignalThread& signal, + const std::string& only_run_arg, + const std::string& wildcard_arg) : collections(NULL), + _total(0), + _success(0), + _skipped(0), + _failed(0), _create(NULL), _destroy(NULL), _runner(NULL), _socket(false), - _creators_ptr(NULL) + _creators_ptr(NULL), + _signal(signal), + _only_run(only_run_arg), + _wildcard(wildcard_arg) { + get_world(this); + + for (collection_st *next= collections; next and next->name; next++) + { + _collection.push_back(new Collection(this, next)); + } } Framework::~Framework() @@ -60,6 +80,122 @@ Framework::~Framework() _servers.shutdown(); delete _runner; + + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end(); + iter++) + { + delete *iter; + } + _collection.clear(); +} + +bool Framework::match(const char* arg) +{ + if (_wildcard.empty() == false and fnmatch(_wildcard.c_str(), arg, 0)) + { + return true; + } + + return false; +} + +void Framework::exec() +{ + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end() and (_signal.is_shutdown() == false); + iter++) + { + if (_only_run.empty() == false and + fnmatch(_only_run.c_str(), (*iter)->name(), 0)) + { + continue; + } + + _total++; + + try { + switch ((*iter)->exec()) + { + case TEST_FAILURE: + _failed++; + break; + + case TEST_SKIPPED: + _skipped++; + break; + + // exec() can return SUCCESS, but that doesn't mean that some tests did + // not fail or get skipped. + case TEST_SUCCESS: + _success++; + break; + } + } + catch (libtest::fatal& e) + { + stream::cerr(e.file(), e.line(), e.func()) << e.mesg(); + } + catch (libtest::disconnected& e) + { + Error << "Unhandled disconnection occurred:" << e.what(); + throw; + } + + Outn(); + } +} + +uint32_t Framework::sum_total() +{ + uint32_t count= 0; + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end(); + iter++) + { + count+= (*iter)->total(); + } + + return count; +} + +uint32_t Framework::sum_success() +{ + uint32_t count= 0; + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end(); + iter++) + { + count+= (*iter)->success(); + } + + return count; +} + +uint32_t Framework::sum_skipped() +{ + uint32_t count= 0; + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end(); + iter++) + { + count+= (*iter)->skipped(); + } + + return count; +} + +uint32_t Framework::sum_failed() +{ + uint32_t count= 0; + for (std::vector::iterator iter= _collection.begin(); + iter != _collection.end(); + iter++) + { + count+= (*iter)->failed(); + } + + return count; } libtest::Runner *Framework::runner() @@ -73,13 +209,13 @@ libtest::Runner *Framework::runner() return _runner; } -void* Framework::create(test_return_t& arg) +test_return_t Framework::create() { - arg= TEST_SUCCESS; + test_return_t rc= TEST_SUCCESS; if (_create) { - return _creators_ptr= _create(_servers, arg); + _creators_ptr= _create(_servers, rc); } - return NULL; + return rc; } diff --git a/libtest/framework.h b/libtest/framework.h index 00959c18..45cd6533 100644 --- a/libtest/framework.h +++ b/libtest/framework.h @@ -36,12 +36,16 @@ #pragma once +#include + /** Framework is the structure which is passed to the test implementation to be filled. This must be implemented in order for the test framework to load the tests. We call get_world() in order to fill this structure. */ +#include + class Framework { public: collection_st *collections; @@ -51,7 +55,7 @@ public: test_callback_destroy_fn *_destroy; public: - void* create(test_return_t& arg); + test_return_t create(); /** If an error occurs during the test, this is called. @@ -93,17 +97,74 @@ public: libtest::Runner *runner(); + void exec(); - Framework(); + libtest::Collection& collection(); + + Framework(libtest::SignalThread&, const std::string&); virtual ~Framework(); - Framework(const Framework&); + Framework(libtest::SignalThread&, + const std::string&, + const std::string&); + + bool match(const char* arg); + + void *creators_ptr() + { + return _creators_ptr; + } + + libtest::SignalThread& signal() + { + return _signal; + } + + uint32_t sum_total(); + uint32_t sum_success(); + uint32_t sum_skipped(); + uint32_t sum_failed(); + + size_t size() + { + return _collection.size(); + } + + uint32_t total() const + { + return _total; + } + + uint32_t success() const + { + return _success; + } + + uint32_t skipped() const + { + return _skipped; + } + + uint32_t failed() const + { + return _failed; + } private: Framework& operator=(const Framework&); + + uint32_t _total; + uint32_t _success; + uint32_t _skipped; + uint32_t _failed; + libtest::server_startup_st _servers; bool _socket; void *_creators_ptr; unsigned long int _servers_to_run; + std::vector _collection; + libtest::SignalThread& _signal; + std::string _only_run; + std::string _wildcard; }; diff --git a/libtest/include.am b/libtest/include.am index 7b47fb11..7e9be22d 100644 --- a/libtest/include.am +++ b/libtest/include.am @@ -42,6 +42,7 @@ CLEANFILES+= \ distclean-libtest-check: -rm -rf tmp_chroot +noinst_HEADERS+= libtest/timer.hpp noinst_HEADERS+= \ libtest/binaries.h \ libtest/cpu.hpp \ @@ -73,7 +74,6 @@ noinst_HEADERS+= \ libtest/server_container.h \ libtest/signal.h \ libtest/socket.hpp \ - libtest/stats.h \ libtest/stream.h \ libtest/strerror.h \ libtest/string.hpp \ @@ -94,6 +94,7 @@ libtest_libtest_la_SOURCES= libtest_libtest_la_SOURCES+= libtest/binaries.cc libtest_libtest_la_SOURCES+= libtest/cmdline.cc libtest_libtest_la_SOURCES+= libtest/comparison.cc +libtest_libtest_la_SOURCES+= libtest/collection.cc libtest_libtest_la_SOURCES+= libtest/core.cc libtest_libtest_la_SOURCES+= libtest/cpu.cc libtest_libtest_la_SOURCES+= libtest/dream.cc @@ -112,7 +113,9 @@ libtest_libtest_la_SOURCES+= libtest/server.cc libtest_libtest_la_SOURCES+= libtest/server_container.cc libtest_libtest_la_SOURCES+= libtest/signal.cc libtest_libtest_la_SOURCES+= libtest/socket.cc +libtest_libtest_la_SOURCES+= libtest/stream.cc libtest_libtest_la_SOURCES+= libtest/strerror.cc +libtest_libtest_la_SOURCES+= libtest/timer.cc libtest_libtest_la_SOURCES+= libtest/tmpfile.cc libtest_libtest_la_SOURCES+= libtest/vchar.cc diff --git a/libtest/main.cc b/libtest/main.cc index 0926dc64..3ae8ff98 100644 --- a/libtest/main.cc +++ b/libtest/main.cc @@ -58,71 +58,23 @@ using namespace libtest; -static void stats_print(Stats *stats) +static void stats_print(Framework *frame) { - if (stats->collection_failed == 0 and stats->collection_success == 0) + if (frame->failed() == 0 and frame->success() == 0) { return; } - Out << "\tTotal Collections\t\t\t\t" << stats->collection_total; - Out << "\tFailed Collections\t\t\t\t" << stats->collection_failed; - Out << "\tSkipped Collections\t\t\t\t" << stats->collection_skipped; - Out << "\tSucceeded Collections\t\t\t\t" << stats->collection_success; Outn(); - Out << "Total\t\t\t\t" << stats->total; - Out << "\tFailed\t\t\t" << stats->failed; - Out << "\tSkipped\t\t\t" << stats->skipped; - Out << "\tSucceeded\t\t" << stats->success; -} - -static long int timedif(struct timeval a, struct timeval b) -{ - long us, s; - - us = (long)(a.tv_usec - b.tv_usec); - us /= 1000; - s = (long)(a.tv_sec - b.tv_sec); - s *= 1000; - return s + us; -} - -static test_return_t runner_code(Framework* frame, - test_st* run, - void* creators_ptr, - long int& load_time) -{ // Runner Code - - struct timeval start_time, end_time; - - gettimeofday(&start_time, NULL); - assert(frame->runner()); - assert(run->test_fn); - - test_return_t return_code; - try - { - return_code= frame->runner()->run(run->test_fn, creators_ptr); - } - // Special case where check for the testing of the exception - // system. - catch (libtest::fatal &e) - { - if (fatal::is_disabled()) - { - fatal::increment_disabled_counter(); - return_code= TEST_SUCCESS; - } - else - { - throw; - } - } - - gettimeofday(&end_time, NULL); - load_time= timedif(end_time, start_time); - - return return_code; + Out << "Collections\t\t\t\t\t" << frame->total(); + Out << "\tFailed\t\t\t\t\t" << frame->failed(); + Out << "\tSkipped\t\t\t\t\t" << frame->skipped(); + Out << "\tSucceeded\t\t\t\t" << frame->success(); + Outn(); + Out << "Tests\t\t\t\t\t" << frame->sum_total(); + Out << "\tFailed\t\t\t\t" << frame->sum_failed(); + Out << "\tSkipped\t\t\t\t" << frame->sum_skipped(); + Out << "\tSucceeded\t\t\t" << frame->sum_success(); } #include @@ -134,6 +86,7 @@ int main(int argc, char *argv[]) unsigned long int opt_repeat= 1; // Run all tests once bool opt_quiet= false; std::string collection_to_run; + std::string wildcard; // Options parsing { @@ -142,6 +95,7 @@ int main(int argc, char *argv[]) OPT_LIBYATL_MATCH_COLLECTION, OPT_LIBYATL_MASSIVE, OPT_LIBYATL_QUIET, + OPT_LIBYATL_MATCH_WILDCARD, OPT_LIBYATL_REPEAT }; @@ -151,6 +105,7 @@ int main(int argc, char *argv[]) { "quiet", no_argument, NULL, OPT_LIBYATL_QUIET }, { "repeat", no_argument, NULL, OPT_LIBYATL_REPEAT }, { "collection", required_argument, NULL, OPT_LIBYATL_MATCH_COLLECTION }, + { "wildcard", required_argument, NULL, OPT_LIBYATL_MATCH_WILDCARD }, { "massive", no_argument, NULL, OPT_LIBYATL_MASSIVE }, { 0, 0, 0, 0 } }; @@ -181,6 +136,10 @@ int main(int argc, char *argv[]) collection_to_run= optarg; break; + case OPT_LIBYATL_MATCH_WILDCARD: + wildcard= optarg; + break; + case OPT_LIBYATL_MASSIVE: opt_massive= true; break; @@ -247,6 +206,24 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } + if (getenv("YATL_COLLECTION_TO_RUN")) + { + if (strlen(getenv("YATL_COLLECTION_TO_RUN"))) + { + collection_to_run= getenv("YATL_COLLECTION_TO_RUN"); + } + } + + if (collection_to_run.compare("none") == 0) + { + return EXIT_SUCCESS; + } + + if (collection_to_run.empty() == false) + { + Out << "Only testing " << collection_to_run; + } + int exit_code; try @@ -254,8 +231,6 @@ int main(int argc, char *argv[]) do { exit_code= EXIT_SUCCESS; - std::auto_ptr frame(new Framework); - fatal_assert(sigignore(SIGPIPE) == 0); libtest::SignalThread signal; @@ -265,182 +240,26 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } - Stats stats; - - get_world(frame.get()); - - test_return_t error; - void *creators_ptr= frame->create(error); - - switch (error) - { - case TEST_SUCCESS: - break; - - case TEST_SKIPPED: - Out << "SKIP " << argv[0]; - return EXIT_SUCCESS; - - case TEST_FAILURE: - return EXIT_FAILURE; - } - - if (getenv("YATL_COLLECTION_TO_RUN")) - { - if (strlen(getenv("YATL_COLLECTION_TO_RUN"))) - { - collection_to_run= getenv("YATL_COLLECTION_TO_RUN"); - } - } - - if (collection_to_run.compare("none") == 0) - { - return EXIT_SUCCESS; - } - - if (collection_to_run.empty() == false) - { - Out << "Only testing " << collection_to_run; - } - - char *wildcard= NULL; - if (argc == 3) - { - wildcard= argv[2]; - } + std::auto_ptr frame(new Framework(signal, collection_to_run, wildcard)); - for (collection_st *next= frame->collections; next and next->name and (not signal.is_shutdown()); next++) + // Run create(), bail on error. { - if (collection_to_run.empty() == false and fnmatch(collection_to_run.c_str(), next->name, 0)) - { - continue; - } - - stats.collection_total++; - - bool failed= false; - bool skipped= false; - test_return_t collection_rc; - if (test_success(collection_rc= frame->runner()->pre(next->pre, creators_ptr))) - { - Out << "Collection: " << next->name; - - for (test_st *run= next->tests; run->name; run++) - { - long int load_time= 0; - - if (wildcard && fnmatch(wildcard, run->name, 0)) - { - continue; - } - - test_return_t return_code; - try - { - if (run->requires_flush) - { - if (test_failed(frame->runner()->flush(creators_ptr))) - { - Error << "frame->runner()->flush(creators_ptr)"; - continue; - } - } - - return_code= runner_code(frame.get(), run, creators_ptr, load_time); - - if (return_code == TEST_SKIPPED) - { } - else if (return_code == TEST_FAILURE) - { -#if 0 - Error << " frame->runner()->run(failure)"; - signal.set_shutdown(SHUTDOWN_GRACEFUL); -#endif - } - - } - catch (libtest::fatal &e) - { - Error << "Fatal exception was thrown: " << e.what(); - return_code= TEST_FAILURE; - throw; - } - catch (std::exception &e) - { - Error << "Exception was thrown: " << e.what(); - return_code= TEST_FAILURE; - throw; - } - catch (...) - { - Error << "Unknown exception occurred"; - return_code= TEST_FAILURE; - throw; - } - - stats.total++; - - switch (return_code) - { - case TEST_SUCCESS: - Out << "\tTesting " << run->name << "\t\t\t\t\t" << load_time / 1000 << "." << load_time % 1000 << "[ " << test_strerror(return_code) << " ]"; - stats.success++; - break; - - case TEST_FAILURE: - stats.failed++; - failed= true; - Out << "\tTesting " << run->name << "\t\t\t\t\t" << "[ " << test_strerror(return_code) << " ]"; - break; - - case TEST_SKIPPED: - stats.skipped++; - skipped= true; - Out << "\tTesting " << run->name << "\t\t\t\t\t" << "[ " << test_strerror(return_code) << " ]"; - break; - - default: - fatal_message("invalid return code"); - } -#if 0 - @TODO add code here to allow for a collection to define a method to reset to allow tests to continue. -#endif - } - - (void) frame->runner()->post(next->post, creators_ptr); - } - else if (collection_rc == TEST_FAILURE) - { - Out << next->name << " [ failed ]"; - failed= true; -#if 0 - signal.set_shutdown(SHUTDOWN_GRACEFUL); -#endif - } - else if (collection_rc == TEST_SKIPPED) + switch (frame->create()) { - Out << next->name << " [ skipping ]"; - skipped= true; - } - - if (failed == false and skipped == false) - { - stats.collection_success++; - } + case TEST_SUCCESS: + break; - if (failed) - { - stats.collection_failed++; - } + case TEST_SKIPPED: + Out << "SKIP " << argv[0]; + return EXIT_SUCCESS; - if (skipped) - { - stats.collection_skipped++; + case TEST_FAILURE: + return EXIT_FAILURE; } - - Outn(); } + frame->exec(); + if (signal.is_shutdown() == false) { signal.set_shutdown(SHUTDOWN_GRACEFUL); @@ -452,21 +271,21 @@ int main(int argc, char *argv[]) Out << "Tests were aborted."; exit_code= EXIT_FAILURE; } - else if (stats.collection_failed) + else if (frame->failed()) { Out << "Some test failed."; exit_code= EXIT_FAILURE; } - else if (stats.collection_skipped and stats.collection_failed and stats.collection_success) + else if (frame->skipped() and frame->failed() and frame->success()) { Out << "Some tests were skipped."; } - else if (stats.collection_success and (stats.collection_failed == 0)) + else if (frame->success() and (frame->failed() == 0)) { Out << "All tests completed successfully."; } - stats_print(&stats); + stats_print(frame.get()); Outn(); // Generate a blank to break up the messages if make check/test has been run } while (exit_code == EXIT_SUCCESS and --opt_repeat); @@ -474,18 +293,22 @@ int main(int argc, char *argv[]) catch (libtest::fatal& e) { std::cerr << e.what() << std::endl; + exit_code= EXIT_FAILURE; } catch (libtest::disconnected& e) { std::cerr << "Unhandled disconnection occurred:" << e.what() << std::endl; + exit_code= EXIT_FAILURE; } catch (std::exception& e) { std::cerr << e.what() << std::endl; + exit_code= EXIT_FAILURE; } catch (...) { std::cerr << "Unknown exception halted execution." << std::endl; + exit_code= EXIT_FAILURE; } return exit_code; diff --git a/libtest/port.cc b/libtest/port.cc index 3ef6bd70..9f9a5bfe 100644 --- a/libtest/port.cc +++ b/libtest/port.cc @@ -52,7 +52,6 @@ #include -#include #include #ifndef __INTEL_COMPILER diff --git a/libtest/server.cc b/libtest/server.cc index 726a01ba..31c58094 100644 --- a/libtest/server.cc +++ b/libtest/server.cc @@ -164,7 +164,9 @@ bool Server::start() // If we find that we already have a pid then kill it. if (has_pid() == true) { +#if 0 fatal_message("has_pid() failed, programer error"); +#endif } // This needs more work. @@ -262,28 +264,29 @@ bool Server::start() if (kill_file(pid_file()) == false) { throw libtest::fatal(LIBYATL_DEFAULT_PARAM, - "Failed to kill off server, waited: %u after startup occurred, when pinging failed: %s stderr:%s", + "Failed to kill off server, waited: %u after startup occurred, when pinging failed: %.*s stderr:%.*s", this_wait, - pid_file().c_str(), - _app.stderr_c_str()); + int(_running.size()), _running.c_str(), + int(_app.stderr_result_length()), _app.stderr_c_str()); } throw libtest::fatal(LIBYATL_DEFAULT_PARAM, - "Failed native ping(), pid: %d is alive: %s waited: %u server started, having pid_file. exec: %s stderr:%s", + "Failed native ping(), pid: %d is alive: %s waited: %u server started, having pid_file. exec: %.*s stderr:%.*s", int(_app.pid()), _app.check() ? "true" : "false", - this_wait, _running.c_str(), - _app.stderr_c_str()); + this_wait, + int(_running.size()), _running.c_str(), + int(_app.stderr_result_length()), _app.stderr_c_str()); } else { throw libtest::fatal(LIBYATL_DEFAULT_PARAM, - "Failed native ping(), pid: %d is alive: %s waited: %u server started. exec: %s stderr:%s", + "Failed native ping(), pid: %d is alive: %s waited: %u server started. exec: %.*s stderr:%.*s", int(_app.pid()), _app.check() ? "true" : "false", this_wait, - _running.c_str(), - _app.stderr_c_str()); + int(_running.size()), _running.c_str(), + int(_app.stderr_result_length()), _app.stderr_c_str()); } _running.clear(); return false; diff --git a/libtest/server_container.cc b/libtest/server_container.cc index 3315b3bb..f658e6ff 100644 --- a/libtest/server_container.cc +++ b/libtest/server_container.cc @@ -91,13 +91,14 @@ Server* server_startup_st::pop_server() return tmp; } -bool server_startup_st::shutdown(uint32_t number_of_host) +// host_to_shutdown => host number to shutdown in array +bool server_startup_st::shutdown(uint32_t host_to_shutdown) { - if (servers.size() > number_of_host) + if (servers.size() > host_to_shutdown) { - Server* tmp= servers[number_of_host]; + Server* tmp= servers[host_to_shutdown]; - if (tmp and tmp->has_pid() and tmp->kill() == false) + if (tmp and tmp->kill() == false) { } else { @@ -108,7 +109,7 @@ bool server_startup_st::shutdown(uint32_t number_of_host) return false; } -void server_startup_st::shutdown_and_remove() +void server_startup_st::clear() { for (std::vector::iterator iter= servers.begin(); iter != servers.end(); iter++) { @@ -166,7 +167,7 @@ server_startup_st::server_startup_st() : server_startup_st::~server_startup_st() { - shutdown_and_remove(); + clear(); } bool server_startup_st::validate() diff --git a/libtest/server_container.h b/libtest/server_container.h index 0a78c4f5..b358e28d 100644 --- a/libtest/server_container.h +++ b/libtest/server_container.h @@ -112,7 +112,9 @@ public: } - void shutdown_and_remove(); + // Just remove everything after shutdown + void clear(); + bool shutdown(); bool shutdown(uint32_t number_of_host); diff --git a/libtest/stats.h b/libtest/stats.h deleted file mode 100644 index 592e9c87..00000000 --- a/libtest/stats.h +++ /dev/null @@ -1,61 +0,0 @@ -/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: - * - * Data Differential YATL (i.e. libtest) library - * - * Copyright (C) 2012 Data Differential, http://datadifferential.com/ - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * * The names of its contributors may not be used to endorse or - * promote products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ - -#pragma once - -struct Stats { - int32_t collection_success; - int32_t collection_skipped; - int32_t collection_failed; - int32_t collection_total; - - uint32_t success; - uint32_t skipped; - uint32_t failed; - uint32_t total; - - Stats() : - collection_success(0), - collection_skipped(0), - collection_failed(0), - collection_total(0), - success(0), - skipped(0), - failed(0), - total(0) - { } -}; - diff --git a/libtest/stream.cc b/libtest/stream.cc new file mode 100644 index 00000000..a9d769f8 --- /dev/null +++ b/libtest/stream.cc @@ -0,0 +1,64 @@ +/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: + * + * Data Differential YATL (i.e. libtest) library + * + * Copyright (C) 2012 Data Differential, http://datadifferential.com/ + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * The names of its contributors may not be used to endorse or + * promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#include +#include + +namespace libtest { +namespace stream { + +namespace detail { + +} // namespace detail + +make_cerr::make_cerr(const char* filename, int line_number, const char* func) : + log(std::cerr, filename, line_number, func) +{ } + +cerr::cerr(const char* filename, int line_number, const char* func) : + log(std::cout, filename, line_number, func) + { } + +clog::clog(const char* filename, int line_number, const char* func) : + log(std::clog, filename, line_number, func) + { } + +cout::cout(const char* filename, int line_number, const char* func) : + log(std::cout, filename, line_number, func) + { } + +} // namespace stream +} // namespace libtest diff --git a/libtest/stream.h b/libtest/stream.h index 1555d98d..9917b94d 100644 --- a/libtest/stream.h +++ b/libtest/stream.h @@ -48,58 +48,66 @@ namespace stream { namespace detail { template - class cerr { + class channel { private: public: typedef std::basic_ostringstream stream_buffer; public: - void operator()(const stream_buffer &s) + void operator()(const stream_buffer& s, std::ostream& _out, + const char* filename, int line_number, const char* func) { - std::cerr << s.str() << std::endl; - } - }; - -template - class make_cerr { - private: - - public: - typedef std::basic_ostringstream stream_buffer; - - public: - void operator()(const stream_buffer &s) - { - std::cerr << std::endl << s.str() << std::endl; - } - }; - -template - class cout { - private: - - public: - typedef std::basic_ostringstream stream_buffer; - - public: - void operator()(const stream_buffer &s) - { - std::cout << s.str() << std::endl; + if (filename) + { + _out + << filename + << ":" + << line_number + << ": in " + << func << "() " + << s.str() + << std::endl; + } + else + { + _out + << s.str() + << std::endl; + } } }; template - class clog { + class channelln { private: public: typedef std::basic_ostringstream stream_buffer; public: - void operator()(const stream_buffer &s) + void operator()(const stream_buffer& s, std::ostream& _out, + const char* filename, int line_number, const char* func) { - std::cerr<< s.str() << std::endl; + if (filename) + { + _out + << std::endl + << filename + << ":" + << line_number + << ": in " + << func << "() " + << s.str() + << std::endl; + } + else + { + _out + << std::endl + << s.str() + << std::endl; + } } }; @@ -107,37 +115,30 @@ template