memcached 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. data/CHANGELOG +2 -0
  2. data/Manifest +206 -12
  3. data/Rakefile +32 -1
  4. data/ext/extconf.rb +10 -35
  5. data/ext/libmemcached-0.32/AUTHORS +7 -0
  6. data/ext/libmemcached-0.32/COPYING +32 -0
  7. data/ext/libmemcached-0.32/ChangeLog +303 -0
  8. data/ext/libmemcached-0.32/INSTALL +302 -0
  9. data/ext/libmemcached-0.32/Makefile.am +36 -0
  10. data/ext/libmemcached-0.32/Makefile.in +828 -0
  11. data/ext/libmemcached-0.32/NEWS +1 -0
  12. data/ext/libmemcached-0.32/README +33 -0
  13. data/ext/libmemcached-0.32/THANKS +14 -0
  14. data/ext/libmemcached-0.32/TODO +11 -0
  15. data/ext/libmemcached-0.32/aclocal.m4 +1852 -0
  16. data/ext/libmemcached-0.32/clients/Makefile.am +73 -0
  17. data/ext/libmemcached-0.32/clients/Makefile.in +770 -0
  18. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  19. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  20. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  21. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  22. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  23. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  24. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  25. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  26. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  27. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  28. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  29. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  30. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  31. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  32. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  33. data/ext/libmemcached-0.32/config.h.in +252 -0
  34. data/ext/libmemcached-0.32/config/compile +143 -0
  35. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  36. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  37. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  38. data/ext/libmemcached-0.32/config/depcomp +630 -0
  39. data/ext/libmemcached-0.32/config/install-sh +520 -0
  40. data/ext/libmemcached-0.32/config/ltmain.sh +8406 -0
  41. data/ext/libmemcached-0.32/config/missing +376 -0
  42. data/ext/libmemcached-0.32/configure +23048 -0
  43. data/ext/libmemcached-0.32/configure.ac +122 -0
  44. data/ext/libmemcached-0.32/docs/Makefile.am +415 -0
  45. data/ext/libmemcached-0.32/docs/Makefile.in +918 -0
  46. data/ext/libmemcached-0.32/docs/libmemcached.pod +123 -0
  47. data/ext/libmemcached-0.32/docs/libmemcached_examples.pod +115 -0
  48. data/ext/libmemcached-0.32/docs/libmemcachedutil.pod +40 -0
  49. data/ext/libmemcached-0.32/docs/memcached_analyze.pod +52 -0
  50. data/ext/libmemcached-0.32/docs/memcached_auto.pod +97 -0
  51. data/ext/libmemcached-0.32/docs/memcached_behavior.pod +224 -0
  52. data/ext/libmemcached-0.32/docs/memcached_callback.pod +123 -0
  53. data/ext/libmemcached-0.32/docs/memcached_create.pod +61 -0
  54. data/ext/libmemcached-0.32/docs/memcached_delete.pod +54 -0
  55. data/ext/libmemcached-0.32/docs/memcached_dump.pod +53 -0
  56. data/ext/libmemcached-0.32/docs/memcached_flush.pod +46 -0
  57. data/ext/libmemcached-0.32/docs/memcached_flush_buffers.pod +42 -0
  58. data/ext/libmemcached-0.32/docs/memcached_generate_hash_value.pod +57 -0
  59. data/ext/libmemcached-0.32/docs/memcached_get.pod +161 -0
  60. data/ext/libmemcached-0.32/docs/memcached_memory_allocators.pod +73 -0
  61. data/ext/libmemcached-0.32/docs/memcached_pool.pod +77 -0
  62. data/ext/libmemcached-0.32/docs/memcached_quit.pod +47 -0
  63. data/ext/libmemcached-0.32/docs/memcached_sasl.pod +63 -0
  64. data/ext/libmemcached-0.32/docs/memcached_server_st.pod +75 -0
  65. data/ext/libmemcached-0.32/docs/memcached_servers.pod +102 -0
  66. data/ext/libmemcached-0.32/docs/memcached_set.pod +187 -0
  67. data/ext/libmemcached-0.32/docs/memcached_stats.pod +82 -0
  68. data/ext/libmemcached-0.32/docs/memcached_strerror.pod +46 -0
  69. data/ext/libmemcached-0.32/docs/memcached_user_data.pod +49 -0
  70. data/ext/libmemcached-0.32/docs/memcached_verbosity.pod +41 -0
  71. data/ext/libmemcached-0.32/docs/memcached_version.pod +56 -0
  72. data/ext/libmemcached-0.32/docs/memcat.pod +37 -0
  73. data/ext/libmemcached-0.32/docs/memcp.pod +40 -0
  74. data/ext/libmemcached-0.32/docs/memdump.pod +31 -0
  75. data/ext/libmemcached-0.32/docs/memerror.pod +30 -0
  76. data/ext/libmemcached-0.32/docs/memflush.pod +35 -0
  77. data/ext/libmemcached-0.32/docs/memrm.pod +34 -0
  78. data/ext/libmemcached-0.32/docs/memslap.pod +33 -0
  79. data/ext/libmemcached-0.32/docs/memstat.pod +35 -0
  80. data/ext/libmemcached-0.32/libmemcached/Makefile.am +107 -0
  81. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1050 -0
  82. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  83. data/ext/libmemcached-0.32/libmemcached/common.h +183 -0
  84. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  85. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  86. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  87. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  88. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +28 -0
  89. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +78 -0
  90. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached.c +152 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached.h +302 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +366 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +285 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +361 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +145 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +34 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +22 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +495 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +547 -0
  116. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +59 -0
  117. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  118. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  119. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  120. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  121. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  122. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +528 -0
  123. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  124. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  125. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  126. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  127. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  128. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  129. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +454 -0
  130. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  131. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  132. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  133. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  134. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  135. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  136. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  137. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  138. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  139. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  140. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  141. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  142. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  143. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +602 -0
  144. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  145. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  146. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  147. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  148. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  149. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  150. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  151. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  152. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  153. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  154. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  155. data/ext/libmemcached-0.32/m4/libtool.m4 +7360 -0
  156. data/ext/libmemcached-0.32/m4/ltoptions.m4 +368 -0
  157. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  158. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  159. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +92 -0
  160. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  161. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  162. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  163. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  164. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  165. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  166. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  167. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  168. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  169. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  170. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  171. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  172. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  173. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  174. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  175. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  176. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  177. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  178. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  179. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  180. data/ext/libmemcached-0.32/support/Makefile.in +485 -0
  181. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  182. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  183. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  184. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  185. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  186. data/ext/libmemcached-0.32/tests/Makefile.am +105 -0
  187. data/ext/libmemcached-0.32/tests/Makefile.in +748 -0
  188. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  189. data/ext/libmemcached-0.32/tests/function.c +4781 -0
  190. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  191. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  192. data/ext/libmemcached-0.32/tests/output.res +7 -0
  193. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  194. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  195. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  196. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  197. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  198. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  199. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  200. data/ext/libmemcached-0.32/tests/server.c +118 -0
  201. data/ext/libmemcached-0.32/tests/server.h +25 -0
  202. data/ext/libmemcached-0.32/tests/start.c +16 -0
  203. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  204. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  205. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  206. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  207. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  208. data/ext/libmemcached-0.32/tests/test.c +137 -0
  209. data/ext/libmemcached-0.32/tests/test.h +46 -0
  210. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  211. data/memcached.gemspec +4 -4
  212. data/test/unit/memcached_test.rb +30 -0
  213. metadata +213 -16
  214. data/ext/libmemcached-0.32.tar.gz +0 -0
  215. data/ext/libmemcached-1.patch +0 -270
  216. data/ext/libmemcached-10.patch +0 -12
  217. data/ext/libmemcached-2.patch +0 -116
  218. data/ext/libmemcached-3.patch +0 -8
  219. data/ext/libmemcached-4.patch +0 -40
  220. data/ext/libmemcached-5.patch +0 -832
  221. data/ext/libmemcached-6.patch +0 -20
  222. data/ext/libmemcached-7.patch +0 -2989
  223. data/ext/libmemcached-8.patch +0 -137
  224. data/ext/libmemcached-9.patch +0 -13
  225. data/ext/sasl.patch +0 -29283
