name 64 include/tree.h #define SPLAY_HEAD(name, type) \ name 121 include/tree.h #define SPLAY_PROTOTYPE(name, type, field, cmp) \ name 122 include/tree.h void name##_SPLAY(struct name *, struct type *); \ name 123 include/tree.h void name##_SPLAY_MINMAX(struct name *, int); \ name 124 include/tree.h struct type *name##_SPLAY_INSERT(struct name *, struct type *); \ name 125 include/tree.h struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \ name 129 include/tree.h name##_SPLAY_FIND(struct name *head, struct type *elm) \ name 133 include/tree.h name##_SPLAY(head, elm); \ name 140 include/tree.h name##_SPLAY_NEXT(struct name *head, struct type *elm) \ name 142 include/tree.h name##_SPLAY(head, elm); \ name 154 include/tree.h name##_SPLAY_MIN_MAX(struct name *head, int val) \ name 156 include/tree.h name##_SPLAY_MINMAX(head, val); \ name 163 include/tree.h #define SPLAY_GENERATE(name, type, field, cmp) \ name 165 include/tree.h name##_SPLAY_INSERT(struct name *head, struct type *elm) \ name 171 include/tree.h name##_SPLAY(head, elm); \ name 189 include/tree.h name##_SPLAY_REMOVE(struct name *head, struct type *elm) \ name 194 include/tree.h name##_SPLAY(head, elm); \ name 201 include/tree.h name##_SPLAY(head, elm); \ name 210 include/tree.h name##_SPLAY(struct name *head, struct type *elm) \ name 247 include/tree.h void name##_SPLAY_MINMAX(struct name *head, int __comp) \ name 283 include/tree.h #define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y) name 284 include/tree.h #define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y) name 285 include/tree.h #define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y) name 286 include/tree.h #define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y) name 287 include/tree.h #define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \ name 288 include/tree.h : name##_SPLAY_MIN_MAX(x, SPLAY_NEGINF)) name 289 include/tree.h #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ name 290 include/tree.h : name##_SPLAY_MIN_MAX(x, SPLAY_INF)) name 292 include/tree.h #define SPLAY_FOREACH(x, name, head) \ name 293 include/tree.h for ((x) = SPLAY_MIN(name, head); \ name 295 include/tree.h (x) = SPLAY_NEXT(name, head, x)) name 298 include/tree.h #define RB_HEAD(name, type) \ name 383 include/tree.h #define RB_PROTOTYPE(name, type, field, cmp) \ name 384 include/tree.h RB_PROTOTYPE_INTERNAL(name, type, field, cmp,) name 385 include/tree.h #define RB_PROTOTYPE_STATIC(name, type, field, cmp) \ name 386 include/tree.h RB_PROTOTYPE_INTERNAL(name, type, field, cmp, UV__UNUSED static) name 387 include/tree.h #define RB_PROTOTYPE_INTERNAL(name, type, field, cmp, attr) \ name 388 include/tree.h attr void name##_RB_INSERT_COLOR(struct name *, struct type *); \ name 389 include/tree.h attr void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\ name 390 include/tree.h attr struct type *name##_RB_REMOVE(struct name *, struct type *); \ name 391 include/tree.h attr struct type *name##_RB_INSERT(struct name *, struct type *); \ name 392 include/tree.h attr struct type *name##_RB_FIND(struct name *, struct type *); \ name 393 include/tree.h attr struct type *name##_RB_NFIND(struct name *, struct type *); \ name 394 include/tree.h attr struct type *name##_RB_NEXT(struct type *); \ name 395 include/tree.h attr struct type *name##_RB_PREV(struct type *); \ name 396 include/tree.h attr struct type *name##_RB_MINMAX(struct name *, int); \ name 402 include/tree.h #define RB_GENERATE(name, type, field, cmp) \ name 403 include/tree.h RB_GENERATE_INTERNAL(name, type, field, cmp,) name 404 include/tree.h #define RB_GENERATE_STATIC(name, type, field, cmp) \ name 405 include/tree.h RB_GENERATE_INTERNAL(name, type, field, cmp, UV__UNUSED static) name 406 include/tree.h #define RB_GENERATE_INTERNAL(name, type, field, cmp, attr) \ name 408 include/tree.h name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \ name 452 include/tree.h name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, \ name 531 include/tree.h name##_RB_REMOVE(struct name *head, struct type *elm) \ name 593 include/tree.h name##_RB_REMOVE_COLOR(head, parent, child); \ name 599 include/tree.h name##_RB_INSERT(struct name *head, struct type *elm) \ name 624 include/tree.h name##_RB_INSERT_COLOR(head, elm); \ name 630 include/tree.h name##_RB_FIND(struct name *head, struct type *elm) \ name 648 include/tree.h name##_RB_NFIND(struct name *head, struct type *elm) \ name 669 include/tree.h name##_RB_NEXT(struct type *elm) \ name 691 include/tree.h name##_RB_PREV(struct type *elm) \ name 712 include/tree.h name##_RB_MINMAX(struct name *head, int val) \ name 729 include/tree.h #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) name 730 include/tree.h #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) name 731 include/tree.h #define RB_FIND(name, x, y) name##_RB_FIND(x, y) name 732 include/tree.h #define RB_NFIND(name, x, y) name##_RB_NFIND(x, y) name 733 include/tree.h #define RB_NEXT(name, x, y) name##_RB_NEXT(y) name 734 include/tree.h #define RB_PREV(name, x, y) name##_RB_PREV(y) name 735 include/tree.h #define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF) name 736 include/tree.h #define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF) name 738 include/tree.h #define RB_FOREACH(x, name, head) \ name 739 include/tree.h for ((x) = RB_MIN(name, head); \ name 741 include/tree.h (x) = name##_RB_NEXT(x)) name 743 include/tree.h #define RB_FOREACH_FROM(x, name, y) \ name 745 include/tree.h ((x) != NULL) && ((y) = name##_RB_NEXT(x), (x) != NULL); \ name 748 include/tree.h #define RB_FOREACH_SAFE(x, name, head, y) \ name 749 include/tree.h for ((x) = RB_MIN(name, head); \ name 750 include/tree.h ((x) != NULL) && ((y) = name##_RB_NEXT(x), (x) != NULL); \ name 753 include/tree.h #define RB_FOREACH_REVERSE(x, name, head) \ name 754 include/tree.h for ((x) = RB_MAX(name, head); \ name 756 include/tree.h (x) = name##_RB_PREV(x)) name 758 include/tree.h #define RB_FOREACH_REVERSE_FROM(x, name, y) \ name 760 include/tree.h ((x) != NULL) && ((y) = name##_RB_PREV(x), (x) != NULL); \ name 763 include/tree.h #define RB_FOREACH_REVERSE_SAFE(x, name, head, y) \ name 764 include/tree.h for ((x) = RB_MAX(name, head); \ name 765 include/tree.h ((x) != NULL) && ((y) = name##_RB_PREV(x), (x) != NULL); \ name 117 include/uv-win.h const struct sockaddr* name, name 432 include/uv-win.h WCHAR* name; \ name 758 include/uv.h UV_EXTERN int uv_tcp_getsockname(uv_tcp_t* handle, struct sockaddr* name, name 760 include/uv.h UV_EXTERN int uv_tcp_getpeername(uv_tcp_t* handle, struct sockaddr* name, name 879 include/uv.h UV_EXTERN int uv_udp_getsockname(uv_udp_t* handle, struct sockaddr* name, name 1091 include/uv.h UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name); name 1094 include/uv.h const char* name, uv_connect_cb cb); name 1534 include/uv.h char* name; name 1926 include/uv.h UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr); name 2005 include/uv.h #define XX(_, name) uv_ ## name ## _t name; name 236 src/unix/aix.c strcpy(cpu_id.name, FIRST_CPU); name 360 src/unix/aix.c address->name = strdup(p->ifr_name); name 387 src/unix/aix.c free(addresses[i].name); name 33 src/unix/darwin-proctitle.c static int uv__pthread_setname_np(const char* name) { name 34 src/unix/darwin-proctitle.c int (*dynamic_pthread_setname_np)(const char* name); name 43 src/unix/darwin-proctitle.c strncpy(namebuf, name, sizeof(namebuf) - 1); name 271 src/unix/darwin.c address->name = strdup(ent->ifa_name); name 301 src/unix/darwin.c if (strcmp(address->name, ent->ifa_name) == 0) { name 320 src/unix/darwin.c free(addresses[i].name); name 55 src/unix/dl.c int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) { name 57 src/unix/dl.c *ptr = dlsym(lib->handle, name); name 370 src/unix/freebsd.c address->name = strdup(ent->ifa_name); name 400 src/unix/freebsd.c if (strcmp(address->name, ent->ifa_name) == 0) { name 419 src/unix/freebsd.c free(addresses[i].name); name 670 src/unix/linux-core.c address->name = strdup(ent->ifa_name); name 700 src/unix/linux-core.c if (strcmp(address->name, ent->ifa_name) == 0) { name 720 src/unix/linux-core.c free(addresses[i].name); name 25 src/unix/loop-watcher.c #define UV_LOOP_WATCHER_DEFINE(name, type) \ name 26 src/unix/loop-watcher.c int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \ name 28 src/unix/loop-watcher.c handle->name##_cb = NULL; \ name 32 src/unix/loop-watcher.c int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \ name 35 src/unix/loop-watcher.c QUEUE_INSERT_HEAD(&handle->loop->name##_handles, &handle->queue); \ name 36 src/unix/loop-watcher.c handle->name##_cb = cb; \ name 41 src/unix/loop-watcher.c int uv_##name##_stop(uv_##name##_t* handle) { \ name 48 src/unix/loop-watcher.c void uv__run_##name(uv_loop_t* loop) { \ name 49 src/unix/loop-watcher.c uv_##name##_t* h; \ name 51 src/unix/loop-watcher.c QUEUE_FOREACH(q, &loop->name##_handles) { \ name 52 src/unix/loop-watcher.c h = QUEUE_DATA(q, uv_##name##_t, queue); \ name 53 src/unix/loop-watcher.c h->name##_cb(h, 0); \ name 57 src/unix/loop-watcher.c void uv__##name##_close(uv_##name##_t* handle) { \ name 58 src/unix/loop-watcher.c uv_##name##_stop(handle); \ name 315 src/unix/netbsd.c address->name = strdup(ent->ifa_name); name 345 src/unix/netbsd.c if (strcmp(address->name, ent->ifa_name) == 0) { name 363 src/unix/netbsd.c free(addresses[i].name); name 335 src/unix/openbsd.c address->name = strdup(ent->ifa_name); name 365 src/unix/openbsd.c if (strcmp(address->name, ent->ifa_name) == 0) { name 384 src/unix/openbsd.c free(addresses[i].name); name 45 src/unix/pipe.c int uv_pipe_bind(uv_pipe_t* handle, const char* name) { name 62 src/unix/pipe.c pipe_fname = strdup(name); name 69 src/unix/pipe.c name = NULL; name 154 src/unix/pipe.c const char* name, name 172 src/unix/pipe.c uv_strlcpy(saddr.sun_path, name, sizeof(saddr.sun_path)); name 618 src/unix/sunos.c address->name = strdup(ent->ifa_name); name 649 src/unix/sunos.c if (strcmp(address->name, ent->ifa_name) == 0) { name 669 src/unix/sunos.c free(addresses[i].name); name 160 src/unix/tcp.c struct sockaddr* name, name 173 src/unix/tcp.c if (getsockname(uv__stream_fd(handle), name, &socklen)) name 182 src/unix/tcp.c struct sockaddr* name, name 195 src/unix/tcp.c if (getpeername(uv__stream_fd(handle), name, &socklen)) name 587 src/unix/udp.c int uv_udp_getsockname(uv_udp_t* handle, struct sockaddr* name, int* namelen) { name 596 src/unix/udp.c if (getsockname(handle->io_watcher.fd, name, &socklen)) name 105 src/uv-common.c #define UV_ERR_NAME_GEN(name, _) case UV_ ## name: return #name; name 117 src/uv-common.c #define UV_STRERROR_GEN(name, msg) case UV_ ## name: return msg; name 61 src/win/dl.c int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) { name 62 src/win/dl.c *ptr = (void*) GetProcAddress(lib->handle, name); name 702 src/win/fs.c WCHAR* buf = NULL, *ptr, *name; name 745 src/win/fs.c name = ent.cFileName; name 747 src/win/fs.c if (name[0] != L'.' || (name[1] && (name[1] != L'.' || name[2]))) { name 748 src/win/fs.c len = wcslen(name); name 770 src/win/fs.c wcscpy(ptr, name); name 144 src/win/internal.h char* name, size_t nameSize); name 38 src/win/loop-watcher.c #define UV_LOOP_WATCHER_DEFINE(name, NAME) \ name 39 src/win/loop-watcher.c int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \ name 46 src/win/loop-watcher.c int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \ name 48 src/win/loop-watcher.c uv_##name##_t* old_head; \ name 58 src/win/loop-watcher.c old_head = loop->name##_handles; \ name 60 src/win/loop-watcher.c handle->name##_next = old_head; \ name 61 src/win/loop-watcher.c handle->name##_prev = NULL; \ name 64 src/win/loop-watcher.c old_head->name##_prev = handle; \ name 67 src/win/loop-watcher.c loop->name##_handles = handle; \ name 69 src/win/loop-watcher.c handle->name##_cb = cb; \ name 77 src/win/loop-watcher.c int uv_##name##_stop(uv_##name##_t* handle) { \ name 86 src/win/loop-watcher.c if (loop->name##_handles == handle) { \ name 87 src/win/loop-watcher.c loop->name##_handles = handle->name##_next; \ name 91 src/win/loop-watcher.c if (loop->next_##name##_handle == handle) { \ name 92 src/win/loop-watcher.c loop->next_##name##_handle = handle->name##_next; \ name 95 src/win/loop-watcher.c if (handle->name##_prev) { \ name 96 src/win/loop-watcher.c handle->name##_prev->name##_next = handle->name##_next; \ name 98 src/win/loop-watcher.c if (handle->name##_next) { \ name 99 src/win/loop-watcher.c handle->name##_next->name##_prev = handle->name##_prev; \ name 109 src/win/loop-watcher.c void uv_##name##_invoke(uv_loop_t* loop) { \ name 110 src/win/loop-watcher.c uv_##name##_t* handle; \ name 112 src/win/loop-watcher.c (loop)->next_##name##_handle = (loop)->name##_handles; \ name 114 src/win/loop-watcher.c while ((loop)->next_##name##_handle != NULL) { \ name 115 src/win/loop-watcher.c handle = (loop)->next_##name##_handle; \ name 116 src/win/loop-watcher.c (loop)->next_##name##_handle = handle->name##_next; \ name 118 src/win/loop-watcher.c handle->name##_cb(handle, 0); \ name 72 src/win/pipe.c static void uv_unique_pipe_name(char* ptr, char* name, size_t size) { name 73 src/win/pipe.c _snprintf(name, size, "\\\\.\\pipe\\uv\\%p-%d", ptr, GetCurrentProcessId()); name 82 src/win/pipe.c handle->name = NULL; name 103 src/win/pipe.c static HANDLE open_named_pipe(WCHAR* name, DWORD* duplex_flags) { name 110 src/win/pipe.c pipeHandle = CreateFileW(name, name 128 src/win/pipe.c pipeHandle = CreateFileW(name, name 143 src/win/pipe.c pipeHandle = CreateFileW(name, name 162 src/win/pipe.c char* name, size_t nameSize) { name 168 src/win/pipe.c uv_unique_pipe_name(ptr, name, nameSize); name 170 src/win/pipe.c pipeHandle = CreateNamedPipeA(name, name 396 src/win/pipe.c int uv_pipe_bind(uv_pipe_t* handle, const char* name) { name 405 src/win/pipe.c if (!name) { name 429 src/win/pipe.c nameSize = uv_utf8_to_utf16(name, NULL, 0) * sizeof(WCHAR); name 430 src/win/pipe.c handle->name = (WCHAR*)malloc(nameSize); name 431 src/win/pipe.c if (!handle->name) { name 435 src/win/pipe.c if (!uv_utf8_to_utf16(name, handle->name, nameSize / sizeof(WCHAR))) { name 443 src/win/pipe.c handle->accept_reqs[0].pipeHandle = CreateNamedPipeW(handle->name, name 471 src/win/pipe.c if (handle->name) { name 472 src/win/pipe.c free(handle->name); name 473 src/win/pipe.c handle->name = NULL; name 501 src/win/pipe.c while (WaitNamedPipeW(handle->name, 30000)) { name 503 src/win/pipe.c pipeHandle = open_named_pipe(handle->name, &duplex_flags); name 526 src/win/pipe.c const char* name, uv_connect_cb cb) { name 538 src/win/pipe.c nameSize = uv_utf8_to_utf16(name, NULL, 0) * sizeof(WCHAR); name 539 src/win/pipe.c handle->name = (WCHAR*)malloc(nameSize); name 540 src/win/pipe.c if (!handle->name) { name 544 src/win/pipe.c if (!uv_utf8_to_utf16(name, handle->name, nameSize / sizeof(WCHAR))) { name 549 src/win/pipe.c pipeHandle = open_named_pipe(handle->name, &duplex_flags); name 587 src/win/pipe.c if (handle->name) { name 588 src/win/pipe.c free(handle->name); name 589 src/win/pipe.c handle->name = NULL; name 611 src/win/pipe.c if (handle->name) { name 612 src/win/pipe.c free(handle->name); name 613 src/win/pipe.c handle->name = NULL; name 668 src/win/pipe.c req->pipeHandle = CreateNamedPipeW(handle->name, name 152 src/win/process.c const WCHAR* name, name 208 src/win/process.c wcsncpy(result_pos, name, name_len); name 243 src/win/process.c const WCHAR *name, name 253 src/win/process.c name, name_len, name 263 src/win/process.c name, name_len, name 272 src/win/process.c name, name_len, name 788 src/win/tcp.c int uv_tcp_getsockname(uv_tcp_t* handle, struct sockaddr* name, name 800 src/win/tcp.c result = getsockname(handle->socket, name, namelen); name 809 src/win/tcp.c int uv_tcp_getpeername(uv_tcp_t* handle, struct sockaddr* name, name 821 src/win/tcp.c result = getpeername(handle->socket, name, namelen); name 39 src/win/udp.c int uv_udp_getsockname(uv_udp_t* handle, struct sockaddr* name, name 47 src/win/udp.c result = getsockname(handle->socket, name, namelen); name 693 src/win/udp.c #define SOCKOPT_SETTER(name, option4, option6, validate) \ name 694 src/win/udp.c int uv_udp_set_##name(uv_udp_t* handle, int value) { \ name 942 src/win/util.c uv_address->name = name_buf; name 29 test/benchmark-getaddrinfo.c static const char* name = "localhost"; name 61 test/benchmark-getaddrinfo.c r = uv_getaddrinfo(loop, handle, &getaddrinfo_cb, name, NULL, NULL); name 59 test/runner-unix.c int process_start(char* name, char* part, process_info_t* p, int is_helper) { name 98 test/runner-unix.c args[n++] = name; name 111 test/runner-unix.c p->name = strdup(name); name 319 test/runner-unix.c return p->name; name 343 test/runner-unix.c free(p->name); name 31 test/runner-unix.h char* name; name 72 test/runner-win.c int process_start(char *name, char *part, process_info_t *p, int is_helper) { name 122 test/runner-win.c name, name 131 test/runner-win.c name) < 0) { name 155 test/runner-win.c p->name = part; name 292 test/runner-win.c return p->name; name 42 test/runner-win.h char *name; name 39 test/runner.c const char* name) { name 52 test/runner.c name); name 57 test/runner.h #define TEST_DECLARE(name) \ name 58 test/runner.h int run_test_##name(void); name 60 test/runner.h #define TEST_ENTRY(name) \ name 61 test/runner.h { #name, #name, &run_test_##name, 0, 0 }, name 63 test/runner.h #define TEST_OUTPUT_ENTRY(name) \ name 64 test/runner.h { #name, #name, &run_test_##name, 0, 1 }, name 66 test/runner.h #define BENCHMARK_DECLARE(name) \ name 67 test/runner.h int run_benchmark_##name(void); name 69 test/runner.h #define BENCHMARK_ENTRY(name) \ name 70 test/runner.h { #name, #name, &run_benchmark_##name, 0, 0 }, name 72 test/runner.h #define HELPER_DECLARE(name) \ name 73 test/runner.h int run_helper_##name(void); name 75 test/runner.h #define HELPER_ENTRY(task_name, name) \ name 76 test/runner.h { #task_name, #name, &run_helper_##name, 1, 0 }, name 133 test/runner.h int process_start(char *name, char* part, process_info_t *p, int is_helper); name 114 test/task.h #define TEST_IMPL(name) \ name 115 test/task.h int run_test_##name(void); \ name 116 test/task.h int run_test_##name(void) name 118 test/task.h #define BENCHMARK_IMPL(name) \ name 119 test/task.h int run_benchmark_##name(void); \ name 120 test/task.h int run_benchmark_##name(void) name 122 test/task.h #define HELPER_IMPL(name) \ name 123 test/task.h int run_helper_##name(void); \ name 124 test/task.h int run_helper_##name(void) name 45 test/test-fs-event.c static void create_dir(uv_loop_t* loop, const char* name) { name 48 test/test-fs-event.c r = uv_fs_mkdir(loop, &req, name, 0755, NULL); name 53 test/test-fs-event.c static void create_file(uv_loop_t* loop, const char* name) { name 58 test/test-fs-event.c r = uv_fs_open(loop, &req, name, O_WRONLY | O_CREAT, name 68 test/test-fs-event.c static void touch_file(uv_loop_t* loop, const char* name) { name 73 test/test-fs-event.c r = uv_fs_open(loop, &req, name, O_RDWR, 0, NULL); name 489 test/test-fs.c char name[TOO_LONG_NAME_LENGTH + 1]; name 493 test/test-fs.c memset(name, 'a', TOO_LONG_NAME_LENGTH); name 494 test/test-fs.c name[TOO_LONG_NAME_LENGTH] = 0; name 496 test/test-fs.c r = uv_fs_open(loop, &req, name, O_RDONLY, 0, NULL); name 501 test/test-fs.c r = uv_fs_open(loop, &req, name, O_RDONLY, 0, open_nametoolong_cb); name 28 test/test-getaddrinfo.c static const char* name = "localhost"; name 107 test/test-getaddrinfo.c name, name 135 test/test-getaddrinfo.c name, name 65 test/test-ip6-addr.c device_name = address->name; name 73 test/test-platform-output.c printf(" name: %s\n", interfaces[i].name); name 619 test/test-spawn.c char name[64]; name 633 test/test-spawn.c _snprintf(name, sizeof(name), "\\\\.\\pipe\\uv\\%p-%d", &out, GetCurrentProcessId()); name 634 test/test-spawn.c pipe_handle = CreateNamedPipeA(name,