Permalink
Browse files

libuv 75a088e

  • Loading branch information...
0 parents commit 727c791c7eac2bede5ac1629e6586d953bd2aacb @bnoordhuis committed Sep 17, 2011
Showing with 121,987 additions and 0 deletions.
  1. +7 −0 deps/.mailmap
  2. +7 −0 deps/libuv/.mailmap
  3. +23 −0 deps/libuv/AUTHORS
  4. +40 −0 deps/libuv/LICENSE
  5. +119 −0 deps/libuv/Makefile
  6. +50 −0 deps/libuv/README
  7. +164 −0 deps/libuv/common.gypi
  8. +60 −0 deps/libuv/config-mingw.mk
  9. +144 −0 deps/libuv/config-unix.mk
  10. +60 −0 deps/libuv/gyp_uv
  11. +582 −0 deps/libuv/include/ares.h
  12. +24 −0 deps/libuv/include/ares_version.h
  13. +376 −0 deps/libuv/include/uv-private/eio.h
  14. +835 −0 deps/libuv/include/uv-private/ev.h
  15. +102 −0 deps/libuv/include/uv-private/ngx-queue.h
  16. +762 −0 deps/libuv/include/uv-private/tree.h
  17. +179 −0 deps/libuv/include/uv-private/uv-unix.h
  18. +270 −0 deps/libuv/include/uv-private/uv-win.h
  19. +1,099 −0 deps/libuv/include/uv.h
  20. +37 −0 deps/libuv/src/ares/AUTHORS
  21. +1,198 −0 deps/libuv/src/ares/CHANGES
  22. +22 −0 deps/libuv/src/ares/CMakeLists.txt
  23. +21 −0 deps/libuv/src/ares/NEWS
  24. +60 −0 deps/libuv/src/ares/README
  25. +13 −0 deps/libuv/src/ares/README.cares
  26. +118 −0 deps/libuv/src/ares/README.msvc
  27. +21 −0 deps/libuv/src/ares/README.node
  28. +25 −0 deps/libuv/src/ares/RELEASE-NOTES
  29. +23 −0 deps/libuv/src/ares/TODO
  30. +66 −0 deps/libuv/src/ares/ares__close_sockets.c
  31. +263 −0 deps/libuv/src/ares/ares__get_hostent.c
  32. +71 −0 deps/libuv/src/ares/ares__read_line.c
  33. +111 −0 deps/libuv/src/ares/ares__timeval.c
  34. +63 −0 deps/libuv/src/ares/ares_cancel.c
  35. +190 −0 deps/libuv/src/ares/ares_data.c
  36. +65 −0 deps/libuv/src/ares/ares_data.h
  37. +105 −0 deps/libuv/src/ares/ares_destroy.c
  38. +90 −0 deps/libuv/src/ares/ares_dns.h
  39. +193 −0 deps/libuv/src/ares/ares_expand_name.c
  40. +75 −0 deps/libuv/src/ares/ares_expand_string.c
  41. +62 −0 deps/libuv/src/ares/ares_fds.c
  42. +39 −0 deps/libuv/src/ares/ares_free_hostent.c
  43. +25 −0 deps/libuv/src/ares/ares_free_string.c
  44. +292 −0 deps/libuv/src/ares/ares_gethostbyaddr.c
  45. +515 −0 deps/libuv/src/ares/ares_gethostbyname.c
  46. +426 −0 deps/libuv/src/ares/ares_getnameinfo.c
  47. +122 −0 deps/libuv/src/ares/ares_getopt.c
  48. +53 −0 deps/libuv/src/ares/ares_getopt.h
  49. +72 −0 deps/libuv/src/ares/ares_getsock.c
  50. +1,665 −0 deps/libuv/src/ares/ares_init.c
  51. +78 −0 deps/libuv/src/ares/ares_ipv6.h
  52. +132 −0 deps/libuv/src/ares/ares_library_init.c
  53. +39 −0 deps/libuv/src/ares/ares_library_init.h
  54. +86 −0 deps/libuv/src/ares/ares_llist.c
  55. +42 −0 deps/libuv/src/ares/ares_llist.h
  56. +195 −0 deps/libuv/src/ares/ares_mkquery.c
  57. +59 −0 deps/libuv/src/ares/ares_nowarn.c
  58. +24 −0 deps/libuv/src/ares/ares_nowarn.h
  59. +253 −0 deps/libuv/src/ares/ares_options.c
  60. +260 −0 deps/libuv/src/ares/ares_parse_a_reply.c
  61. +256 −0 deps/libuv/src/ares/ares_parse_aaaa_reply.c
  62. +170 −0 deps/libuv/src/ares/ares_parse_mx_reply.c
  63. +182 −0 deps/libuv/src/ares/ares_parse_ns_reply.c
  64. +208 −0 deps/libuv/src/ares/ares_parse_ptr_reply.c
  65. +179 −0 deps/libuv/src/ares/ares_parse_srv_reply.c
  66. +201 −0 deps/libuv/src/ares/ares_parse_txt_reply.c
  67. +351 −0 deps/libuv/src/ares/ares_private.h
  68. +1,296 −0 deps/libuv/src/ares/ares_process.c
  69. +183 −0 deps/libuv/src/ares/ares_query.c
  70. +144 −0 deps/libuv/src/ares/ares_rules.h
  71. +322 −0 deps/libuv/src/ares/ares_search.c
  72. +134 −0 deps/libuv/src/ares/ares_send.c
  73. +191 −0 deps/libuv/src/ares/ares_setup.h
  74. +66 −0 deps/libuv/src/ares/ares_strcasecmp.c
  75. +30 −0 deps/libuv/src/ares/ares_strcasecmp.h
  76. +42 −0 deps/libuv/src/ares/ares_strdup.c
  77. +26 −0 deps/libuv/src/ares/ares_strdup.h
  78. +56 −0 deps/libuv/src/ares/ares_strerror.c
  79. +80 −0 deps/libuv/src/ares/ares_timeout.c
  80. +11 −0 deps/libuv/src/ares/ares_version.c
  81. +79 −0 deps/libuv/src/ares/ares_writev.c
  82. +36 −0 deps/libuv/src/ares/ares_writev.h
  83. +59 −0 deps/libuv/src/ares/bitncmp.c
  84. +26 −0 deps/libuv/src/ares/bitncmp.h
  85. +510 −0 deps/libuv/src/ares/config_cygwin/ares_config.h
  86. +510 −0 deps/libuv/src/ares/config_darwin/ares_config.h
  87. +510 −0 deps/libuv/src/ares/config_freebsd/ares_config.h
  88. +510 −0 deps/libuv/src/ares/config_linux/ares_config.h
  89. +510 −0 deps/libuv/src/ares/config_netbsd/ares_config.h
  90. +510 −0 deps/libuv/src/ares/config_openbsd/ares_config.h
  91. +510 −0 deps/libuv/src/ares/config_sunos/ares_config.h
  92. +369 −0 deps/libuv/src/ares/config_win32/ares_config.h
  93. +35 −0 deps/libuv/src/ares/get_ver.awk
  94. +450 −0 deps/libuv/src/ares/inet_net_pton.c
  95. +31 −0 deps/libuv/src/ares/inet_net_pton.h
  96. +232 −0 deps/libuv/src/ares/inet_ntop.c
  97. +27 −0 deps/libuv/src/ares/inet_ntop.h
  98. +193 −0 deps/libuv/src/ares/nameser.h
  99. +488 −0 deps/libuv/src/ares/setup_once.h
  100. +22 −0 deps/libuv/src/ares/windows_port.c
  101. +185 −0 deps/libuv/src/unix/cares.c
  102. +783 −0 deps/libuv/src/unix/core.c
  103. +52 −0 deps/libuv/src/unix/cygwin.c
  104. +65 −0 deps/libuv/src/unix/darwin.c
  105. +63 −0 deps/libuv/src/unix/eio/Changes
  106. +36 −0 deps/libuv/src/unix/eio/LICENSE
  107. +15 −0 deps/libuv/src/unix/eio/Makefile.am
  108. +8,957 −0 deps/libuv/src/unix/eio/aclocal.m4
  109. +3 −0 deps/libuv/src/unix/eio/autogen.sh
  110. +86 −0 deps/libuv/src/unix/eio/config.h.in
  111. +80 −0 deps/libuv/src/unix/eio/config_cygwin.h
  112. +141 −0 deps/libuv/src/unix/eio/config_darwin.h
  113. +81 −0 deps/libuv/src/unix/eio/config_freebsd.h
  114. +91 −0 deps/libuv/src/unix/eio/config_linux.h
  115. +81 −0 deps/libuv/src/unix/eio/config_netbsd.h
  116. +84 −0 deps/libuv/src/unix/eio/config_sunos.h
  117. +22 −0 deps/libuv/src/unix/eio/configure.ac
  118. +194 −0 deps/libuv/src/unix/eio/demo.c
  119. +370 −0 deps/libuv/src/unix/eio/ecb.h
  120. +3,428 −0 deps/libuv/src/unix/eio/eio.3
  121. +2,590 −0 deps/libuv/src/unix/eio/eio.c
  122. +969 −0 deps/libuv/src/unix/eio/eio.pod
  123. +195 −0 deps/libuv/src/unix/eio/libeio.m4
  124. +164 −0 deps/libuv/src/unix/eio/xthread.h
  125. +110 −0 deps/libuv/src/unix/error.c
  126. +388 −0 deps/libuv/src/unix/ev/Changes
  127. +36 −0 deps/libuv/src/unix/ev/LICENSE
  128. +18 −0 deps/libuv/src/unix/ev/Makefile.am
  129. +771 −0 deps/libuv/src/unix/ev/Makefile.in
  130. +58 −0 deps/libuv/src/unix/ev/README
  131. +8,957 −0 deps/libuv/src/unix/ev/aclocal.m4
  132. +6 −0 deps/libuv/src/unix/ev/autogen.sh
  133. +1,526 −0 deps/libuv/src/unix/ev/config.guess
  134. +125 −0 deps/libuv/src/unix/ev/config.h.in
  135. +1,658 −0 deps/libuv/src/unix/ev/config.sub
  136. +123 −0 deps/libuv/src/unix/ev/config_cygwin.h
  137. +122 −0 deps/libuv/src/unix/ev/config_darwin.h
  138. +120 −0 deps/libuv/src/unix/ev/config_freebsd.h
  139. +141 −0 deps/libuv/src/unix/ev/config_linux.h
  140. +120 −0 deps/libuv/src/unix/ev/config_netbsd.h
  141. +122 −0 deps/libuv/src/unix/ev/config_sunos.h
  142. +13,037 −0 deps/libuv/src/unix/ev/configure
  143. +18 −0 deps/libuv/src/unix/ev/configure.ac
  144. +630 −0 deps/libuv/src/unix/ev/depcomp
  145. +816 −0 deps/libuv/src/unix/ev/ev++.h
  146. +5,311 −0 deps/libuv/src/unix/ev/ev.3
  147. +3,913 −0 deps/libuv/src/unix/ev/ev.c
  148. +5,243 −0 deps/libuv/src/unix/ev/ev.pod
  149. +266 −0 deps/libuv/src/unix/ev/ev_epoll.c
  150. +198 −0 deps/libuv/src/unix/ev/ev_kqueue.c
  151. +148 −0 deps/libuv/src/unix/ev/ev_poll.c
  152. +179 −0 deps/libuv/src/unix/ev/ev_port.c
  153. +310 −0 deps/libuv/src/unix/ev/ev_select.c
  154. +203 −0 deps/libuv/src/unix/ev/ev_vars.h
  155. +153 −0 deps/libuv/src/unix/ev/ev_win32.c
  156. +196 −0 deps/libuv/src/unix/ev/ev_wrap.h
  157. +402 −0 deps/libuv/src/unix/ev/event.c
  158. +170 −0 deps/libuv/src/unix/ev/event.h
  159. +294 −0 deps/libuv/src/unix/ev/install-sh
  160. +39 −0 deps/libuv/src/unix/ev/libev.m4
  161. +8,413 −0 deps/libuv/src/unix/ev/ltmain.sh
  162. +336 −0 deps/libuv/src/unix/ev/missing
  163. +111 −0 deps/libuv/src/unix/ev/mkinstalldirs
  164. +65 −0 deps/libuv/src/unix/freebsd.c
  165. +692 −0 deps/libuv/src/unix/fs.c
  166. +109 −0 deps/libuv/src/unix/internal.h
  167. +51 −0 deps/libuv/src/unix/linux.c
  168. +68 −0 deps/libuv/src/unix/netbsd.c
  169. +272 −0 deps/libuv/src/unix/pipe.c
  170. +300 −0 deps/libuv/src/unix/process.c
  171. +781 −0 deps/libuv/src/unix/stream.c
  172. +60 −0 deps/libuv/src/unix/sunos.c
  173. +280 −0 deps/libuv/src/unix/tcp.c
  174. +69 −0 deps/libuv/src/unix/tty.c
  175. +555 −0 deps/libuv/src/unix/udp.c
  176. +134 −0 deps/libuv/src/unix/uv-eio.c
  177. +13 −0 deps/libuv/src/unix/uv-eio.h
  178. +185 −0 deps/libuv/src/uv-common.c
  179. +52 −0 deps/libuv/src/uv-common.h
  180. +127 −0 deps/libuv/src/win/async.c
  181. +289 −0 deps/libuv/src/win/cares.c
  182. +218 −0 deps/libuv/src/win/core.c
  183. +157 −0 deps/libuv/src/win/error.c
  184. +1,302 −0 deps/libuv/src/win/fs.c
  185. +363 −0 deps/libuv/src/win/getaddrinfo.c
  186. +185 −0 deps/libuv/src/win/handle.c
  187. +297 −0 deps/libuv/src/win/internal.h
  188. +131 −0 deps/libuv/src/win/loop-watcher.c
  189. +1,067 −0 deps/libuv/src/win/pipe.c
  190. +1,040 −0 deps/libuv/src/win/process.c
  191. +172 −0 deps/libuv/src/win/req.c
  192. +75 −0 deps/libuv/src/win/stdio.c
  193. +154 −0 deps/libuv/src/win/stream.c
  194. +870 −0 deps/libuv/src/win/tcp.c
  195. +73 −0 deps/libuv/src/win/threadpool.c
  196. +81 −0 deps/libuv/src/win/threads.c
  197. +276 −0 deps/libuv/src/win/timer.c
  198. +37 −0 deps/libuv/src/win/tty.c
  199. +598 −0 deps/libuv/src/win/udp.c
  200. +96 −0 deps/libuv/src/win/util.c
  201. +81 −0 deps/libuv/src/win/winapi.c
  202. +4,337 −0 deps/libuv/src/win/winapi.h
  203. +270 −0 deps/libuv/src/win/winsock.c
  204. +134 −0 deps/libuv/src/win/winsock.h
  205. +120 −0 deps/libuv/test/benchmark-ares.c
  206. +92 −0 deps/libuv/test/benchmark-getaddrinfo.c
  207. +98 −0 deps/libuv/test/benchmark-list.h
  208. +213 −0 deps/libuv/test/benchmark-ping-pongs.c
  209. +327 −0 deps/libuv/test/benchmark-pound.c
  210. +463 −0 deps/libuv/test/benchmark-pump.c
  211. +39 −0 deps/libuv/test/benchmark-sizes.c
  212. +156 −0 deps/libuv/test/benchmark-spawn.c
  213. +249 −0 deps/libuv/test/benchmark-udp-packet-storm.c
  214. +328 −0 deps/libuv/test/dns-server.c
  215. +306 −0 deps/libuv/test/echo-server.c
  216. +64 −0 deps/libuv/test/run-benchmarks.c
  217. +80 −0 deps/libuv/test/run-tests.c
  218. +337 −0 deps/libuv/test/runner-unix.c
  219. +36 −0 deps/libuv/test/runner-unix.h
  220. +343 −0 deps/libuv/test/runner-win.c
  221. +42 −0 deps/libuv/test/runner-win.h
  222. +311 −0 deps/libuv/test/runner.c
  223. +155 −0 deps/libuv/test/runner.h
  224. +111 −0 deps/libuv/test/task.h
  225. +216 −0 deps/libuv/test/test-async.c
  226. +203 −0 deps/libuv/test/test-callback-stack.c
  227. +148 −0 deps/libuv/test/test-connection-fail.c
  228. +197 −0 deps/libuv/test/test-delayed-accept.c
  229. +29 −0 deps/libuv/test/test-fail-always.c
  230. +1,251 −0 deps/libuv/test/test-fs.c
  231. +63 −0 deps/libuv/test/test-get-currentexe.c
  232. +118 −0 deps/libuv/test/test-getaddrinfo.c
  233. +189 −0 deps/libuv/test/test-gethostbyname.c
  234. +342 −0 deps/libuv/test/test-getsockname.c
  235. +51 −0 deps/libuv/test/test-hrtime.c
  236. +81 −0 deps/libuv/test/test-idle.c
  237. +209 −0 deps/libuv/test/test-list.h
  238. +359 −0 deps/libuv/test/test-loop-handles.c
  239. +28 −0 deps/libuv/test/test-pass-always.c
  240. +250 −0 deps/libuv/test/test-ping-pong.c
  241. +140 −0 deps/libuv/test/test-pipe-bind-error.c
  242. +85 −0 deps/libuv/test/test-ref.c
  243. +183 −0 deps/libuv/test/test-shutdown-eof.c
  244. +383 −0 deps/libuv/test/test-spawn.c
  245. +191 −0 deps/libuv/test/test-tcp-bind-error.c
  246. +154 −0 deps/libuv/test/test-tcp-bind6-error.c
  247. +129 −0 deps/libuv/test/test-tcp-close.c
  248. +154 −0 deps/libuv/test/test-tcp-write-error.c
  249. +196 −0 deps/libuv/test/test-tcp-writealot.c
  250. +57 −0 deps/libuv/test/test-threadpool.c
  251. +141 −0 deps/libuv/test/test-timer-again.c
  252. +132 −0 deps/libuv/test/test-timer.c
  253. +86 −0 deps/libuv/test/test-udp-dgram-too-big.c
  254. +156 −0 deps/libuv/test/test-udp-ipv6.c
  255. +208 −0 deps/libuv/test/test-udp-send-and-recv.c
  256. +340 −0 deps/libuv/uv.gyp
  257. +93 −0 deps/libuv/vcbuild.bat
