#include "uv-common.h"
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <sys/socket.h>
#include <poll.h>
Go to the source code of this file.
Classes | |
struct | uv__stream_queued_fds_s |
Macros | |
#define | ACCESS_ONCE(type, var) (*(volatile type*) &(var)) |
#define | HAVE_MMSG 0 |
#define | ROUND_UP(a, b) ((a) % (b) ? ((a) + (b)) - ((a) % (b)) : (a)) |
#define | SAVE_ERRNO(block) |
#define | UNREACHABLE() |
#define | uv__cloexec uv__cloexec_fcntl |
#define | UV__F_NONBLOCK 1 |
#define | uv__nonblock uv__nonblock_fcntl |
#define | UV__PATH_MAX 8192 |
#define | UV__POLLPRI 0 |
#define | UV__POLLRDHUP 0x2000 |
#define | uv__stream_fd(handle) ((handle)->io_watcher.fd) |
#define | UV_DESTRUCTOR(declaration) declaration |
#define | UV_UNUSED(declaration) declaration |
Typedefs | |
typedef int(* | uv__peersockfunc) (int, struct sockaddr *, socklen_t *) |
typedef struct uv__stream_queued_fds_s | uv__stream_queued_fds_t |
Enumerations | |
enum | { UV_LOOP_BLOCK_SIGPROF = 1 } |
enum | { UV__EXCLUDE_IFPHYS, UV__EXCLUDE_IFADDR } |
enum | uv_clocktype_t { UV_CLOCK_PRECISE = 0, UV_CLOCK_FAST = 1 } |
Definition at line 81 of file third_party/libuv/src/unix/internal.h.
#define HAVE_MMSG 0 |
Definition at line 350 of file third_party/libuv/src/unix/internal.h.
Definition at line 84 of file third_party/libuv/src/unix/internal.h.
#define SAVE_ERRNO | ( | block | ) |
Definition at line 94 of file third_party/libuv/src/unix/internal.h.
#define UNREACHABLE | ( | ) |
Definition at line 87 of file third_party/libuv/src/unix/internal.h.
#define uv__cloexec uv__cloexec_fcntl |
Definition at line 173 of file third_party/libuv/src/unix/internal.h.
#define UV__F_NONBLOCK 1 |
Definition at line 291 of file third_party/libuv/src/unix/internal.h.
#define uv__nonblock uv__nonblock_fcntl |
Definition at line 174 of file third_party/libuv/src/unix/internal.h.
#define UV__PATH_MAX 8192 |
Definition at line 70 of file third_party/libuv/src/unix/internal.h.
#define UV__POLLPRI 0 |
Definition at line 126 of file third_party/libuv/src/unix/internal.h.
#define UV__POLLRDHUP 0x2000 |
Definition at line 120 of file third_party/libuv/src/unix/internal.h.
Definition at line 285 of file third_party/libuv/src/unix/internal.h.
#define UV_DESTRUCTOR | ( | declaration | ) | declaration |
Definition at line 112 of file third_party/libuv/src/unix/internal.h.
#define UV_UNUSED | ( | declaration | ) | declaration |
Definition at line 113 of file third_party/libuv/src/unix/internal.h.
Definition at line 324 of file third_party/libuv/src/unix/internal.h.
typedef struct uv__stream_queued_fds_s uv__stream_queued_fds_t |
Definition at line 137 of file third_party/libuv/src/unix/internal.h.
anonymous enum |
Enumerator | |
---|---|
UV_LOOP_BLOCK_SIGPROF |
Definition at line 140 of file third_party/libuv/src/unix/internal.h.
anonymous enum |
Enumerator | |
---|---|
UV__EXCLUDE_IFPHYS | |
UV__EXCLUDE_IFADDR |
Definition at line 145 of file third_party/libuv/src/unix/internal.h.
enum uv_clocktype_t |
Enumerator | |
---|---|
UV_CLOCK_PRECISE | |
UV_CLOCK_FAST |
Definition at line 150 of file third_party/libuv/src/unix/internal.h.
Definition at line 477 of file unix/core.c.
void uv__async_close | ( | uv_async_t * | handle | ) |
Definition at line 102 of file unix/async.c.
Definition at line 217 of file unix/async.c.
void uv__async_stop | ( | uv_loop_t * | loop | ) |
Definition at line 227 of file unix/async.c.
void uv__check_close | ( | uv_check_t * | handle | ) |
Definition at line 627 of file unix/core.c.
Definition at line 581 of file unix/core.c.
Definition at line 557 of file unix/core.c.
Definition at line 518 of file unix/core.c.
Definition at line 538 of file unix/core.c.
Definition at line 1019 of file unix/core.c.
Definition at line 953 of file unix/core.c.
void uv__fs_event_close | ( | uv_fs_event_t * | handle | ) |
int uv__getiovmax | ( | void | ) |
Definition at line 219 of file unix/core.c.
int uv__getpwuid_r | ( | uv_passwd_t * | pwd | ) |
Definition at line 1134 of file unix/core.c.
int uv__getsockpeername | ( | const uv_handle_t * | handle, |
uv__peersockfunc | func, | ||
struct sockaddr * | name, | ||
int * | namelen | ||
) |
Definition at line 1485 of file unix/core.c.
uv_handle_type uv__handle_type | ( | int | fd | ) |
Definition at line 958 of file unix/stream.c.
uint64_t uv__hrtime | ( | uv_clocktype_t | type | ) |
Definition at line 62 of file aix-common.c.
void uv__idle_close | ( | uv_idle_t * | handle | ) |
Definition at line 946 of file unix/core.c.
Definition at line 930 of file unix/core.c.
Definition at line 940 of file unix/core.c.
Definition at line 853 of file unix/core.c.
Definition at line 870 of file unix/core.c.
Definition at line 898 of file unix/core.c.
void uv__make_close_pending | ( | uv_handle_t * | handle | ) |
Definition at line 212 of file unix/core.c.
Definition at line 142 of file unix/process.c.
Definition at line 596 of file unix/core.c.
Definition at line 566 of file unix/core.c.
Definition at line 991 of file unix/core.c.
FILE* uv__open_file | ( | const char * | path | ) |
Definition at line 461 of file unix/core.c.
void uv__pipe_close | ( | uv_pipe_t * | handle | ) |
Definition at line 120 of file unix/pipe.c.
void uv__poll_close | ( | uv_poll_t * | handle | ) |
Definition at line 148 of file unix/poll.c.
void uv__prepare_close | ( | uv_prepare_t * | handle | ) |
void uv__process_close | ( | uv_process_t * | handle | ) |
Definition at line 590 of file unix/process.c.
int uv__random_devurandom | ( | void * | buf, |
size_t | buflen | ||
) |
Definition at line 86 of file random-devurandom.c.
int uv__random_getentropy | ( | void * | buf, |
size_t | buflen | ||
) |
Definition at line 39 of file random-getentropy.c.
int uv__random_getrandom | ( | void * | buf, |
size_t | buflen | ||
) |
Definition at line 56 of file random-getrandom.c.
Definition at line 32 of file random-devurandom.c.
Definition at line 658 of file unix/core.c.
void uv__run_check | ( | uv_loop_t * | loop | ) |
void uv__run_idle | ( | uv_loop_t * | loop | ) |
void uv__run_prepare | ( | uv_loop_t * | loop | ) |
Definition at line 528 of file unix/stream.c.
void uv__signal_close | ( | uv_signal_t * | handle | ) |
Definition at line 333 of file unix/signal.c.
void uv__signal_global_once_init | ( | void | ) |
Definition at line 111 of file unix/signal.c.
void uv__signal_loop_cleanup | ( | uv_loop_t * | loop | ) |
Definition at line 289 of file unix/signal.c.
Definition at line 279 of file unix/signal.c.
void uv__stream_close | ( | uv_stream_t * | handle | ) |
Definition at line 1633 of file unix/stream.c.
void uv__stream_destroy | ( | uv_stream_t * | stream | ) |
Definition at line 458 of file unix/stream.c.
void uv__stream_init | ( | uv_loop_t * | loop, |
uv_stream_t * | stream, | ||
uv_handle_type | type | ||
) |
Definition at line 85 of file unix/stream.c.
int uv__stream_open | ( | uv_stream_t * | , |
int | fd, | ||
int | flags | ||
) |
Definition at line 406 of file unix/stream.c.
void uv__tcp_close | ( | uv_tcp_t * | handle | ) |
Definition at line 456 of file unix/tcp.c.
Definition at line 377 of file unix/tcp.c.
Definition at line 370 of file unix/tcp.c.
void uv__udp_close | ( | uv_udp_t * | handle | ) |
Definition at line 85 of file unix/udp.c.
void uv__udp_finish_close | ( | uv_udp_t * | handle | ) |
Definition at line 96 of file unix/udp.c.
int uv_pipe_listen | ( | uv_pipe_t * | handle, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 94 of file unix/pipe.c.
int uv_tcp_listen | ( | uv_tcp_t * | tcp, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 328 of file unix/tcp.c.
UV_UNUSED | ( | static char * | uv__basename_rconst char *path | ) |
Definition at line 310 of file third_party/libuv/src/unix/internal.h.
UV_UNUSED | ( | static void | uv__update_timeuv_loop_t *loop | ) |
Definition at line 304 of file third_party/libuv/src/unix/internal.h.