summaryrefslogtreecommitdiff
path: root/deps/uv/src/uv-common.c
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-04-29 00:22:01 +0200
committerBert Belder <bertbelder@gmail.com>2012-04-29 00:22:01 +0200
commitd2dd9d108d6bd61ac49522450b98ad57eac5be45 (patch)
treea53bd3b01637cff18fe01552f6a3cf006189929f /deps/uv/src/uv-common.c
parentc8a10e97c8def4c6a89f34f655b675d4204e16d4 (diff)
downloadandroid-node-v8-d2dd9d108d6bd61ac49522450b98ad57eac5be45.tar.gz
android-node-v8-d2dd9d108d6bd61ac49522450b98ad57eac5be45.tar.bz2
android-node-v8-d2dd9d108d6bd61ac49522450b98ad57eac5be45.zip
uv: upgrade to e2cae340a6
Diffstat (limited to 'deps/uv/src/uv-common.c')
-rw-r--r--deps/uv/src/uv-common.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/uv/src/uv-common.c b/deps/uv/src/uv-common.c
index 2e424a9cd6..c8192bd7db 100644
--- a/deps/uv/src/uv-common.c
+++ b/deps/uv/src/uv-common.c
@@ -32,6 +32,25 @@
#include "ares/inet_net_pton.h"
#include "ares/inet_ntop.h"
+#define XX(uc, lc) case UV_##uc: return sizeof(uv_##lc##_t);
+
+size_t uv_handle_size(uv_handle_type type) {
+ switch (type) {
+ UV_HANDLE_TYPE_MAP(XX)
+ default:
+ return -1;
+ }
+}
+
+size_t uv_req_size(uv_req_type type) {
+ switch(type) {
+ UV_REQ_TYPE_MAP(XX)
+ default:
+ return -1;
+ }
+}
+
+#undef XX
size_t uv_strlcpy(char* dst, const char* src, size_t size) {
size_t n;