@@ -0,0 +1,7 @@
+# update AUTHORS with:
+# git log --all --reverse --format='%aN <%aE>' | perl -ne 'BEGIN{print "# Authors ordered by first contribution.\n"} print unless $h{$_}; $h{$_} = 1' > AUTHORS
+<rm@joyent.com> <rm@fingolfin.org>
+<ryan@joyent.com> <ry@tinyclouds.org>
+<bertbelder@gmail.com> <info@2bs.nl>
+<alan@prettyrobots.com> <alan@blogometer.com>
+San-Tai Hsu <vanilla@fatpipi.com>
@@ -0,0 +1,7 @@
+# update AUTHORS with:
+# git log --all --reverse --format='%aN <%aE>' | perl -ne 'BEGIN{print "# Authors ordered by first contribution.\n"} print unless $h{$_}; $h{$_} = 1' > AUTHORS
+<rm@joyent.com> <rm@fingolfin.org>
+<ryan@joyent.com> <ry@tinyclouds.org>
+<bertbelder@gmail.com> <info@2bs.nl>
+<alan@prettyrobots.com> <alan@blogometer.com>
+San-Tai Hsu <vanilla@fatpipi.com>
@@ -0,0 +1,23 @@
+# Authors ordered by first contribution.
+Ryan Dahl <ryan@joyent.com>
+Bert Belder <bertbelder@gmail.com>
+Josh Roesslein <jroesslein@gmail.com>
+Alan Gutierrez <alan@prettyrobots.com>
+Joshua Peek <josh@joshpeek.com>
+Igor Zinkovsky <igorzi@microsoft.com>
+San-Tai Hsu <vanilla@fatpipi.com>
+Ben Noordhuis <info@bnoordhuis.nl>
+Henry Rawas <henryr@schakra.com>
+Robert Mustacchi <rm@joyent.com>
+Matt Stevens <matt@alloysoft.com>
+Paul Querna <pquerna@apache.org>
+Shigeki Ohtsu <ohtsu@iij.ad.jp>
+Tom Hughes <tom.hughes@palm.com>
+Peter Bright <drpizza@quiscalusmexicanus.org>
+Jeroen Janssen <jeroen.janssen@gmail.com>
+Andrea Lattuada <ndr.lattuada@gmail.com>
+Augusto Henrique Hentz <ahhentz@gmail.com>
+Clifford Heath <clifford.heath@gmail.com>
+Jorge Chamorro Bieling <jorge@jorgechamorro.com>
+Luis Lavena <luislavena@gmail.com>
+Matthew Sporleder <msporleder@gmail.com>
@@ -0,0 +1,40 @@
+libuv is part of the Node project: http://nodejs.org/
+libuv may be distributed alone under Node's license:
+
+====
+
+Copyright Joyent, Inc. and other Node contributors. All rights reserved.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
+
+====
+
+This license applies to all parts of libuv that are not externally
+maintained libraries.
+
+The externally maintained libraries used by libuv are:
+
+ - tree.h (from FreeBSD), copyright Niels Provos. Two clause BSD license.
+
+ - ngx_queue.h (from Nginx), copyright Igor Sysoev. Two clause BSD license.
+
+ - libev, located at ev/ is copyright Marc Alexander Lehmann, and
+ dual-licensed under the MIT license and GPL2.
+
+ - libeio, located at eio/ is copyright Marc Alexander Lehmann, and
+ dual-licensed under the MIT license and GPL2.
@@ -0,0 +1,119 @@
+# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+
+uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
+
+ifdef MSVC
+uname_S := MINGW
+endif
+
+CPPFLAGS += -Iinclude -Iinclude/uv-private
+
+CARES_OBJS =
+CARES_OBJS += src/ares/ares__close_sockets.o
+CARES_OBJS += src/ares/ares__get_hostent.o
+CARES_OBJS += src/ares/ares__read_line.o
+CARES_OBJS += src/ares/ares__timeval.o
+CARES_OBJS += src/ares/ares_cancel.o
+CARES_OBJS += src/ares/ares_data.o
+CARES_OBJS += src/ares/ares_destroy.o
+CARES_OBJS += src/ares/ares_expand_name.o
+CARES_OBJS += src/ares/ares_expand_string.o
+CARES_OBJS += src/ares/ares_fds.o
+CARES_OBJS += src/ares/ares_free_hostent.o
+CARES_OBJS += src/ares/ares_free_string.o
+CARES_OBJS += src/ares/ares_gethostbyaddr.o
+CARES_OBJS += src/ares/ares_gethostbyname.o
+CARES_OBJS += src/ares/ares_getnameinfo.o
+CARES_OBJS += src/ares/ares_getopt.o
+CARES_OBJS += src/ares/ares_getsock.o
+CARES_OBJS += src/ares/ares_init.o
+CARES_OBJS += src/ares/ares_library_init.o
+CARES_OBJS += src/ares/ares_llist.o
+CARES_OBJS += src/ares/ares_mkquery.o
+CARES_OBJS += src/ares/ares_nowarn.o
+CARES_OBJS += src/ares/ares_options.o
+CARES_OBJS += src/ares/ares_parse_a_reply.o
+CARES_OBJS += src/ares/ares_parse_aaaa_reply.o
+CARES_OBJS += src/ares/ares_parse_mx_reply.o
+CARES_OBJS += src/ares/ares_parse_ns_reply.o
+CARES_OBJS += src/ares/ares_parse_ptr_reply.o
+CARES_OBJS += src/ares/ares_parse_srv_reply.o
+CARES_OBJS += src/ares/ares_parse_txt_reply.o
+CARES_OBJS += src/ares/ares_process.o
+CARES_OBJS += src/ares/ares_query.o
+CARES_OBJS += src/ares/ares_search.o
+CARES_OBJS += src/ares/ares_send.o
+CARES_OBJS += src/ares/ares_strcasecmp.o
+CARES_OBJS += src/ares/ares_strdup.o
+CARES_OBJS += src/ares/ares_strerror.o
+CARES_OBJS += src/ares/ares_timeout.o
+CARES_OBJS += src/ares/ares_version.o
+CARES_OBJS += src/ares/ares_writev.o
+CARES_OBJS += src/ares/bitncmp.o
+CARES_OBJS += src/ares/inet_net_pton.o
+CARES_OBJS += src/ares/inet_ntop.o
+
+ifneq (,$(findstring MINGW,$(uname_S)))
+include config-mingw.mk
+else
+include config-unix.mk
+endif
+
+TESTS=test/echo-server.c test/test-*.c
+BENCHMARKS=test/echo-server.c test/dns-server.c test/benchmark-*.c
+
+all: uv.a test/run-tests$(E) test/run-benchmarks$(E)
+
+$(CARES_OBJS): %.o: %.c
+ $(CC) -o $*.o -c $(CFLAGS) $(CPPFLAGS) $< -DHAVE_CONFIG_H
+
+test/run-tests$(E): test/*.h test/run-tests.c $(RUNNER_SRC) test/runner-unix.c $(TESTS) uv.a
+ $(CC) $(CPPFLAGS) $(RUNNER_CFLAGS) -o test/run-tests test/run-tests.c \
+ test/runner.c $(RUNNER_SRC) $(TESTS) uv.a $(RUNNER_LIBS) $(RUNNER_LINKFLAGS)
+
+test/run-benchmarks$(E): test/*.h test/run-benchmarks.c test/runner.c $(RUNNER_SRC) $(BENCHMARKS) uv.a
+ $(CC) $(CPPFLAGS) $(RUNNER_CFLAGS) -o test/run-benchmarks test/run-benchmarks.c \
+ test/runner.c $(RUNNER_SRC) $(BENCHMARKS) uv.a $(RUNNER_LIBS) $(RUNNER_LINKFLAGS)
+
+test/echo.o: test/echo.c test/echo.h
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c test/echo.c -o test/echo.o
+
+
+.PHONY: clean clean-platform distclean distclean-platform test bench
+
+
+test: test/run-tests$(E)
+ test/run-tests
+
+#test-%: test/run-tests$(E)
+# test/run-tests $(@:test-%=%)
+
+bench: test/run-benchmarks$(E)
+ test/run-benchmarks
+
+#bench-%: test/run-benchmarks$(E)
+# test/run-benchmarks $(@:bench-%=%)
+
+clean: clean-platform
+ $(RM) -f src/*.o *.a test/run-tests$(E) test/run-benchmarks$(E)
+
+distclean: distclean-platform
+ $(RM) -f src/*.o *.a test/run-tests$(E) test/run-benchmarks$(E)
@@ -0,0 +1,50 @@
+This is the new networking layer for Node. Its purpose is to abstract
+IOCP on windows and libev on Unix systems. We intend to eventually contain
+all platform differences in this library.
+
+http://nodejs.org/
+
+= Build Instructions
+
+For GCC (including MinGW) there are two methods building: via normal
+makefiles or via GYP. GYP is a meta-build system which can generate MSVS,
+Makefile, and XCode backends. It is best used for integration into other
+projects. The old (more stable) system is using Makefiles.
+
+To build via Makefile simply execute:
+
+ make
+
+To build with Visual Studio run the vcbuilds.bat file which will
+checkout the GYP code into build/gyp and generate the uv.sln and
+related files.
+
+Windows users can also build from cmd-line using msbuild. This is
+done by running vcbuild.bat from Visual Studio command prompt.
+
+To have GYP generate build script for another system you will need to
+checkout GYP into the project tree manually:
+
+ svn co http://gyp.googlecode.com/svn/trunk build/gyp
+
+Unix users run
+
+ ./gyp_uv -f make
+ make
+
+Macintosh users run
+
+ ./gyp_uv -f xcode
+ xcodebuild -project uv.xcodeproj -configuration Release -target All
+
+
+= Supported Platforms
+
+Microsoft Windows operating systems since Windows XP SP2. It can be built
+with either Visual Studio or MinGW.
+
+Linux 2.6 using the GCC toolchain.
+
+MacOS using the GCC or XCode toolchain.
+
+Solaris 121 and later using GCC toolchain.
Oops, something went wrong.

0 comments on commit 727c791

Please sign in to comment.