summaryrefslogtreecommitdiff
path: root/deps/uv/src/uv-common.c
diff options
context:
space:
mode:
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;