@@ -0,0 +1,36 @@
1
+ #include "common.h"
2
+
3
+ memcached_return memcached_verbosity(memcached_st *ptr, unsigned int verbosity)
4
+ {
5
+ unsigned int x;
6
+ size_t send_length;
7
+ memcached_return rc;
8
+ char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
9
+
10
+ send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
11
+ "verbosity %u\r\n", verbosity);
12
+ unlikely (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
13
+ return MEMCACHED_WRITE_FAILURE;
14
+
15
+ rc= MEMCACHED_SUCCESS;
16
+ for (x= 0; x < ptr->number_of_hosts; x++)
17
+ {
18
+ memcached_return rrc;
19
+
20
+ rrc= memcached_do(&ptr->hosts[x], buffer, send_length, 1);
21
+ if (rrc != MEMCACHED_SUCCESS)
22
+ {
23
+ rc= MEMCACHED_SOME_ERRORS;
24
+ continue;
25
+ }
26
+
27
+ unlikely (ptr->flags & MEM_USE_UDP)
28
+ continue;
29
+
30
+ rrc= memcached_response(&ptr->hosts[x], buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
31
+ if (rrc != MEMCACHED_SUCCESS)
32
+ rc= MEMCACHED_SOME_ERRORS;
33
+ }
34
+
35
+ return rc;
36
+ }
@@ -0,0 +1,112 @@
1
+ #include "common.h"
2
+
3
+ const char * memcached_lib_version(void)
4
+ {
5
+ return LIBMEMCACHED_VERSION_STRING;
6
+ }
7
+
8
+ static inline memcached_return memcached_version_binary(memcached_st *ptr);
9
+ static inline memcached_return memcached_version_textual(memcached_st *ptr);
10
+
11
+ memcached_return memcached_version(memcached_st *ptr)
12
+ {
13
+ if (ptr->flags & MEM_USE_UDP)
14
+ return MEMCACHED_NOT_SUPPORTED;
15
+
16
+ if (ptr->flags & MEM_BINARY_PROTOCOL)
17
+ return memcached_version_binary(ptr);
18
+ else
19
+ return memcached_version_textual(ptr);
20
+ }
21
+
22
+ static inline memcached_return memcached_version_textual(memcached_st *ptr)
23
+ {
24
+ unsigned int x;
25
+ size_t send_length;
26
+ memcached_return rc;
27
+ char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
28
+ char *response_ptr;
29
+ const char *command= "version\r\n";
30
+
31
+ send_length= strlen(command);
32
+
33
+ rc= MEMCACHED_SUCCESS;
34
+ for (x= 0; x < ptr->number_of_hosts; x++)
35
+ {
36
+ memcached_return rrc;
37
+
38
+ rrc= memcached_do(&ptr->hosts[x], command, send_length, 1);
39
+ if (rrc != MEMCACHED_SUCCESS)
40
+ {
41
+ rc= MEMCACHED_SOME_ERRORS;
42
+ continue;
43
+ }
44
+
45
+ rrc= memcached_response(&ptr->hosts[x], buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
46
+ if (rrc != MEMCACHED_SUCCESS)
47
+ {
48
+ rc= MEMCACHED_SOME_ERRORS;
49
+ continue;
50
+ }
51
+
52
+ /* Find the space, and then move one past it to copy version */
53
+ response_ptr= index(buffer, ' ');
54
+ response_ptr++;
55
+
56
+ ptr->hosts[x].major_version= (uint8_t)strtol(response_ptr, (char **)NULL, 10);
57
+ response_ptr= index(response_ptr, '.');
58
+ response_ptr++;
59
+ ptr->hosts[x].minor_version= (uint8_t)strtol(response_ptr, (char **)NULL, 10);
60
+ response_ptr= index(response_ptr, '.');
61
+ response_ptr++;
62
+ ptr->hosts[x].micro_version= (uint8_t)strtol(response_ptr, (char **)NULL, 10);
63
+ }
64
+
65
+ return rc;
66
+ }
67
+
68
+ static inline memcached_return memcached_version_binary(memcached_st *ptr)
69
+ {
70
+ memcached_return rc;
71
+ unsigned int x;
72
+ protocol_binary_request_version request= { .bytes= {0}};
73
+ request.message.header.request.magic= PROTOCOL_BINARY_REQ;
74
+ request.message.header.request.opcode= PROTOCOL_BINARY_CMD_VERSION;
75
+ request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
76
+
77
+ rc= MEMCACHED_SUCCESS;
78
+ for (x= 0; x < ptr->number_of_hosts; x++)
79
+ {
80
+ memcached_return rrc;
81
+
82
+ rrc= memcached_do(&ptr->hosts[x], request.bytes, sizeof(request.bytes), 1);
83
+ if (rrc != MEMCACHED_SUCCESS)
84
+ {
85
+ memcached_io_reset(&ptr->hosts[x]);
86
+ rc= MEMCACHED_SOME_ERRORS;
87
+ continue;
88
+ }
89
+ }
90
+
91
+ for (x= 0; x < ptr->number_of_hosts; x++)
92
+ if (memcached_server_response_count(&ptr->hosts[x]) > 0)
93
+ {
94
+ memcached_return rrc;
95
+ char buffer[32];
96
+ char *p;
97
+
98
+ rrc= memcached_response(&ptr->hosts[x], buffer, sizeof(buffer), NULL);
99
+ if (rrc != MEMCACHED_SUCCESS)
100
+ {
101
+ memcached_io_reset(&ptr->hosts[x]);
102
+ rc= MEMCACHED_SOME_ERRORS;
103
+ continue;
104
+ }
105
+
106
+ ptr->hosts[x].major_version= (uint8_t)strtol(buffer, &p, 10);
107
+ ptr->hosts[x].minor_version= (uint8_t)strtol(p + 1, &p, 10);
108
+ ptr->hosts[x].micro_version= (uint8_t)strtol(p + 1, NULL, 10);
109
+ }
110
+
111
+ return rc;
112
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Summary: Localized copy of WATCHPOINT debug symbols
3
+ *
4
+ * Copy: See Copyright for the status of this software.
5
+ *
6
+ * Author: Brian Aker
7
+ */
8
+
9
+ #ifndef LIBMEMCACHED_MEMCACHED_WATCHPOINT_H
10
+ #define LIBMEMCACHED_MEMCACHED_WATCHPOINT_H
11
+
12
+ /* Some personal debugging functions */
13
+ #if defined(DEBUG)
14
+
15
+ #include <assert.h>
16
+
17
+ #define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout);
18
+ #define WATCHPOINT_ERROR(A) fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout);
19
+ #define WATCHPOINT_IFERROR(A) if(A != MEMCACHED_SUCCESS)fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout);
20
+ #define WATCHPOINT_STRING(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__,A);fflush(stdout);
21
+ #define WATCHPOINT_STRING_LENGTH(A,B) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %.*s\n", __FILE__, __LINE__,__func__,(int)B,A);fflush(stdout);
22
+ #define WATCHPOINT_NUMBER(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %zu\n", __FILE__, __LINE__,__func__,(size_t)(A));fflush(stdout);
23
+ #define WATCHPOINT_ERRNO(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__, strerror(A));fflush(stdout);
24
+ #define WATCHPOINT_ASSERT_PRINT(A,B,C) if(!(A)){fprintf(stderr, "\nWATCHPOINT ASSERT %s:%d (%s) ", __FILE__, __LINE__,__func__);fprintf(stderr, (B),(C));fprintf(stderr,"\n");fflush(stdout);}assert((A));
25
+ #define WATCHPOINT_ASSERT(A) assert((A));
26
+ #else
27
+ #define WATCHPOINT
28
+ #define WATCHPOINT_ERROR(A)
29
+ #define WATCHPOINT_IFERROR(A)
30
+ #define WATCHPOINT_STRING(A)
31
+ #define WATCHPOINT_NUMBER(A)
32
+ #define WATCHPOINT_ERRNO(A)
33
+ #define WATCHPOINT_ASSERT_PRINT(A,B,C)
34
+ #define WATCHPOINT_ASSERT(A)
35
+
36
+ #endif /* DEBUG */
37
+
38
+ #endif /* LIBMEMCACHED_MEMCACHED_WATCHPOINT_H */
@@ -0,0 +1,76 @@
1
+ /*
2
+ "Murmur" hash provided by Austin, tanjent@gmail.com
3
+ http://murmurhash.googlepages.com/
4
+
5
+ Note - This code makes a few assumptions about how your machine behaves -
6
+
7
+ 1. We can read a 4-byte value from any address without crashing
8
+ 2. sizeof(int) == 4
9
+
10
+ And it has a few limitations -
11
+ 1. It will not work incrementally.
12
+ 2. It will not produce the same results on little-endian and big-endian
13
+ machines.
14
+
15
+ Updated to murmur2 hash - BP
16
+ */
17
+
18
+ #include "common.h"
19
+
20
+ uint32_t murmur_hash(const char *key, size_t length)
21
+ {
22
+ /*
23
+ 'm' and 'r' are mixing constants generated offline. They're not
24
+ really 'magic', they just happen to work well.
25
+ */
26
+
27
+ const unsigned int m= 0x5bd1e995;
28
+ const uint32_t seed= (0xdeadbeef * (uint32_t)length);
29
+ const int r= 24;
30
+
31
+
32
+ // Initialize the hash to a 'random' value
33
+
34
+ uint32_t h= seed ^ (uint32_t)length;
35
+
36
+ // Mix 4 bytes at a time into the hash
37
+
38
+ const unsigned char * data= (const unsigned char *)key;
39
+
40
+ while(length >= 4)
41
+ {
42
+ unsigned int k = *(unsigned int *)data;
43
+
44
+ k *= m;
45
+ k ^= k >> r;
46
+ k *= m;
47
+
48
+ h *= m;
49
+ h ^= k;
50
+
51
+ data += 4;
52
+ length -= 4;
53
+ }
54
+
55
+ // Handle the last few bytes of the input array
56
+
57
+ switch(length)
58
+ {
59
+ case 3: h ^= ((uint32_t)data[2]) << 16;
60
+ case 2: h ^= ((uint32_t)data[1]) << 8;
61
+ case 1: h ^= data[0];
62
+ h *= m;
63
+ default: break;
64
+ };
65
+
66
+ /*
67
+ Do a few final mixes of the hash to ensure the last few bytes are
68
+ well-incorporated.
69
+ */
70
+
71
+ h ^= h >> 13;
72
+ h *= m;
73
+ h ^= h >> 15;
74
+
75
+ return (uint32_t) h;
76
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Summary: interface for memcached server
3
+ * Description: visibitliy macros for libmemcached
4
+ *
5
+ * Use and distribution licensed under the BSD license. See
6
+ * the COPYING file in this directory for full text.
7
+ *
8
+ * Author: Monty Taylor
9
+ */
10
+
11
+ /**
12
+ * @file
13
+ * @brief Visibility control macros
14
+ */
15
+
16
+ #ifndef __LIBMEMCACHED_VISIBILITY_H
17
+ #define __LIBMEMCACHED_VISIBILITY_H
18
+
19
+ /**
20
+ *
21
+ * LIBMEMCACHED_API is used for the public API symbols. It either DLL imports or
22
+ * DLL exports (or does nothing for static build).
23
+ *
24
+ * LIBMEMCACHED_LOCAL is used for non-api symbols.
25
+ */
26
+
27
+ #if defined(BUILDING_LIBMEMCACHED)
28
+ # if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
29
+ # define LIBMEMCACHED_API __attribute__ ((visibility("default")))
30
+ # define LIBMEMCACHED_LOCAL __attribute__ ((visibility("hidden")))
31
+ # elif defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
32
+ # define LIBMEMCACHED_API __global
33
+ # define LIBMEMCACHED_LOCAL __hidden
34
+ # elif defined(_MSC_VER)
35
+ # define LIBMEMCACHED_API extern __declspec(dllexport)
36
+ # define LIBMEMCACHED_LOCAL
37
+ # else
38
+ # define LIBMEMCACHED_API
39
+ # define LIBMEMCACHED_LOCAL
40
+ # endif /* defined(HAVE_VISIBILITY) */
41
+ #else /* defined(BUILDING_LIBMEMCACHED) */
42
+ # if defined(_MSC_VER)
43
+ # define LIBMEMCACHED_API extern __declspec(dllimport)
44
+ # define LIBMEMCACHED_LOCAL
45
+ # else
46
+ # define LIBMEMCACHED_API
47
+ # define LIBMEMCACHED_LOCAL
48
+ # endif /* defined(_MSC_VER) */
49
+ #endif /* defined(BUILDING_LIBMEMCACHED) */
50
+
51
+ #endif /* __LIBMEMCACHED_VISIBILITY_H */
@@ -0,0 +1,11 @@
1
+ EXTRA_DIST= libmemcachedutil.ver
2
+
3
+ lib_LTLIBRARIES=
4
+
5
+ if BUILD_LIBMEMCACHEDUTIL
6
+ lib_LTLIBRARIES+= libmemcachedutil.la
7
+ endif
8
+
9
+ libmemcachedutil_la_SOURCES= memcached_pool.c
10
+ libmemcachedutil_la_LDFLAGS= -version-info $(MEMCACHEDUTIL_LIBRARY_VERSION) $(LD_UTIL_VERSION_SCRIPT)
11
+ libmemcachedutil_la_LIBADD= ${top_builddir}/libmemcached/libmemcached.la
@@ -0,0 +1,602 @@
1
+ # Makefile.in generated by automake 1.11 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+
18
+ VPATH = @srcdir@
19
+ pkgdatadir = $(datadir)/@PACKAGE@
20
+ pkgincludedir = $(includedir)/@PACKAGE@
21
+ pkglibdir = $(libdir)/@PACKAGE@
22
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
23
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24
+ install_sh_DATA = $(install_sh) -c -m 644
25
+ install_sh_PROGRAM = $(install_sh) -c
26
+ install_sh_SCRIPT = $(install_sh) -c
27
+ INSTALL_HEADER = $(INSTALL_DATA)
28
+ transform = $(program_transform_name)
29
+ NORMAL_INSTALL = :
30
+ PRE_INSTALL = :
31
+ POST_INSTALL = :
32
+ NORMAL_UNINSTALL = :
33
+ PRE_UNINSTALL = :
34
+ POST_UNINSTALL = :
35
+ build_triplet = @build@
36
+ host_triplet = @host@
37
+ target_triplet = @target@
38
+ @BUILD_LIBMEMCACHEDUTIL_TRUE@am__append_1 = libmemcachedutil.la
39
+ subdir = libmemcachedutil
40
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42
+ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_cxx_compile_stdcxx_0x.m4 \
43
+ $(top_srcdir)/m4/ac_cxx_header_stdcxx_98.m4 \
44
+ $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/byteorder.m4 \
45
+ $(top_srcdir)/m4/deprecated.m4 \
46
+ $(top_srcdir)/m4/enable_utillib.m4 \
47
+ $(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/hsieh.m4 \
48
+ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
49
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
50
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
51
+ $(top_srcdir)/m4/memcached.m4 \
52
+ $(top_srcdir)/m4/pandora_64bit.m4 \
53
+ $(top_srcdir)/m4/pandora_canonical.m4 \
54
+ $(top_srcdir)/m4/pandora_check_compiler_version.m4 \
55
+ $(top_srcdir)/m4/pandora_check_cxx_standard.m4 \
56
+ $(top_srcdir)/m4/pandora_enable_dtrace.m4 \
57
+ $(top_srcdir)/m4/pandora_ensure_gcc_version.m4 \
58
+ $(top_srcdir)/m4/pandora_have_better_malloc.m4 \
59
+ $(top_srcdir)/m4/pandora_have_sasl.m4 \
60
+ $(top_srcdir)/m4/pandora_header_assert.m4 \
61
+ $(top_srcdir)/m4/pandora_libtool.m4 \
62
+ $(top_srcdir)/m4/pandora_optimize.m4 \
63
+ $(top_srcdir)/m4/pandora_shared_ptr.m4 \
64
+ $(top_srcdir)/m4/pandora_vc_build.m4 \
65
+ $(top_srcdir)/m4/pandora_warnings.m4 \
66
+ $(top_srcdir)/m4/pod2man.m4 \
67
+ $(top_srcdir)/m4/protocol_binary.m4 \
68
+ $(top_srcdir)/m4/setsockopt.m4 $(top_srcdir)/m4/visibility.m4 \
69
+ $(top_srcdir)/configure.ac
70
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
71
+ $(ACLOCAL_M4)
72
+ mkinstalldirs = $(install_sh) -d
73
+ CONFIG_HEADER = $(top_builddir)/config.h
74
+ CONFIG_CLEAN_FILES =
75
+ CONFIG_CLEAN_VPATH_FILES =
76
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
77
+ am__vpath_adj = case $$p in \
78
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
79
+ *) f=$$p;; \
80
+ esac;
81
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
82
+ am__install_max = 40
83
+ am__nobase_strip_setup = \
84
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
85
+ am__nobase_strip = \
86
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
87
+ am__nobase_list = $(am__nobase_strip_setup); \
88
+ for p in $$list; do echo "$$p $$p"; done | \
89
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
90
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
91
+ if (++n[$$2] == $(am__install_max)) \
92
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
93
+ END { for (dir in files) print dir, files[dir] }'
94
+ am__base_list = \
95
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
96
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
97
+ am__installdirs = "$(DESTDIR)$(libdir)"
98
+ LTLIBRARIES = $(lib_LTLIBRARIES)
99
+ libmemcachedutil_la_DEPENDENCIES = \
100
+ ${top_builddir}/libmemcached/libmemcached.la
101
+ am_libmemcachedutil_la_OBJECTS = memcached_pool.lo
102
+ libmemcachedutil_la_OBJECTS = $(am_libmemcachedutil_la_OBJECTS)
103
+ libmemcachedutil_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
104
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
105
+ $(libmemcachedutil_la_LDFLAGS) $(LDFLAGS) -o $@
106
+ @BUILD_LIBMEMCACHEDUTIL_TRUE@am_libmemcachedutil_la_rpath = -rpath \
107
+ @BUILD_LIBMEMCACHEDUTIL_TRUE@ $(libdir)
108
+ DEFAULT_INCLUDES =
109
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
110
+ am__depfiles_maybe = depfiles
111
+ am__mv = mv -f
112
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
113
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
114
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
115
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
116
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
117
+ CCLD = $(CC)
118
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
119
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
120
+ $(LDFLAGS) -o $@
121
+ SOURCES = $(libmemcachedutil_la_SOURCES)
122
+ DIST_SOURCES = $(libmemcachedutil_la_SOURCES)
123
+ ETAGS = etags
124
+ CTAGS = ctags
125
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
126
+ ACLOCAL = @ACLOCAL@
127
+ AMTAR = @AMTAR@
128
+ AM_CFLAGS = @AM_CFLAGS@
129
+ AM_CPPFLAGS = @AM_CPPFLAGS@
130
+ AM_CXXFLAGS = @AM_CXXFLAGS@
131
+ AR = @AR@
132
+ AUTOCONF = @AUTOCONF@
133
+ AUTOHEADER = @AUTOHEADER@
134
+ AUTOMAKE = @AUTOMAKE@
135
+ AWK = @AWK@
136
+ BETTER_MALLOC_LIBS = @BETTER_MALLOC_LIBS@
137
+ CC = @CC@
138
+ CCDEPMODE = @CCDEPMODE@
139
+ CC_VERSION = @CC_VERSION@
140
+ CFLAGS = @CFLAGS@
141
+ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
142
+ CPP = @CPP@
143
+ CPPFLAGS = @CPPFLAGS@
144
+ CXX = @CXX@
145
+ CXXCPP = @CXXCPP@
146
+ CXXDEPMODE = @CXXDEPMODE@
147
+ CXXFLAGS = @CXXFLAGS@
148
+ CXX_VERSION = @CXX_VERSION@
149
+ CYGPATH_W = @CYGPATH_W@
150
+ DEFS = @DEFS@
151
+ DEPDIR = @DEPDIR@
152
+ DEPRECATED = @DEPRECATED@
153
+ DOXYGEN = @DOXYGEN@
154
+ DSYMUTIL = @DSYMUTIL@
155
+ DTRACE = @DTRACE@
156
+ DTRACEFLAGS = @DTRACEFLAGS@
157
+ DUMPBIN = @DUMPBIN@
158
+ ECHO_C = @ECHO_C@
159
+ ECHO_N = @ECHO_N@
160
+ ECHO_T = @ECHO_T@
161
+ EGREP = @EGREP@
162
+ EXEEXT = @EXEEXT@
163
+ FGREP = @FGREP@
164
+ GREP = @GREP@
165
+ HAVE_LIBSASL = @HAVE_LIBSASL@
166
+ HAVE_LIBSASL2 = @HAVE_LIBSASL2@
167
+ HAVE_VISIBILITY = @HAVE_VISIBILITY@
168
+ INSTALL = @INSTALL@
169
+ INSTALL_DATA = @INSTALL_DATA@
170
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
171
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
172
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
173
+ ISAINFO = @ISAINFO@
174
+ LD = @LD@
175
+ LDFLAGS = @LDFLAGS@
176
+ LD_UTIL_VERSION_SCRIPT = @LD_UTIL_VERSION_SCRIPT@
177
+ LD_VERSION_SCRIPT = @LD_VERSION_SCRIPT@
178
+ LIBC_P = @LIBC_P@
179
+ LIBM = @LIBM@
180
+ LIBMEMCACHED_WITH_SASL_SUPPORT = @LIBMEMCACHED_WITH_SASL_SUPPORT@
181
+ LIBOBJS = @LIBOBJS@
182
+ LIBS = @LIBS@
183
+ LIBSASL = @LIBSASL@
184
+ LIBSASL2 = @LIBSASL2@
185
+ LIBSASL2_PREFIX = @LIBSASL2_PREFIX@
186
+ LIBSASL_PREFIX = @LIBSASL_PREFIX@
187
+ LIBTOOL = @LIBTOOL@
188
+ LIPO = @LIPO@
189
+ LN_S = @LN_S@
190
+ LTLIBOBJS = @LTLIBOBJS@
191
+ LTLIBSASL = @LTLIBSASL@
192
+ LTLIBSASL2 = @LTLIBSASL2@
193
+ MAKEINFO = @MAKEINFO@
194
+ MEMCACHEDUTIL_LIBRARY_VERSION = @MEMCACHEDUTIL_LIBRARY_VERSION@
195
+ MEMCACHED_LIBRARY_VERSION = @MEMCACHED_LIBRARY_VERSION@
196
+ MEMC_BINARY = @MEMC_BINARY@
197
+ MKDIR_P = @MKDIR_P@
198
+ NM = @NM@
199
+ NMEDIT = @NMEDIT@
200
+ NO_CONVERSION = @NO_CONVERSION@
201
+ NO_REDUNDANT_DECLS = @NO_REDUNDANT_DECLS@
202
+ NO_SHADOW = @NO_SHADOW@
203
+ NO_STRICT_ALIASING = @NO_STRICT_ALIASING@
204
+ NO_UNREACHED = @NO_UNREACHED@
205
+ OBJDUMP = @OBJDUMP@
206
+ OBJEXT = @OBJEXT@
207
+ OTOOL = @OTOOL@
208
+ OTOOL64 = @OTOOL64@
209
+ PACKAGE = @PACKAGE@
210
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
211
+ PACKAGE_NAME = @PACKAGE_NAME@
212
+ PACKAGE_STRING = @PACKAGE_STRING@
213
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
214
+ PACKAGE_URL = @PACKAGE_URL@
215
+ PACKAGE_VERSION = @PACKAGE_VERSION@
216
+ PATH_SEPARATOR = @PATH_SEPARATOR@
217
+ PERL = @PERL@
218
+ POD2MAN = @POD2MAN@
219
+ PROTOSKIP_WARNINGS = @PROTOSKIP_WARNINGS@
220
+ PTHREAD_CC = @PTHREAD_CC@
221
+ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
222
+ PTHREAD_LIBS = @PTHREAD_LIBS@
223
+ RANLIB = @RANLIB@
224
+ SED = @SED@
225
+ SET_MAKE = @SET_MAKE@
226
+ SHELL = @SHELL@
227
+ STRIP = @STRIP@
228
+ VERSION = @VERSION@
229
+ abs_builddir = @abs_builddir@
230
+ abs_srcdir = @abs_srcdir@
231
+ abs_top_builddir = @abs_top_builddir@
232
+ abs_top_srcdir = @abs_top_srcdir@
233
+ ac_ct_CC = @ac_ct_CC@
234
+ ac_ct_CXX = @ac_ct_CXX@
235
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
236
+ acx_pthread_config = @acx_pthread_config@
237
+ am__include = @am__include@
238
+ am__leading_dot = @am__leading_dot@
239
+ am__quote = @am__quote@
240
+ am__tar = @am__tar@
241
+ am__untar = @am__untar@
242
+ bindir = @bindir@
243
+ build = @build@
244
+ build_alias = @build_alias@
245
+ build_cpu = @build_cpu@
246
+ build_os = @build_os@
247
+ build_vendor = @build_vendor@
248
+ builddir = @builddir@
249
+ datadir = @datadir@
250
+ datarootdir = @datarootdir@
251
+ docdir = @docdir@
252
+ dvidir = @dvidir@
253
+ exec_prefix = @exec_prefix@
254
+ host = @host@
255
+ host_alias = @host_alias@
256
+ host_cpu = @host_cpu@
257
+ host_os = @host_os@
258
+ host_vendor = @host_vendor@
259
+ htmldir = @htmldir@
260
+ includedir = @includedir@
261
+ infodir = @infodir@
262
+ install_sh = @install_sh@
263
+ libdir = @libdir@
264
+ libexecdir = @libexecdir@
265
+ localedir = @localedir@
266
+ localstatedir = @localstatedir@
267
+ lt_ECHO = @lt_ECHO@
268
+ mandir = @mandir@
269
+ mkdir_p = @mkdir_p@
270
+ oldincludedir = @oldincludedir@
271
+ pdfdir = @pdfdir@
272
+ prefix = @prefix@
273
+ program_transform_name = @program_transform_name@
274
+ psdir = @psdir@
275
+ sbindir = @sbindir@
276
+ sharedstatedir = @sharedstatedir@
277
+ srcdir = @srcdir@
278
+ sysconfdir = @sysconfdir@
279
+ target = @target@
280
+ target_alias = @target_alias@
281
+ target_cpu = @target_cpu@
282
+ target_os = @target_os@
283
+ target_vendor = @target_vendor@
284
+ top_build_prefix = @top_build_prefix@
285
+ top_builddir = @top_builddir@
286
+ top_srcdir = @top_srcdir@
287
+ EXTRA_DIST = libmemcachedutil.ver
288
+ lib_LTLIBRARIES = $(am__append_1)
289
+ libmemcachedutil_la_SOURCES = memcached_pool.c
290
+ libmemcachedutil_la_LDFLAGS = -version-info $(MEMCACHEDUTIL_LIBRARY_VERSION) $(LD_UTIL_VERSION_SCRIPT)
291
+ libmemcachedutil_la_LIBADD = ${top_builddir}/libmemcached/libmemcached.la
292
+ all: all-am
293
+
294
+ .SUFFIXES:
295
+ .SUFFIXES: .c .lo .o .obj
296
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
297
+ @for dep in $?; do \
298
+ case '$(am__configure_deps)' in \
299
+ *$$dep*) \
300
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
301
+ && { if test -f $@; then exit 0; else break; fi; }; \
302
+ exit 1;; \
303
+ esac; \
304
+ done; \
305
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libmemcachedutil/Makefile'; \
306
+ $(am__cd) $(top_srcdir) && \
307
+ $(AUTOMAKE) --gnu libmemcachedutil/Makefile
308
+ .PRECIOUS: Makefile
309
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
310
+ @case '$?' in \
311
+ *config.status*) \
312
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
313
+ *) \
314
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
315
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
316
+ esac;
317
+
318
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
319
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
320
+
321
+ $(top_srcdir)/configure: $(am__configure_deps)
322
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
323
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
324
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
325
+ $(am__aclocal_m4_deps):
326
+ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
327
+ @$(NORMAL_INSTALL)
328
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
329
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
330
+ list2=; for p in $$list; do \
331
+ if test -f $$p; then \
332
+ list2="$$list2 $$p"; \
333
+ else :; fi; \
334
+ done; \
335
+ test -z "$$list2" || { \
336
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
337
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
338
+ }
339
+
340
+ uninstall-libLTLIBRARIES:
341
+ @$(NORMAL_UNINSTALL)
342
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
343
+ for p in $$list; do \
344
+ $(am__strip_dir) \
345
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
346
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
347
+ done
348
+
349
+ clean-libLTLIBRARIES:
350
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
351
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
352
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
353
+ test "$$dir" != "$$p" || dir=.; \
354
+ echo "rm -f \"$${dir}/so_locations\""; \
355
+ rm -f "$${dir}/so_locations"; \
356
+ done
357
+ libmemcachedutil.la: $(libmemcachedutil_la_OBJECTS) $(libmemcachedutil_la_DEPENDENCIES)
358
+ $(libmemcachedutil_la_LINK) $(am_libmemcachedutil_la_rpath) $(libmemcachedutil_la_OBJECTS) $(libmemcachedutil_la_LIBADD) $(LIBS)
359
+
360
+ mostlyclean-compile:
361
+ -rm -f *.$(OBJEXT)
362
+
363
+ distclean-compile:
364
+ -rm -f *.tab.c
365
+
366
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memcached_pool.Plo@am__quote@
367
+
368
+ .c.o:
369
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
370
+ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
371
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
372
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
373
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
374
+ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
375
+
376
+ .c.obj:
377
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
378
+ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
379
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
380
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
381
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
382
+ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
383
+
384
+ .c.lo:
385
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
386
+ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
387
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
388
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
389
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390
+ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
391
+
392
+ mostlyclean-libtool:
393
+ -rm -f *.lo
394
+
395
+ clean-libtool:
396
+ -rm -rf .libs _libs
397
+
398
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
399
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
400
+ unique=`for i in $$list; do \
401
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
402
+ done | \
403
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
404
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
405
+ mkid -fID $$unique
406
+ tags: TAGS
407
+
408
+ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
409
+ $(TAGS_FILES) $(LISP)
410
+ set x; \
411
+ here=`pwd`; \
412
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
413
+ unique=`for i in $$list; do \
414
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
415
+ done | \
416
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
417
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
418
+ shift; \
419
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
420
+ test -n "$$unique" || unique=$$empty_fix; \
421
+ if test $$# -gt 0; then \
422
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
423
+ "$$@" $$unique; \
424
+ else \
425
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
426
+ $$unique; \
427
+ fi; \
428
+ fi
429
+ ctags: CTAGS
430
+ CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
431
+ $(TAGS_FILES) $(LISP)
432
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
433
+ unique=`for i in $$list; do \
434
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
435
+ done | \
436
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
437
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
438
+ test -z "$(CTAGS_ARGS)$$unique" \
439
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
440
+ $$unique
441
+
442
+ GTAGS:
443
+ here=`$(am__cd) $(top_builddir) && pwd` \
444
+ && $(am__cd) $(top_srcdir) \
445
+ && gtags -i $(GTAGS_ARGS) "$$here"
446
+
447
+ distclean-tags:
448
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
449
+
450
+ distdir: $(DISTFILES)
451
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
452
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
453
+ list='$(DISTFILES)'; \
454
+ dist_files=`for file in $$list; do echo $$file; done | \
455
+ sed -e "s|^$$srcdirstrip/||;t" \
456
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
457
+ case $$dist_files in \
458
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
459
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
460
+ sort -u` ;; \
461
+ esac; \
462
+ for file in $$dist_files; do \
463
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
464
+ if test -d $$d/$$file; then \
465
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
466
+ if test -d "$(distdir)/$$file"; then \
467
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
468
+ fi; \
469
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
470
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
471
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
472
+ fi; \
473
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
474
+ else \
475
+ test -f "$(distdir)/$$file" \
476
+ || cp -p $$d/$$file "$(distdir)/$$file" \
477
+ || exit 1; \
478
+ fi; \
479
+ done
480
+ check-am: all-am
481
+ check: check-am
482
+ all-am: Makefile $(LTLIBRARIES)
483
+ installdirs:
484
+ for dir in "$(DESTDIR)$(libdir)"; do \
485
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
486
+ done
487
+ install: install-am
488
+ install-exec: install-exec-am
489
+ install-data: install-data-am
490
+ uninstall: uninstall-am
491
+
492
+ install-am: all-am
493
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
494
+
495
+ installcheck: installcheck-am
496
+ install-strip:
497
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
498
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
499
+ `test -z '$(STRIP)' || \
500
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
501
+ mostlyclean-generic:
502
+
503
+ clean-generic:
504
+
505
+ distclean-generic:
506
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
507
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
508
+
509
+ maintainer-clean-generic:
510
+ @echo "This command is intended for maintainers to use"
511
+ @echo "it deletes files that may require special tools to rebuild."
512
+ clean: clean-am
513
+
514
+ clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
515
+ mostlyclean-am
516
+
517
+ distclean: distclean-am
518
+ -rm -rf ./$(DEPDIR)
519
+ -rm -f Makefile
520
+ distclean-am: clean-am distclean-compile distclean-generic \
521
+ distclean-tags
522
+
523
+ dvi: dvi-am
524
+
525
+ dvi-am:
526
+
527
+ html: html-am
528
+
529
+ html-am:
530
+
531
+ info: info-am
532
+
533
+ info-am:
534
+
535
+ install-data-am:
536
+
537
+ install-dvi: install-dvi-am
538
+
539
+ install-dvi-am:
540
+
541
+ install-exec-am: install-libLTLIBRARIES
542
+
543
+ install-html: install-html-am
544
+
545
+ install-html-am:
546
+
547
+ install-info: install-info-am
548
+
549
+ install-info-am:
550
+
551
+ install-man:
552
+
553
+ install-pdf: install-pdf-am
554
+
555
+ install-pdf-am:
556
+
557
+ install-ps: install-ps-am
558
+
559
+ install-ps-am:
560
+
561
+ installcheck-am:
562
+
563
+ maintainer-clean: maintainer-clean-am
564
+ -rm -rf ./$(DEPDIR)
565
+ -rm -f Makefile
566
+ maintainer-clean-am: distclean-am maintainer-clean-generic
567
+
568
+ mostlyclean: mostlyclean-am
569
+
570
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
571
+ mostlyclean-libtool
572
+
573
+ pdf: pdf-am
574
+
575
+ pdf-am:
576
+
577
+ ps: ps-am
578
+
579
+ ps-am:
580
+
581
+ uninstall-am: uninstall-libLTLIBRARIES
582
+
583
+ .MAKE: install-am install-strip
584
+
585
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
586
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
587
+ distclean-compile distclean-generic distclean-libtool \
588
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
589
+ install install-am install-data install-data-am install-dvi \
590
+ install-dvi-am install-exec install-exec-am install-html \
591
+ install-html-am install-info install-info-am \
592
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
593
+ install-ps install-ps-am install-strip installcheck \
594
+ installcheck-am installdirs maintainer-clean \
595
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
596
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
597
+ tags uninstall uninstall-am uninstall-libLTLIBRARIES
598
+
599
+
600
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
601
+ # Otherwise a system limit (for SysV at least) may be exceeded.
602
+ .NOEXPORT: