#include <assert.h>#include <stdarg.h>#include <stddef.h>#include <stdint.h>#include "uv.h"#include "uv/tree.h"#include "queue.h"#include "strscpy.h"

Go to the source code of this file.
Macros | |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| #define | container_of(ptr, type, member) ((type *) ((char *) (ptr) - offsetof(type, member))) |
| #define | STATIC_ASSERT(expr) void uv__static_assert(int static_assert_failed[1 - 2 * !(expr)]) |
| #define | uv__active_handle_add(h) |
| #define | uv__active_handle_rm(h) |
| #define | UV__ERR(x) (x) |
| #define | uv__handle_init(loop_, h, type_) |
| #define | uv__handle_platform_init(h) ((h)->next_closing = NULL) |
| #define | uv__handle_ref(h) |
| #define | uv__handle_start(h) |
| #define | uv__handle_stop(h) |
| #define | uv__handle_unref(h) |
| #define | uv__has_active_handles(loop) ((loop)->active_handles > 0) |
| #define | uv__has_active_reqs(loop) ((loop)->active_reqs.count > 0) |
| #define | uv__has_ref(h) (((h)->flags & UV_HANDLE_REF) != 0) |
| #define | uv__is_active(h) (((h)->flags & UV_HANDLE_ACTIVE) != 0) |
| #define | uv__is_closing(h) (((h)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0) |
| #define | uv__req_init(loop, req, typ) |
| #define | uv__req_register(loop, req) |
| #define | uv__req_unregister(loop, req) |
| #define | UV_REQ_INIT(req, typ) |
Definition at line 55 of file uv-common.h.
Definition at line 57 of file uv-common.h.
| #define STATIC_ASSERT | ( | expr | ) | void uv__static_assert(int static_assert_failed[1 - 2 * !(expr)]) |
Definition at line 60 of file uv-common.h.
| #define uv__active_handle_add | ( | h | ) |
Definition at line 223 of file uv-common.h.
| #define uv__active_handle_rm | ( | h | ) |
Definition at line 229 of file uv-common.h.
Definition at line 48 of file uv-common.h.
| #define uv__handle_init | ( | loop_, | |
| h, | |||
| type_ | |||
| ) |
Definition at line 284 of file uv-common.h.
| #define uv__handle_platform_init | ( | h | ) | ((h)->next_closing = NULL) |
Definition at line 281 of file uv-common.h.
| #define uv__handle_ref | ( | h | ) |
Definition at line 257 of file uv-common.h.
| #define uv__handle_start | ( | h | ) |
Definition at line 241 of file uv-common.h.
| #define uv__handle_stop | ( | h | ) |
Definition at line 249 of file uv-common.h.
| #define uv__handle_unref | ( | h | ) |
Definition at line 266 of file uv-common.h.
Definition at line 220 of file uv-common.h.
| #define uv__has_active_reqs | ( | loop | ) | ((loop)->active_reqs.count > 0) |
Definition at line 204 of file uv-common.h.
| #define uv__has_ref | ( | h | ) | (((h)->flags & UV_HANDLE_REF) != 0) |
Definition at line 275 of file uv-common.h.
| #define uv__is_active | ( | h | ) | (((h)->flags & UV_HANDLE_ACTIVE) != 0) |
Definition at line 235 of file uv-common.h.
| #define uv__is_closing | ( | h | ) | (((h)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0) |
Definition at line 238 of file uv-common.h.
Definition at line 312 of file uv-common.h.
Definition at line 207 of file uv-common.h.
Definition at line 213 of file uv-common.h.
| #define UV_REQ_INIT | ( | req, | |
| typ | |||
| ) |
Definition at line 305 of file uv-common.h.
| anonymous enum |
Definition at line 64 of file uv-common.h.
| enum uv__work_kind |
| Enumerator | |
|---|---|
| UV__WORK_CPU | |
| UV__WORK_FAST_IO | |
| UV__WORK_SLOW_IO | |
Definition at line 178 of file uv-common.h.
| void* uv__calloc | ( | size_t | count, |
| size_t | size | ||
| ) |
Definition at line 92 of file uv-common.c.
Definition at line 543 of file uv-common.c.
| void uv__free | ( | void * | ptr | ) |
Definition at line 81 of file uv-common.c.
| uv_dirent_type_t uv__fs_get_dirent_type | ( | uv__dirent_t * | dent | ) |
Definition at line 658 of file uv-common.c.
| void uv__fs_poll_close | ( | uv_fs_poll_t * | handle | ) |
| void uv__fs_readdir_cleanup | ( | uv_fs_t * | req | ) |
Definition at line 694 of file uv-common.c.
| void uv__fs_scandir_cleanup | ( | uv_fs_t * | req | ) |
Definition at line 605 of file uv-common.c.
Definition at line 42 of file unix/getaddrinfo.c.
| int uv__loop_configure | ( | uv_loop_t * | loop, |
| uv_loop_option | option, | ||
| va_list | ap | ||
| ) |
| void* uv__malloc | ( | size_t | size | ) |
Definition at line 75 of file uv-common.c.
| void* uv__realloc | ( | void * | ptr, |
| size_t | size | ||
| ) |
Definition at line 96 of file uv-common.c.
| void* uv__reallocf | ( | void * | ptr, |
| size_t | size | ||
| ) |
Definition at line 103 of file uv-common.c.
| int uv__socket_sockopt | ( | uv_handle_t * | handle, |
| int | optname, | ||
| int * | value | ||
| ) |
Definition at line 184 of file unix/core.c.
| char* uv__strdup | ( | const char * | s | ) |
Definition at line 55 of file uv-common.c.
| char* uv__strndup | ( | const char * | s, |
| size_t | n | ||
| ) |
Definition at line 63 of file uv-common.c.
| int uv__tcp_bind | ( | uv_tcp_t * | tcp, |
| const struct sockaddr * | addr, | ||
| unsigned int | addrlen, | ||
| unsigned int | flags | ||
| ) |
Definition at line 148 of file unix/tcp.c.
| int uv__tcp_connect | ( | uv_connect_t * | req, |
| uv_tcp_t * | handle, | ||
| const struct sockaddr * | addr, | ||
| unsigned int | addrlen, | ||
| uv_connect_cb | cb | ||
| ) |
Definition at line 204 of file unix/tcp.c.
| void uv__timer_close | ( | uv_timer_t * | handle | ) |
| int uv__udp_bind | ( | uv_udp_t * | handle, |
| const struct sockaddr * | addr, | ||
| unsigned int | addrlen, | ||
| unsigned int | flags | ||
| ) |
Definition at line 503 of file unix/udp.c.
Definition at line 605 of file unix/udp.c.
Definition at line 628 of file unix/udp.c.
Definition at line 363 of file uv-common.c.
| int uv__udp_recv_start | ( | uv_udp_t * | handle, |
| uv_alloc_cb | alloccb, | ||
| uv_udp_recv_cb | recv_cb | ||
| ) |
Definition at line 1304 of file unix/udp.c.
Definition at line 1329 of file unix/udp.c.
| int uv__udp_send | ( | uv_udp_send_t * | req, |
| uv_udp_t * | handle, | ||
| const uv_buf_t | bufs[], | ||
| unsigned int | nbufs, | ||
| const struct sockaddr * | addr, | ||
| unsigned int | addrlen, | ||
| uv_udp_send_cb | send_cb | ||
| ) |
Definition at line 649 of file unix/udp.c.
| int uv__udp_try_send | ( | uv_udp_t * | handle, |
| const uv_buf_t | bufs[], | ||
| unsigned int | nbufs, | ||
| const struct sockaddr * | addr, | ||
| unsigned int | addrlen | ||
| ) |
Definition at line 715 of file unix/udp.c.
| void uv__work_done | ( | uv_async_t * | handle | ) |
Definition at line 295 of file threadpool.c.
| void uv__work_submit | ( | uv_loop_t * | loop, |
| struct uv__work * | w, | ||
| enum uv__work_kind | kind, | ||
| void(*)(struct uv__work *w) | work, | ||
| void(*)(struct uv__work *w, int status) | done | ||
| ) |
Definition at line 256 of file threadpool.c.