Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv/errno.h"
#include "uv/version.h"
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
#include "uv/unix.h"
Go to the source code of this file.
Classes | |
struct | uv_timespec_t |
struct | uv_stat_t |
struct | uv_req_s |
struct | uv_shutdown_s |
struct | uv_handle_s |
struct | uv_stream_s |
struct | uv_write_s |
struct | uv_tcp_s |
struct | uv_connect_s |
struct | uv_udp_s |
struct | uv_udp_send_s |
struct | uv_tty_s |
struct | uv_pipe_s |
struct | uv_poll_s |
struct | uv_prepare_s |
struct | uv_check_s |
struct | uv_idle_s |
struct | uv_async_s |
struct | uv_timer_s |
struct | uv_getaddrinfo_s |
struct | uv_getnameinfo_s |
struct | uv_stdio_container_s |
struct | uv_process_options_s |
struct | uv_process_s |
struct | uv_work_s |
struct | uv_cpu_times_s |
struct | uv_cpu_info_s |
struct | uv_interface_address_s |
struct | uv_passwd_s |
struct | uv_utsname_s |
struct | uv_statfs_s |
struct | uv_dirent_s |
struct | uv_timeval_t |
struct | uv_timeval64_t |
struct | uv_rusage_t |
struct | uv_env_item_s |
struct | uv_dir_s |
struct | uv_fs_s |
struct | uv_fs_event_s |
struct | uv_fs_poll_s |
struct | uv_signal_s |
struct | uv_random_s |
struct | uv_thread_options_s |
union | uv_any_handle |
union | uv_any_req |
struct | uv_loop_s |
Macros | |
#define | UV_EXTERN /* nothing */ |
#define | UV_ERRNO_MAP(XX) |
#define | UV_HANDLE_TYPE_MAP(XX) |
#define | UV_REQ_TYPE_MAP(XX) |
#define | XX(code, _) UV_ ## code = UV__ ## code, |
#define | XX(uc, lc) UV_##uc, |
#define | XX(uc, lc) UV_##uc, |
#define | UV_REQ_FIELDS |
#define | UV_HANDLE_FIELDS |
#define | UV_STREAM_FIELDS |
#define | UV_PRIORITY_LOW 19 |
#define | UV_PRIORITY_BELOW_NORMAL 10 |
#define | UV_PRIORITY_NORMAL 0 |
#define | UV_PRIORITY_ABOVE_NORMAL -7 |
#define | UV_PRIORITY_HIGH -14 |
#define | UV_PRIORITY_HIGHEST -20 |
#define | UV_MAXHOSTNAMESIZE 256 |
#define | UV_FS_COPYFILE_EXCL 0x0001 |
#define | UV_FS_COPYFILE_FICLONE 0x0002 |
#define | UV_FS_COPYFILE_FICLONE_FORCE 0x0004 |
#define | UV_FS_SYMLINK_DIR 0x0001 |
#define | UV_FS_SYMLINK_JUNCTION 0x0002 |
#define | UV_IF_NAMESIZE (16 + 1) |
#define | XX(_, name) uv_ ## name ## _t name; |
#define UV_HANDLE_FIELDS |
#define UV_HANDLE_TYPE_MAP | ( | XX | ) |
#define UV_REQ_FIELDS |
#define UV_REQ_TYPE_MAP | ( | XX | ) |
#define UV_STREAM_FIELDS |
typedef void(* uv_alloc_cb) (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) |
typedef void(* uv_async_cb) (uv_async_t *handle) |
typedef struct uv_async_s uv_async_t |
typedef void(* uv_check_cb) (uv_check_t *handle) |
typedef struct uv_check_s uv_check_t |
typedef void(* uv_close_cb) (uv_handle_t *handle) |
typedef struct uv_connect_s uv_connect_t |
typedef void(* uv_connection_cb) (uv_stream_t *server, int status) |
typedef struct uv_cpu_info_s uv_cpu_info_t |
typedef struct uv_dirent_s uv_dirent_t |
typedef struct uv_env_item_s uv_env_item_t |
typedef void(* uv_exit_cb) (uv_process_t *, int64_t exit_status, int term_signal) |
typedef struct uv_fs_event_s uv_fs_event_t |
typedef struct uv_fs_poll_s uv_fs_poll_t |
typedef void(* uv_getaddrinfo_cb) (uv_getaddrinfo_t *req, int status, struct addrinfo *res) |
typedef struct uv_getaddrinfo_s uv_getaddrinfo_t |
typedef struct uv_getnameinfo_s uv_getnameinfo_t |
typedef struct uv_handle_s uv_handle_t |
typedef struct uv_interface_address_s uv_interface_address_t |
typedef struct uv_passwd_s uv_passwd_t |
typedef void(* uv_prepare_cb) (uv_prepare_t *handle) |
typedef struct uv_prepare_s uv_prepare_t |
typedef struct uv_process_options_s uv_process_options_t |
typedef struct uv_process_s uv_process_t |
typedef struct uv_random_s uv_random_t |
typedef void(* uv_shutdown_cb) (uv_shutdown_t *req, int status) |
typedef struct uv_shutdown_s uv_shutdown_t |
typedef struct uv_signal_s uv_signal_t |
typedef struct uv_statfs_s uv_statfs_t |
typedef struct uv_stdio_container_s uv_stdio_container_t |
typedef struct uv_stream_s uv_stream_t |
typedef struct uv_thread_options_s uv_thread_options_t |
typedef void(* uv_timer_cb) (uv_timer_t *handle) |
typedef struct uv_timer_s uv_timer_t |
typedef void(* uv_udp_send_cb) (uv_udp_send_t *req, int status) |
typedef struct uv_udp_send_s uv_udp_send_t |
typedef struct uv_utsname_s uv_utsname_t |
typedef void(* uv_walk_cb) (uv_handle_t *handle, void *arg) |
typedef struct uv_write_s uv_write_t |
enum uv_dirent_type_t |
enum uv_errno_t |
enum uv_fs_event |
enum uv_fs_event_flags |
enum uv_fs_type |
Definition at line 1257 of file uv.h.
enum uv_handle_type |
enum uv_loop_option |
enum uv_membership |
enum uv_poll_event |
enum uv_process_flags |
enum uv_req_type |
enum uv_run_mode |
enum uv_stdio_flags |
enum uv_tcp_flags |
enum uv_tty_mode_t |
enum uv_tty_vtermstate_t |
enum uv_udp_flags |
UV_EXTERN int uv_accept | ( | uv_stream_t * | server, |
uv_stream_t * | client | ||
) |
Definition at line 591 of file stream.c.
References assert(), done, err, uv__stream_queued_fds_s::fds, NULL, uv__stream_queued_fds_s::offset, uv__close(), uv__free(), uv__io_start(), uv__stream_open(), UV_HANDLE_BOUND, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_pipe_accept(), uv_tcp_accept(), uv_translate_sys_error(), and uv_udp_open().
Referenced by on_new_connection().
UV_EXTERN int uv_async_init | ( | uv_loop_t * | loop, |
uv_async_t * | async, | ||
uv_async_cb | async_cb | ||
) |
Definition at line 45 of file async.c.
References err, handle, loop, QUEUE_INSERT_TAIL, req, uv__async_start(), uv__handle_init, uv__handle_start, and UV_REQ_INIT.
Referenced by main(), and uv_loop_init().
UV_EXTERN int uv_async_send | ( | uv_async_t * | async | ) |
Definition at line 63 of file async.c.
References ACCESS_ONCE, assert(), handle, loop, POST_COMPLETION_FOR_REQ, uv__async_send(), uv__atomic_exchange_set(), and UV_HANDLE_CLOSING.
Referenced by fake_download(), uv__work_cancel(), and worker().
Definition at line 333 of file core.c.
References loop, QUEUE_EMPTY, uv_loop_s::stop_flag, uv__has_active_handles, uv__has_active_reqs, and uv__next_timeout().
Referenced by uv_run().
UV_EXTERN void uv_barrier_destroy | ( | uv_barrier_t * | barrier | ) |
Definition at line 118 of file thread.c.
References assert(), uv_barrier_t::b, b, uv_barrier_t::mutex, NULL, uv_barrier_t::turnstile1, uv_barrier_t::turnstile2, uv__free(), uv_cond_destroy(), uv_mutex_destroy(), uv_mutex_lock(), uv_mutex_unlock(), and uv_sem_destroy().
Referenced by main().
UV_EXTERN int uv_barrier_init | ( | uv_barrier_t * | barrier, |
unsigned int | count | ||
) |
Definition at line 55 of file thread.c.
References uv_barrier_t::b, b, count, uv_barrier_t::count, err, error(), uv_barrier_t::mutex, uv_barrier_t::n, NULL, uv_barrier_t::turnstile1, uv_barrier_t::turnstile2, uv__free(), uv__malloc(), uv_cond_init(), uv_mutex_destroy(), uv_mutex_init(), uv_sem_destroy(), and uv_sem_init().
Referenced by main().
UV_EXTERN int uv_barrier_wait | ( | uv_barrier_t * | barrier | ) |
Definition at line 89 of file thread.c.
References uv_barrier_t::b, b, uv_barrier_t::count, uv_barrier_t::mutex, uv_barrier_t::n, NULL, uv_barrier_t::turnstile1, uv_barrier_t::turnstile2, uv_cond_signal(), uv_cond_wait(), uv_mutex_lock(), uv_mutex_unlock(), uv_sem_post(), and uv_sem_wait().
Definition at line 157 of file uv-common.c.
References len.
Referenced by alloc_buffer(), echo_read(), main(), on_new_connection(), on_open(), on_type(), uv__build_coalesced_write_req(), uv__pipe_read_data(), uv__pipe_write_ipc(), uv__read(), uv__udp_recvmsg(), uv_process_tcp_read_req(), uv_process_tty_read_raw_req(), uv_process_udp_recv_req(), uv_tcp_queue_read(), uv_tty_queue_read_line(), uv_udp_queue_recv(), and write_data().
Definition at line 358 of file threadpool.c.
References loop, req, and uv__work_cancel().
Referenced by signal_handler().
Definition at line 747 of file core.c.
References chdir, L, NULL, UV__ERR, uv__free(), uv__malloc(), and uv_translate_sys_error().
UV_EXTERN int uv_check_init | ( | uv_loop_t * | , |
uv_check_t * | check | ||
) |
UV_EXTERN int uv_check_start | ( | uv_check_t * | check, |
uv_check_cb | cb | ||
) |
UV_EXTERN int uv_check_stop | ( | uv_check_t * | check | ) |
Referenced by uv_close().
UV_EXTERN void uv_close | ( | uv_handle_t * | handle, |
uv_close_cb | close_cb | ||
) |
Definition at line 108 of file core.c.
References assert(), cb, handle, loop, uv__async_close(), uv__check_close(), uv__fs_event_close(), uv__fs_poll_close(), uv__handle_closing, uv__idle_close(), uv__is_closing, uv__make_close_pending(), uv__pipe_close(), uv__poll_close(), uv__prepare_close(), uv__process_close(), uv__signal_close(), uv__stream_close(), uv__tcp_close(), uv__timer_close(), uv__udp_close(), uv_async_close(), uv_check_stop(), uv_fs_event_close(), UV_HANDLE_CLOSING, uv_idle_stop(), uv_pipe_close(), uv_poll_close(), uv_prepare_stop(), uv_process_close(), uv_signal_close(), uv_tcp_close(), uv_timer_stop(), uv_tty_close(), uv_udp_close(), and uv_want_endgame().
Referenced by after(), cleanup_handles(), close_process_handle(), destroy_curl_context(), echo_read(), eof_timer_destroy(), on_exit(), on_new_connection(), on_read(), poll_cb(), read_stdin(), uv__stream_close(), uv_fs_poll_stop(), and uv_tcp_close_reset().
Definition at line 735 of file thread.c.
References cond, err, ETIMEDOUT, mutex, NULL, timespec::tv_nsec, and timespec::tv_sec.
Referenced by uv__custom_sem_destroy(), uv__threadpool_cleanup(), and uv_barrier_destroy().
Definition at line 704 of file thread.c.
References cond, err, error(), and UV__ERR.
Referenced by init_threads(), uv__custom_sem_init(), and uv_barrier_init().
Definition at line 769 of file thread.c.
References cond.
Referenced by post(), uv__custom_sem_post(), uv_barrier_wait(), and worker().
UV_EXTERN int uv_cond_timedwait | ( | uv_cond_t * | cond, |
uv_mutex_t * | mutex, | ||
uint64_t | timeout | ||
) |
Definition at line 785 of file thread.c.
References cond, DWORD, ETIMEDOUT, gettimeofday, mutex, NANOSEC, NULL, r, timeout, tv, timespec::tv_nsec, timespec::tv_sec, uv__hrtime(), and UV_CLOCK_PRECISE.
UV_EXTERN void uv_cond_wait | ( | uv_cond_t * | cond, |
uv_mutex_t * | mutex | ||
) |
Definition at line 779 of file thread.c.
Referenced by uv__custom_sem_wait(), uv_barrier_wait(), and worker().
UV_EXTERN int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 1044 of file aix.c.
References ARRAY_SIZE, assert(), data_area_ptr::assign, count, CP_IDLE, CP_INTR, CP_NICE, CP_SYS, CP_USER, CPCMODEL_LENGTH, uv_cpu_info_s::cpu_times, CPUSTATES, CSD_NUMBER_ONLINE_CPUS, CSD_OFFSET, CVT_PTR, CVTOPCTP_OFFSET, data_area_ptr::deref, DWORD, EINPROGRESS, EINTR, err, error(), benchmark::FILE, i, uv_cpu_times_s::idle, _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION::IdleTime, setup::idx, info(), int, _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION::InterruptTime, uv_cpu_times_s::irq, _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION::KernelTime, L, len, long, memcpy(), memset(), uv_cpu_info_s::model, ncpus, uv_cpu_times_s::nice, NT_SUCCESS, NULL, out, pNtQuerySystemInformation, pRtlNtStatusToDosError, RCTLACS_OFFSET, read_models(), read_speeds(), read_times(), RMCTRCT_OFFSET, uv_cpu_info_s::speed, status, strdup(), strings(), uv_cpu_times_s::sys, SystemProcessorPerformanceInformation, type, u_int64_t, ULONG, uv_cpu_times_s::user, _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION::UserTime, uv__calloc(), uv__convert_utf16_to_utf8(), uv__cpu_num(), UV__ERR, uv__free(), uv__get_cpu_speed(), uv__malloc(), uv__once_init(), uv__open_file(), uv__strdup(), uv__strscpy(), uv_free_cpu_info(), uv_translate_sys_error(), and which.
Referenced by setup_workers().
Definition at line 708 of file core.c.
References DWORD, ERANGE, INT_MAX, L, NULL, r, UV__ERR, uv__free(), uv__malloc(), UV__PATH_MAX, and uv_translate_sys_error().
Definition at line 763 of file uv-common.c.
References default_loop_ptr, default_loop_struct, NULL, and uv_loop_init().
Referenced by idle_cb(), main(), on_open(), on_read(), on_write(), and uv__print_handles().
UV_EXTERN void uv_disable_stdio_inheritance | ( | void | ) |
Definition at line 755 of file core.c.
References fd, handle, HANDLE, INVALID_HANDLE_VALUE, NULL, si, uv__cloexec, uv__stdio_noinherit(), and uv__stdio_verify().
Definition at line 41 of file dl.c.
References uv_lib_t::errmsg, uv_lib_t::handle, NULL, and uv__free().
Definition at line 33 of file dl.c.
References ARRAY_SIZE, uv_lib_t::errmsg, uv_lib_t::handle, NULL, and uv__dlerror().
Referenced by main().
Definition at line 53 of file dl.c.
References uv_lib_t::handle, and uv__dlerror().
Referenced by main().
Definition at line 189 of file uv-common.c.
References err, uv__unknown_err_code(), UV_ERR_NAME_GEN, and UV_ERRNO_MAP.
Referenced by echo_read(), echo_write(), main(), on_connect(), on_new_connection(), on_read(), and on_resolved().
Definition at line 178 of file uv-common.c.
References buflen, err, snprintf, UV_ERR_NAME_GEN_R, and UV_ERRNO_MAP.
Definition at line 60 of file aix-common.c.
References args, ARRAY_SIZE, assert(), ENOMEM, err, error(), find_path(), getexe(), init_process_title_mutex_once(), int, L, memcpy(), n, NULL, original_exepath, out, path, pid, process_title_mutex, process_title_mutex_once, readlink, snprintf, status, UV__ERR, uv__free(), uv__malloc(), UV__PATH_MAX, uv__reallocf(), uv__search_path(), uv__strscpy(), uv_mutex_lock(), uv_mutex_unlock(), uv_once(), and uv_translate_sys_error().
Referenced by invoke_cgi_script(), main(), and setup_workers().
UV_EXTERN int uv_fileno | ( | const uv_handle_t * | handle, |
uv_os_fd_t * | fd | ||
) |
Definition at line 767 of file core.c.
References fd, handle, INVALID_HANDLE_VALUE, socket, uv__is_closing, uv__stream_fd, and uv_is_closing().
Referenced by on_new_connection(), and uv__getsockpeername().
UV_EXTERN void uv_free_cpu_info | ( | uv_cpu_info_t * | cpu_infos, |
int | count | ||
) |
Definition at line 846 of file uv-common.c.
References count, i, and uv__free().
Referenced by setup_workers(), and uv_cpu_info().
UV_EXTERN void uv_free_interface_addresses | ( | uv_interface_address_t * | addresses, |
int | count | ||
) |
UV_EXTERN void uv_freeaddrinfo | ( | struct addrinfo * | ai | ) |
UV_EXTERN int uv_fs_access | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
const char * | path, | ||
int | mode, | ||
uv_fs_cb | cb | ||
) |
Definition at line 1659 of file fs.c.
References cb, err, flags, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_WIN32_ERROR, and UV_FS_ACCESS.
UV_EXTERN int uv_fs_chmod | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
const char * | path, | ||
int | mode, | ||
uv_fs_cb | cb | ||
) |
Definition at line 1671 of file fs.c.
References cb, err, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_WIN32_ERROR, and UV_FS_CHMOD.
UV_EXTERN int uv_fs_copyfile | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
const char * | path, | ||
const char * | new_path, | ||
int | flags, | ||
uv_fs_cb | cb | ||
) |
Definition at line 2103 of file fs.c.
References cb, err, flags, fs__capture_path(), INIT, NULL, path, PATH2, POST, req, SET_REQ_UV_ERROR, SET_REQ_WIN32_ERROR, UV_FS_COPYFILE, UV_FS_COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE, and UV_FS_COPYFILE_FICLONE_FORCE.
UV_EXTERN int uv_fs_event_getpath | ( | uv_fs_event_t * | handle, |
char * | buffer, | ||
size_t * | size | ||
) |
Definition at line 592 of file uv-common.c.
References handle, memcpy(), and uv__is_active.
Referenced by run_command().
UV_EXTERN int uv_fs_event_init | ( | uv_loop_t * | loop, |
uv_fs_event_t * | handle | ||
) |
Definition at line 757 of file aix.c.
References handle, INVALID_HANDLE_VALUE, loop, NULL, uv__handle_init, and UV_REQ_INIT.
Referenced by main().
UV_EXTERN int uv_fs_event_start | ( | uv_fs_event_t * | handle, |
uv_fs_event_cb | cb, | ||
const char * | path, | ||
unsigned int | flags | ||
) |
Definition at line 767 of file aix.c.
References assert(), CAST, cb, test-lz4-speed::cwd, DWORD, EINTR, err, error(), FALSE, fd, FD_SET, FD_ZERO, find_watcher(), flags, fstat, handle, init_inotify(), INVALID_HANDLE_VALUE, len, memcpy(), memset(), uv__os390_epoll::msg_queue, NULL, O_RDONLY, path, QUEUE_INIT, QUEUE_INSERT_TAIL, r, RB_INSERT, readlink, select, snprintf, TRUE, uv__close_nocheckstdio(), UV__ERR, uv__free(), uv__fs_event(), uv__fsevents_init(), uv__handle_start, uv__handle_stop, uv__io_init(), uv__io_start(), uv__is_active, uv__load_relaxed, uv__malloc(), uv__strdup(), uv__strscpy(), uv_directory_watcher_buffer_size, uv_fatal_error(), UV_FS_EVENT_RECURSIVE, uv_split_path(), uv_translate_sys_error(), and w.
Referenced by main(), and uv__inotify_fork().
UV_EXTERN int uv_fs_event_stop | ( | uv_fs_event_t * | handle | ) |
Definition at line 838 of file aix.c.
References assert(), EALREADY, ENOENT, find_watcher(), handle, INVALID_HANDLE_VALUE, maybe_free_watcher_list(), memcpy(), uv__os390_epoll::msg_queue, NULL, QUEUE_REMOVE, r, uv__close(), uv__free(), uv__fsevents_close(), uv__handle_stop, uv__io_close(), uv__is_active, uv__load_relaxed, and w.
Referenced by uv__fs_event_close(), uv__inotify_fork(), and uv_fs_event_close().
Definition at line 105 of file uv-data-getter-setters.c.
References req.
Definition at line 101 of file uv-data-getter-setters.c.
References req.
Definition at line 97 of file uv-data-getter-setters.c.
References req.
Definition at line 109 of file uv-data-getter-setters.c.
References req.
UV_EXTERN uv_fs_type uv_fs_get_type | ( | const uv_fs_t * | req | ) |
Definition at line 93 of file uv-data-getter-setters.c.
References req.
Definition at line 1834 of file fs.c.
References err, fs__capture_path(), INIT, NULL, POST, req, SET_REQ_WIN32_ERROR, TRUE, uv__strdup(), and UV_FS_MKDTEMP.
Definition at line 1846 of file fs.c.
References err, fs__capture_path(), INIT, NULL, POST, req, SET_REQ_WIN32_ERROR, TRUE, uv__strdup(), and UV_FS_MKSTEMP.
UV_EXTERN int uv_fs_open | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
const char * | path, | ||
int | flags, | ||
int | mode, | ||
uv_fs_cb | cb | ||
) |
Definition at line 1858 of file fs.c.
References cb, err, flags, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_WIN32_ERROR, and UV_FS_OPEN.
Referenced by main(), and uv__fs_copyfile().
UV_EXTERN int uv_fs_poll_getpath | ( | uv_fs_poll_t * | handle, |
char * | buffer, | ||
size_t * | size | ||
) |
Definition at line 138 of file fs-poll.c.
References assert(), handle, memcpy(), NULL, and uv_is_active().
UV_EXTERN int uv_fs_poll_init | ( | uv_loop_t * | loop, |
uv_fs_poll_t * | handle | ||
) |
UV_EXTERN int uv_fs_poll_start | ( | uv_fs_poll_t * | handle, |
uv_fs_poll_cb | poll_cb, | ||
const char * | path, | ||
unsigned int | interval | ||
) |
Definition at line 66 of file fs-poll.c.
References cb, err, error(), handle, poll_ctx::interval, len, loop, memcpy(), NULL, path, poll_cb(), uv__calloc(), uv__free(), uv__handle_start, uv__handle_unref, uv_fs_stat(), UV_HANDLE_INTERNAL, uv_is_active(), uv_now(), and uv_timer_init().
UV_EXTERN int uv_fs_poll_stop | ( | uv_fs_poll_t * | handle | ) |
Definition at line 116 of file fs-poll.c.
References assert(), handle, NULL, timer_close_cb(), uv__handle_stop, uv_close(), and uv_is_active().
Referenced by uv__fs_poll_close().
UV_EXTERN int uv_fs_read | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
uv_file | file, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
int64_t | offset, | ||
uv_fs_cb | cb | ||
) |
Definition at line 1872 of file fs.c.
References ARRAY_SIZE, bufs, fd, file, INIT, memcpy(), NULL, off, POST, READ, req, SET_REQ_UV_ERROR, uv__malloc(), and UV_FS_READ.
Referenced by main(), on_open(), on_type(), and on_write().
Definition at line 1920 of file fs.c.
References uv_dir_s::dirents, INIT, INVALID_HANDLE_VALUE, NULL, POST, req, SET_REQ_UV_ERROR, and UV_FS_READDIR.
Definition at line 1956 of file fs.c.
References cb, err, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_UV_ERROR, SET_REQ_WIN32_ERROR, and UV_FS_REALPATH.
Definition at line 2070 of file fs.c.
References NULL, req, uv__free(), uv__fs_readdir_cleanup(), uv__fs_scandir_cleanup(), UV_FS_CLEANEDUP, UV_FS_FREE_PATHS, UV_FS_FREE_PTR, UV_FS_MKDTEMP, UV_FS_MKSTEMP, UV_FS_OPENDIR, UV_FS_READDIR, and UV_FS_SCANDIR.
Referenced by main(), poll_cb(), and uv__fs_copyfile().
UV_EXTERN int uv_fs_scandir_next | ( | uv_fs_t * | req, |
uv_dirent_t * | ent | ||
) |
Definition at line 651 of file uv-common.c.
References assert(), dirent::d_name, uv_dirent_s::name, NULL, req, uv_dirent_s::type, uv__fs_get_dirent_type(), uv__fs_scandir_free, and uv__get_nbufs().
Definition at line 2000 of file fs.c.
References cb, err, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_WIN32_ERROR, and UV_FS_STAT.
Referenced by timer_cb(), and uv_fs_poll_start().
Definition at line 2020 of file fs.c.
References cb, err, fs__capture_path(), INIT, NULL, path, PATH, POST, req, SET_REQ_WIN32_ERROR, and UV_FS_UNLINK.
Referenced by remove_sock(), and uv__fs_copyfile().
UV_EXTERN int uv_fs_write | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
uv_file | file, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
int64_t | offset, | ||
uv_fs_cb | cb | ||
) |
Definition at line 2041 of file fs.c.
References ARRAY_SIZE, bufs, fd, file, INIT, memcpy(), NULL, off, POST, req, SET_REQ_UV_ERROR, uv__malloc(), and UV_FS_WRITE.
Referenced by on_read().
Definition at line 387 of file aix.c.
References uv__read_cgroups_uint64().
Definition at line 367 of file aix.c.
References ARRAY_SIZE, data_area_ptr::assign, count, CVT_PTR, CVTRCEP_OFFSET, data_area_ptr::deref, get_ibmi_system_status(), get_mem_info(), info(), SSTS0200::main_storage_size, NULL, RCEAFC_OFFSET, status, sysinfo, UV__ERR, uv__read_proc_meminfo(), and which.
UV_EXTERN uv_os_fd_t uv_get_osfhandle | ( | int | fd | ) |
Definition at line 1389 of file core.c.
References fd, and uv__get_osfhandle().
Definition at line 960 of file aix.c.
References args_mem, assert(), init_process_title_mutex_once(), len, uv__process_title::len, memcpy(), NULL, process_argv, process_title, process_title_lock, process_title_mutex, process_title_mutex_once, uv__process_title::str, uv__get_process_title(), uv__once_init(), uv_mutex_lock(), uv_mutex_unlock(), uv_once(), and uv_translate_sys_error().
Definition at line 377 of file aix.c.
References ARRAY_SIZE, data_area_ptr::assign, CVT_PTR, CVTRCEP_OFFSET, data_area_ptr::deref, get_ibmi_system_status(), get_mem_info(), info(), SSTS0200::main_storage_size, NULL, RCEPOOL_OFFSET, status, sysinfo, UV__ERR, uv__read_proc_meminfo(), and which.
UV_EXTERN int uv_getaddrinfo | ( | uv_loop_t * | loop, |
uv_getaddrinfo_t * | req, | ||
uv_getaddrinfo_cb | getaddrinfo_cb, | ||
const char * | node, | ||
const char * | service, | ||
const struct addrinfo * | hints | ||
) |
Definition at line 141 of file getaddrinfo.c.
References ALIGNED_SIZE, cb, err, error(), len, loop, memcpy(), NULL, req, uv__free(), uv__getaddrinfo_done(), uv__getaddrinfo_work(), uv__idna_toascii(), uv__malloc(), uv__req_init, uv__req_register, UV__WORK_SLOW_IO, uv__work_submit(), UV_REQ_INIT, and uv_translate_sys_error().
Referenced by main().
UV_EXTERN int uv_getnameinfo | ( | uv_loop_t * | loop, |
uv_getnameinfo_t * | req, | ||
uv_getnameinfo_cb | getnameinfo_cb, | ||
const struct sockaddr * | addr, | ||
int | flags | ||
) |
Definition at line 81 of file getnameinfo.c.
References addr, AF_INET, AF_INET6, flags, loop, memcpy(), NULL, req, uv__getnameinfo_done(), uv__getnameinfo_work(), uv__req_init, uv__req_register, UV__WORK_SLOW_IO, uv__work_submit(), and UV_REQ_INIT.
UV_EXTERN int uv_getrusage | ( | uv_rusage_t * | rusage | ) |
Definition at line 970 of file core.c.
References memset(), rusage::ru_idrss, rusage::ru_inblock, uv_rusage_t::ru_inblock, rusage::ru_isrss, rusage::ru_ixrss, rusage::ru_majflt, uv_rusage_t::ru_majflt, rusage::ru_maxrss, uv_rusage_t::ru_maxrss, rusage::ru_minflt, rusage::ru_msgrcv, rusage::ru_msgsnd, rusage::ru_nivcsw, rusage::ru_nsignals, rusage::ru_nswap, rusage::ru_nvcsw, rusage::ru_oublock, uv_rusage_t::ru_oublock, rusage::ru_stime, uv_rusage_t::ru_stime, rusage::ru_utime, uv_rusage_t::ru_utime, timeval::tv_sec, uv_timeval_t::tv_sec, timeval::tv_usec, uv_timeval_t::tv_usec, usage(), UV__ERR, and uv_translate_sys_error().
UV_EXTERN int uv_gettimeofday | ( | uv_timeval64_t * | tv | ) |
Definition at line 1512 of file core.c.
References gettimeofday, NULL, time, tv, and UV__ERR.
UV_EXTERN uv_handle_type uv_guess_handle | ( | uv_file | file | ) |
Definition at line 315 of file tty.c.
References AF_INET, AF_INET6, AF_UNIX, DWORD, fstat, handle, HANDLE, len, s, S_ISREG, SO_TYPE, SOCK_DGRAM, SOCK_STREAM, SOL_SOCKET, type, uv__get_osfhandle(), UV_FILE, and UV_UNKNOWN_HANDLE.
Referenced by main(), and uv_tty_init().
UV_EXTERN void* uv_handle_get_data | ( | const uv_handle_t * | handle | ) |
Definition at line 40 of file uv-data-getter-setters.c.
References handle.
UV_EXTERN uv_loop_t* uv_handle_get_loop | ( | const uv_handle_t * | handle | ) |
Definition at line 44 of file uv-data-getter-setters.c.
References handle.
UV_EXTERN uv_handle_type uv_handle_get_type | ( | const uv_handle_t * | handle | ) |
Definition at line 36 of file uv-data-getter-setters.c.
References handle.
UV_EXTERN void uv_handle_set_data | ( | uv_handle_t * | handle, |
void * | data | ||
) |
Definition at line 48 of file uv-data-getter-setters.c.
References handle.
UV_EXTERN size_t uv_handle_size | ( | uv_handle_type | type | ) |
UV_EXTERN const char* uv_handle_type_name | ( | uv_handle_type | type | ) |
Definition at line 24 of file uv-data-getter-setters.c.
References NULL, type, UV_FILE, UV_HANDLE_TYPE_MAP, UV_HANDLE_TYPE_MAX, UV_UNKNOWN_HANDLE, and XX.
UV_EXTERN int uv_has_ref | ( | const uv_handle_t * | handle | ) |
Definition at line 103 of file core.c.
References uv__hrtime(), UV__NANOSEC, uv__once_init(), and UV_CLOCK_PRECISE.
Referenced by uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), and uv_metrics_idle_time().
UV_EXTERN int uv_idle_start | ( | uv_idle_t * | idle, |
uv_idle_cb | cb | ||
) |
Referenced by crunch_away(), uv_close(), and wait_for_a_while().
Definition at line 253 of file getaddrinfo.c.
References NULL, r, snprintf, uv_if_indextoname(), and uv_translate_sys_error().
Definition at line 229 of file getaddrinfo.c.
References ARRAY_SIZE, DWORD, len, memcpy(), NDIS_IF_MAX_STRING_SIZE, NULL, r, strnlen(), UV__ERR, UV_IF_NAMESIZE, and uv_translate_sys_error().
Referenced by uv_if_indextoiid().
Definition at line 40 of file inet.c.
References AF_INET, AF_INET6, dst, inet_ntop4(), inet_ntop6(), and src.
Referenced by uv_ip4_name(), and uv_ip6_name().
Definition at line 150 of file inet.c.
References AF_INET, AF_INET6, dst, inet_pton4(), inet_pton6(), len, memcpy(), NULL, p, s, src, autogen_x86imm::tmp, and UV__INET6_ADDRSTRLEN.
Referenced by uv__udp_set_membership4(), uv__udp_set_source_membership4(), uv_ip4_addr(), and uv_ip6_addr().
UV_EXTERN int uv_interface_addresses | ( | uv_interface_address_t ** | addresses, |
int * | count | ||
) |
Definition at line 1100 of file aix.c.
References ADDR_SIZE, uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, address_prefix_match(), AF_INET, AF_INET6, AF_UNSPEC, assert(), cleanup(), count, FALSE, flags, freeifaddrs(), get_ibmi_physical_address(), getifaddrs(), i, ifaddrs::ifa_addr, ifaddrs::ifa_flags, ifaddrs::ifa_name, ifaddrs::ifa_netmask, ifaddrs::ifa_next, INT_MAX, ioctl, uv_interface_address_s::is_internal, is_windows_version_or_greater(), memcpy(), memset(), uv_interface_address_s::name, uv_interface_address_s::netmask, uv_interface_address_s::netmask4, uv_interface_address_s::netmask6, NULL, p, uv_interface_address_s::phys_addr, prefix, r, in_addr::s_addr, sockaddr_in6::sin6_addr, sockaddr_in::sin_addr, SOCK_DGRAM, socket, sockfd, ULONG, uv__calloc(), uv__close(), UV__ERR, UV__EXCLUDE_IFADDR, UV__EXCLUDE_IFPHYS, uv__free(), uv__ifaddr_exclude(), uv__interface_addresses_v6(), uv__malloc(), uv__set_phys_addr(), uv__strdup(), uv__strscpy(), uv_free_interface_addresses(), and uv_translate_sys_error().
Referenced by main().
UV_EXTERN int uv_ip4_addr | ( | const char * | ip, |
int | port, | ||
struct sockaddr_in * | addr | ||
) |
Definition at line 221 of file uv-common.c.
References addr, AF_INET, htons, ip, memset(), and uv_inet_pton().
Referenced by main(), uv_udp_set_membership(), uv_udp_set_multicast_interface(), uv_udp_set_source_membership(), and uv_winsock_init().
UV_EXTERN int uv_ip4_name | ( | const struct sockaddr_in * | src, |
char * | dst, | ||
size_t | size | ||
) |
Definition at line 267 of file uv-common.c.
References AF_INET, dst, src, and uv_inet_ntop().
Referenced by main(), on_read(), and on_resolved().
UV_EXTERN int uv_ip6_addr | ( | const char * | ip, |
int | port, | ||
struct sockaddr_in6 * | addr | ||
) |
Definition at line 232 of file uv-common.c.
References addr, AF_INET6, htons, ip, memcpy(), memset(), NULL, and uv_inet_pton().
Referenced by uv__udp_set_membership6(), uv__udp_set_source_membership6(), uv_udp_set_membership(), uv_udp_set_multicast_interface(), uv_udp_set_source_membership(), and uv_winsock_init().
UV_EXTERN int uv_ip6_name | ( | const struct sockaddr_in6 * | src, |
char * | dst, | ||
size_t | size | ||
) |
Definition at line 272 of file uv-common.c.
References AF_INET6, dst, src, and uv_inet_ntop().
Referenced by main().
UV_EXTERN int uv_is_active | ( | const uv_handle_t * | handle | ) |
Definition at line 430 of file core.c.
References handle, uv__is_active, UV_HANDLE_ACTIVE, and UV_HANDLE_CLOSING.
Referenced by poll_cb(), uv_fs_poll_getpath(), uv_fs_poll_start(), and uv_fs_poll_stop().
UV_EXTERN int uv_is_closing | ( | const uv_handle_t * | handle | ) |
Definition at line 323 of file core.c.
References handle, uv__is_closing, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_fileno().
UV_EXTERN int uv_is_readable | ( | const uv_stream_t * | handle | ) |
Definition at line 1606 of file stream.c.
References handle, and UV_HANDLE_READABLE.
UV_EXTERN int uv_is_writable | ( | const uv_stream_t * | handle | ) |
Definition at line 1611 of file stream.c.
References handle, and UV_HANDLE_WRITABLE.
Definition at line 823 of file thread.c.
References key, NULL, and UV__ERR.
Referenced by uv__init_current_thread_key().
Definition at line 582 of file process.c.
References err, FALSE, HANDLE, kill, NULL, pid, signum, UV__ERR, uv__kill(), and uv_translate_sys_error().
Referenced by uv_process_kill().
UV_EXTERN void uv_library_shutdown | ( | void | ) |
Definition at line 859 of file uv-common.c.
References uv__load_relaxed, uv__process_title_cleanup(), uv__signal_cleanup(), uv__store_relaxed, and uv__threadpool_cleanup().
UV_EXTERN int uv_listen | ( | uv_stream_t * | stream, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 656 of file stream.c.
References assert(), cb, err, uv__handle_start, uv_pipe_listen(), uv_tcp_listen(), and uv_translate_sys_error().
Referenced by main().
UV_EXTERN void uv_loadavg | ( | double | avg[3] | ) |
Definition at line 392 of file aix.c.
References ARRAY_SIZE, get_ibmi_system_status(), info(), test-lz4-speed::loadavg, NULL, SSTS0200::percent_processing_unit_used, sysinfo, uv__slurp(), and which.
Definition at line 791 of file uv-common.c.
References uv_loop_s::data, default_loop_ptr, h, uv_loop_s::handle_queue, loop, memset(), NULL, QUEUE_DATA, QUEUE_FOREACH, uv__has_active_reqs, uv__loop_close(), and UV_HANDLE_INTERNAL.
Referenced by main(), and uv_loop_delete().
UV_EXTERN int uv_loop_configure | ( | uv_loop_t * | loop, |
uv_loop_option | option, | ||
... | |||
) |
Definition at line 746 of file uv-common.c.
References err, loop, and uv__loop_configure().
Definition at line 821 of file uv-common.c.
References assert(), default_loop_ptr, err, loop, uv__free(), and uv_loop_close().
Definition at line 132 of file loop.c.
References err, i, loop, NULL, QUEUE_EMPTY, QUEUE_INSERT_TAIL, uv__async_fork(), uv__io_fork(), uv__signal_loop_fork(), and w.
Definition at line 113 of file uv-data-getter-setters.c.
References uv_loop_s::data, and loop.
Definition at line 30 of file loop.c.
References uv_loop_s::active_handles, uv_loop_s::active_reqs, uv_loop_s::count, uv_loop_s::data, err, uv_loop_s::handle_queue, uv_loop_s::internal_fields, INVALID_HANDLE_VALUE, uv__loop_metrics_s::lock, loop, uv__loop_internal_fields_s::loop_metrics, memset(), NULL, QUEUE_INIT, uv_loop_s::stop_flag, timer_heap(), uv__calloc(), uv__free(), uv__handle_unref, uv__loops_add(), uv__malloc(), uv__once_init(), uv__platform_loop_delete(), uv__platform_loop_init(), uv__signal_global_once_init(), uv__signal_loop_cleanup(), uv__work_done(), uv_async_init(), UV_HANDLE_INTERNAL, uv_mutex_destroy(), uv_mutex_init(), uv_rwlock_destroy(), uv_rwlock_init(), uv_signal_init(), uv_translate_sys_error(), and uv_update_time().
Referenced by create_loop(), main(), uv_default_loop(), and uv_loop_new().
Definition at line 775 of file uv-common.c.
References loop, NULL, uv__free(), uv__malloc(), and uv_loop_init().
Definition at line 117 of file uv-data-getter-setters.c.
References uv_loop_s::data, and loop.
Definition at line 152 of file uv-common.c.
Definition at line 914 of file uv-common.c.
References uv__loop_metrics_s::lock, loop, uv__loop_metrics_s::provider_entry_time, uv__loop_metrics_s::provider_idle_time, uv__get_loop_metrics, uv_hrtime(), uv_mutex_lock(), and uv_mutex_unlock().
UV_EXTERN void uv_mutex_destroy | ( | uv_mutex_t * | handle | ) |
Definition at line 324 of file thread.c.
References mutex.
Referenced by child_fork(), uv__custom_sem_destroy(), uv__custom_sem_init(), uv__loop_close(), uv__threadpool_cleanup(), uv_barrier_destroy(), uv_barrier_init(), and uv_loop_init().
UV_EXTERN int uv_mutex_init | ( | uv_mutex_t * | handle | ) |
Definition at line 282 of file thread.c.
References err, mutex, NULL, and UV__ERR.
Referenced by epoll_init(), init_process_title_mutex_once(), init_threads(), uv__custom_sem_init(), uv__fd_hash_init(), uv__loops_init(), uv_barrier_init(), uv_console_init(), uv_loop_init(), and uv_mutex_init_recursive().
UV_EXTERN int uv_mutex_init_recursive | ( | uv_mutex_t * | handle | ) |
UV_EXTERN void uv_mutex_lock | ( | uv_mutex_t * | handle | ) |
Definition at line 330 of file thread.c.
References mutex.
Referenced by before_fork(), epoll_create1(), epoll_ctl(), epoll_file_close(), epoll_queue_close(), post(), uv__custom_sem_post(), uv__custom_sem_wait(), uv__fd_hash_add(), uv__fd_hash_get(), uv__fd_hash_remove(), uv__loop_close(), uv__loops_add(), uv__loops_remove(), uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), uv__tty_console_signal_resize(), uv__wake_all_loops(), uv__work_cancel(), uv__work_done(), uv_barrier_destroy(), uv_barrier_wait(), uv_exepath(), uv_get_process_title(), uv_metrics_idle_time(), uv_set_process_title(), uv_setup_args(), and worker().
UV_EXTERN int uv_mutex_trylock | ( | uv_mutex_t * | handle | ) |
UV_EXTERN void uv_mutex_unlock | ( | uv_mutex_t * | handle | ) |
Definition at line 350 of file thread.c.
References mutex.
Referenced by after_fork(), child_fork(), epoll_create1(), epoll_ctl(), epoll_file_close(), epoll_queue_close(), post(), uv__custom_sem_post(), uv__custom_sem_trywait(), uv__custom_sem_wait(), uv__fd_hash_add(), uv__fd_hash_get(), uv__fd_hash_remove(), uv__loop_close(), uv__loops_add(), uv__loops_remove(), uv__metrics_set_provider_entry_time(), uv__metrics_update_idle_time(), uv__tty_console_signal_resize(), uv__wake_all_loops(), uv__work_cancel(), uv__work_done(), uv_barrier_destroy(), uv_barrier_wait(), uv_exepath(), uv_get_process_title(), uv_metrics_idle_time(), uv_set_process_title(), uv_setup_args(), and worker().
Definition at line 567 of file uv-common.c.
References loop.
Referenced by poll_cb(), timer_cb(), and uv_fs_poll_start().
Definition at line 419 of file thread.c.
References uv__once_inner().
Referenced by epoll_create1(), epoll_file_close(), uv__fs_mkstemp(), uv__get_overlapped_dummy(), uv__hrtime(), uv__once_init(), uv__random_devurandom(), uv__random_getentropy(), uv__random_getrandom_init(), uv__signal_global_once_init(), uv__thread_start(), uv__udp_sendmsg(), uv__work_submit(), uv_exepath(), uv_get_process_title(), uv_sem_init(), uv_set_process_title(), uv_setup_args(), uv_spawn(), uv_thread_self(), and uv_udp_using_recvmmsg().
UV_EXTERN int uv_open_osfhandle | ( | uv_os_fd_t | os_fd | ) |
UV_EXTERN int uv_os_environ | ( | uv_env_item_t ** | envitems, |
int * | count | ||
) |
Definition at line 1255 of file core.c.
References buf, count, env, environ, fail, i, L, uv_env_item_s::name, NULL, uv__calloc(), uv__convert_utf16_to_utf8(), uv__free(), uv__strdup(), and uv_env_item_s::value.
UV_EXTERN void uv_os_free_environ | ( | uv_env_item_t * | envitems, |
int | count | ||
) |
UV_EXTERN void uv_os_free_passwd | ( | uv_passwd_t * | pwd | ) |
Definition at line 1228 of file core.c.
References uv_passwd_s::homedir, NULL, uv_passwd_s::shell, uv_passwd_s::username, and uv__free().
Referenced by uv_os_homedir().
UV_EXTERN int uv_os_get_passwd | ( | uv_passwd_t * | pwd | ) |
Definition at line 1311 of file core.c.
References ARRAY_SIZE, DWORD, fail, getenv(), len, memcpy(), NULL, r, uv__convert_utf8_to_utf16(), uv__free(), uv__malloc(), and uv_translate_sys_error().
Referenced by uv_os_homedir().
Definition at line 1359 of file core.c.
References buf, len, memcpy(), NULL, UV__ERR, uv__once_init(), UV_MAXHOSTNAMESIZE, and uv_translate_sys_error().
Definition at line 1407 of file core.c.
References getpriority, handle, HANDLE, NULL, pid, r, UV__ERR, uv__get_handle(), UV_PRIORITY_ABOVE_NORMAL, UV_PRIORITY_BELOW_NORMAL, UV_PRIORITY_HIGH, UV_PRIORITY_HIGHEST, UV_PRIORITY_LOW, UV_PRIORITY_NORMAL, and uv_translate_sys_error().
Definition at line 1059 of file core.c.
References uv_passwd_s::homedir, len, memcpy(), r, uv__getpwuid_r(), uv_os_free_passwd(), and uv_os_getenv().
Definition at line 1337 of file core.c.
References NULL, r, uv__convert_utf8_to_utf16(), UV__ERR, uv__free(), uv_translate_sys_error(), and value.
Definition at line 1424 of file core.c.
References handle, HANDLE, pid, r, setpriority, UV__ERR, uv__get_handle(), UV_PRIORITY_ABOVE_NORMAL, UV_PRIORITY_BELOW_NORMAL, UV_PRIORITY_HIGH, UV_PRIORITY_LOW, UV_PRIORITY_NORMAL, and uv_translate_sys_error().
Definition at line 1095 of file core.c.
References buf, CHECK_ENV_VAR, DWORD, L, len, memcpy(), NULL, path, uv__free(), uv__malloc(), and uv_translate_sys_error().
UV_EXTERN int uv_os_uname | ( | uv_utsname_t * | buffer | ) |
Definition at line 1435 of file core.c.
References assert(), DWORD, error(), L, NULL, pRtlGetVersion, PVOID, r, snprintf, uname, UV__ERR, uv__once_init(), uv__strscpy(), and uv_translate_sys_error().
Definition at line 1348 of file core.c.
References NULL, r, uv__convert_utf8_to_utf16(), UV__ERR, uv__free(), and uv_translate_sys_error().
Definition at line 43 of file pipe.c.
References AF_UNIX, bind, default_pending_pipe_instances, err, error(), handle, i, INVALID_HANDLE_VALUE, loop, memset(), NULL, pipe_alloc_accept(), req, SOCK_STREAM, sockfd, sockaddr_un::sun_path, TRUE, uv__close(), UV__ERR, uv__free(), uv__malloc(), uv__socket(), uv__strdup(), uv__stream_fd, uv__strscpy(), uv_fatal_error(), UV_HANDLE_BOUND, UV_HANDLE_PIPESERVER, UV_REQ_INIT, and uv_translate_sys_error().
Referenced by main().
Definition at line 326 of file pipe.c.
References chmod, done, error(), handle, INVALID_HANDLE_VALUE, memset(), NULL, r, stat, UV__ERR, uv__free(), uv__malloc(), uv__stream_fd, uv_pipe_getsockname(), UV_READABLE, uv_translate_sys_error(), and UV_WRITABLE.
UV_EXTERN void uv_pipe_connect | ( | uv_connect_t * | req, |
uv_pipe_t * | handle, | ||
const char * | name, | ||
uv_connect_cb | cb | ||
) |
Definition at line 173 of file pipe.c.
References AF_UNIX, assert(), cb, DWORD, EINPROGRESS, EINTR, err, error(), handle, HANDLE, INVALID_HANDLE_VALUE, loop, memset(), NULL, open_named_pipe(), out, pipe_connect_thread_proc(), QUEUE_INIT, r, REGISTER_HANDLE_REQ, req, SET_REQ_ERROR, SET_REQ_SUCCESS, SOCK_STREAM, sockaddr_un::sun_path, UV__ERR, uv__free(), uv__io_feed(), uv__io_start(), uv__malloc(), uv__req_init, uv__socket(), uv__stream_fd, uv__stream_open(), uv__strscpy(), uv_fatal_error(), UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_insert_pending_req(), UV_REQ_INIT, and uv_set_pipe_handle().
Definition at line 289 of file pipe.c.
References handle, INVALID_HANDLE_VALUE, uv__pipe_getname(), uv__pipe_getsockpeername(), and UV_HANDLE_BOUND.
Definition at line 284 of file pipe.c.
References handle, INVALID_HANDLE_VALUE, uv__pipe_getname(), uv__pipe_getsockpeername(), UV_HANDLE_BOUND, and UV_HANDLE_CONNECTION.
Referenced by uv_pipe_chmod().
Definition at line 33 of file pipe.c.
References handle, INVALID_HANDLE_VALUE, loop, NULL, QUEUE_INIT, uv__stream_init(), and uv_stream_init().
Referenced by main(), on_new_connection(), and setup_workers().
Definition at line 137 of file pipe.c.
References access, assert(), DWORD, EINTR, err, F_GETFL, FALSE, fcntl, fd, FileAccessInformation, flags, handle, HANDLE, INVALID_HANDLE_VALUE, O_ACCMODE, O_RDONLY, O_WRONLY, pipe, pNtQueryInformationFile, STATUS_SUCCESS, UV__ERR, uv__fd_exists(), uv__get_osfhandle(), uv__nonblock, uv__once_init(), uv__stream_open(), UV_HANDLE_NON_OVERLAPPED_PIPE, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_os_getppid(), uv_pipe_connection_init(), uv_set_pipe_handle(), and uv_translate_sys_error().
Referenced by main().
Definition at line 298 of file pipe.c.
References handle, NULL, and uv__stream_queued_fds_s::offset.
Referenced by on_new_connection().
Definition at line 294 of file pipe.c.
References count, handle, UV_HANDLE_BOUND, and UV_HANDLE_PIPESERVER.
UV_EXTERN uv_handle_type uv_pipe_pending_type | ( | uv_pipe_t * | handle | ) |
Definition at line 315 of file pipe.c.
References handle, uv__handle_type(), and UV_UNKNOWN_HANDLE.
Referenced by on_new_connection().
Definition at line 68 of file poll.c.
References err, fd, handle, loop, NULL, uv__fd_exists(), uv__get_osfhandle(), uv__handle_init, uv__io_check_fd(), uv__io_init(), uv__nonblock, uv__nonblock_fcntl(), uv__nonblock_ioctl(), uv__poll_io(), and uv_poll_init_socket().
Referenced by uv_poll_init_socket().
UV_EXTERN int uv_poll_init_socket | ( | uv_loop_t * | loop, |
uv_poll_t * | handle, | ||
uv_os_sock_t | socket | ||
) |
Definition at line 96 of file poll.c.
References assert(), bytes, DWORD, FIONBIO, handle, len, loop, NULL, SIO_BASE_HANDLE, socket, SOL_SOCKET, uv__fast_poll_get_peer_socket(), uv__handle_init, UV_HANDLE_POLL_SLOW, uv_poll_init(), UV_REQ_INIT, and uv_translate_sys_error().
Referenced by create_curl_context(), and uv_poll_init().
UV_EXTERN int uv_poll_start | ( | uv_poll_t * | handle, |
int | events, | ||
uv_poll_cb | cb | ||
) |
Definition at line 118 of file poll.c.
References assert(), cb, handle, poll_cb(), uv__handle_start, uv__io_start(), uv__is_closing, uv__poll_set(), uv__poll_stop(), UV__POLLPRI, UV__POLLRDHUP, UV_DISCONNECT, UV_PRIORITIZED, UV_READABLE, and UV_WRITABLE.
Referenced by handle_socket().
Definition at line 111 of file poll.c.
References assert(), handle, uv__is_closing, uv__poll_set(), and uv__poll_stop().
Referenced by handle_socket().
UV_EXTERN int uv_prepare_init | ( | uv_loop_t * | , |
uv_prepare_t * | prepare | ||
) |
Referenced by main().
UV_EXTERN int uv_prepare_start | ( | uv_prepare_t * | prepare, |
uv_prepare_cb | cb | ||
) |
Referenced by main().
UV_EXTERN int uv_prepare_stop | ( | uv_prepare_t * | prepare | ) |
Referenced by uv_close().
Definition at line 542 of file uv-common.c.
References loop, and uv__print_handles().
Definition at line 537 of file uv-common.c.
References loop, and uv__print_handles().
UV_EXTERN uv_pid_t uv_process_get_pid | ( | const uv_process_t * | proc | ) |
Definition at line 89 of file uv-data-getter-setters.c.
References proc.
UV_EXTERN int uv_process_kill | ( | uv_process_t * | process, |
int | signum | ||
) |
Definition at line 577 of file process.c.
References err, INVALID_HANDLE_VALUE, process(), signum, uv__kill(), and uv_kill().
UV_EXTERN int uv_queue_work | ( | uv_loop_t * | loop, |
uv_work_t * | req, | ||
uv_work_cb | work_cb, | ||
uv_after_work_cb | after_work_cb | ||
) |
Definition at line 338 of file threadpool.c.
References loop, NULL, req, uv__queue_done(), uv__queue_work(), uv__req_init, UV__WORK_CPU, and uv__work_submit().
Referenced by main().
UV_EXTERN int uv_random | ( | uv_loop_t * | loop, |
uv_random_t * | req, | ||
void * | buf, | ||
size_t | buflen, | ||
unsigned | flags, | ||
uv_random_cb | cb | ||
) |
Definition at line 94 of file random.c.
References buflen, cb, flags, loop, NULL, req, uv__random(), uv__random_done(), uv__random_work(), uv__req_init, UV__WORK_CPU, and uv__work_submit().
UV_EXTERN int uv_read_start | ( | uv_stream_t * | stream, |
uv_alloc_cb | alloc_cb, | ||
uv_read_cb | read_cb | ||
) |
Definition at line 1555 of file stream.c.
References assert(), err, handle, uv__handle_start, uv__io_start(), uv__stream_fd, uv__stream_osx_interrupt_select(), UV_HANDLE_CLOSING, UV_HANDLE_READABLE, UV_HANDLE_READING, uv_pipe_read_start(), uv_tcp_read_start(), uv_translate_sys_error(), and uv_tty_read_start().
Referenced by main(), on_connect(), and on_new_connection().
UV_EXTERN int uv_read_stop | ( | uv_stream_t * | stream | ) |
Definition at line 1590 of file stream.c.
References DECREASE_ACTIVE_COUNT, err, handle, NULL, uv__handle_stop, uv__io_active(), uv__io_stop(), uv__pipe_read_stop(), uv__stream_osx_interrupt_select(), UV_HANDLE_READING, uv_translate_sys_error(), and uv_tty_read_stop().
Referenced by eof_timer_cb(), uv__stream_close(), uv_pipe_read_eof(), and uv_pipe_read_error().
UV_EXTERN int uv_recv_buffer_size | ( | uv_handle_t * | handle, |
int * | value | ||
) |
Definition at line 584 of file uv-common.c.
References handle, SO_RCVBUF, uv__socket_sockopt(), and value.
UV_EXTERN void uv_ref | ( | uv_handle_t * | handle | ) |
UV_EXTERN int uv_replace_allocator | ( | uv_malloc_func | malloc_func, |
uv_realloc_func | realloc_func, | ||
uv_calloc_func | calloc_func, | ||
uv_free_func | free_func | ||
) |
Definition at line 114 of file uv-common.c.
References uv__allocator_t::local_calloc, uv__allocator_t::local_free, uv__allocator_t::local_malloc, uv__allocator_t::local_realloc, NULL, and uv__allocator.
Definition at line 69 of file uv-data-getter-setters.c.
References req.
UV_EXTERN uv_req_type uv_req_get_type | ( | const uv_req_t * | req | ) |
Definition at line 65 of file uv-data-getter-setters.c.
References req.
Definition at line 73 of file uv-data-getter-setters.c.
References req.
UV_EXTERN size_t uv_req_size | ( | uv_req_type | type | ) |
Definition at line 141 of file uv-common.c.
References type, UV_REQ_TYPE_MAP, and XX.
UV_EXTERN const char* uv_req_type_name | ( | uv_req_type | type | ) |
Definition at line 52 of file uv-data-getter-setters.c.
References NULL, type, UV_REQ_TYPE_MAP, UV_REQ_TYPE_MAX, UV_UNKNOWN_REQ, and XX.
Definition at line 993 of file aix.c.
References ARRAY_SIZE, ASCBRSME, assert(), count, EINTR, err, error(), fd, find_thread(), HANDLE, i, info(), n, NULL, O_RDONLY, pid, PSA_PTR, PSAAOLD, rax, RAXFMCT, read(), s, snprintf, status, uv__close(), UV__ERR, uv__open_cloexec(), uv_translate_sys_error(), and val.
UV_EXTERN int uv_run | ( | uv_loop_t * | loop, |
uv_run_mode | mode | ||
) |
Definition at line 365 of file core.c.
References DWORD, loop, pGetQueuedCompletionStatusEx, r, uv_loop_s::stop_flag, timeout, uv__io_poll(), uv__loop_alive(), uv__metrics_update_idle_time(), uv__poll(), uv__poll_wine(), uv__run_check(), uv__run_closing_handles(), uv__run_idle(), uv__run_pending(), uv__run_prepare(), uv__run_timers(), uv_backend_timeout(), uv_check_invoke(), uv_idle_invoke(), uv_prepare_invoke(), uv_process_endgames(), uv_process_reqs(), UV_RUN_DEFAULT, UV_RUN_NOWAIT, UV_RUN_ONCE, and uv_update_time().
Referenced by main(), thread1_worker(), and thread2_worker().
UV_EXTERN void uv_rwlock_destroy | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 361 of file thread.c.
References uv_rwlock_t::num_readers_lock_, uv_rwlock_t::state_, and uv_rwlock_t::write_semaphore_.
Referenced by main(), uv__loop_close(), and uv_loop_init().
UV_EXTERN int uv_rwlock_init | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 356 of file thread.c.
References handle, HANDLE, NULL, uv_rwlock_t::num_readers_, uv_rwlock_t::num_readers_lock_, uv_rwlock_t::state_, UV__ERR, uv_translate_sys_error(), and uv_rwlock_t::write_semaphore_.
Referenced by main(), and uv_loop_init().
UV_EXTERN void uv_rwlock_rdlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 367 of file thread.c.
References DWORD, uv_rwlock_t::num_readers_, uv_rwlock_t::num_readers_lock_, r, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
Referenced by reader(), uv__fs_mkstemp(), and uv__fs_open().
UV_EXTERN void uv_rwlock_rdunlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 387 of file thread.c.
References NULL, uv_rwlock_t::num_readers_, uv_rwlock_t::num_readers_lock_, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
Referenced by reader(), uv__fs_mkstemp(), and uv__fs_open().
UV_EXTERN int uv_rwlock_tryrdlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 373 of file thread.c.
References DWORD, EAGAIN, EBUSY, err, uv_rwlock_t::num_readers_, uv_rwlock_t::num_readers_lock_, r, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
UV_EXTERN int uv_rwlock_trywrlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 399 of file thread.c.
References DWORD, EAGAIN, EBUSY, err, r, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
UV_EXTERN void uv_rwlock_wrlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 393 of file thread.c.
References DWORD, r, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
Referenced by uv_spawn(), and writer().
UV_EXTERN void uv_rwlock_wrunlock | ( | uv_rwlock_t * | rwlock | ) |
Definition at line 413 of file thread.c.
References NULL, uv_rwlock_t::state_, uv_fatal_error(), and uv_rwlock_t::write_semaphore_.
Referenced by uv_spawn(), and writer().
Definition at line 662 of file thread.c.
References platform_needs_custom_semaphore, uv__custom_sem_destroy(), and uv__sem_destroy().
Referenced by init_threads(), uv__stream_close(), uv_barrier_destroy(), and uv_barrier_init().
Definition at line 650 of file thread.c.
References INT_MAX, NULL, platform_needs_custom_semaphore, uv__custom_sem_init(), uv__sem_init(), uv_once(), uv_translate_sys_error(), and value.
Referenced by init_threads(), uv_barrier_init(), and uv_console_init().
Definition at line 670 of file thread.c.
References NULL, platform_needs_custom_semaphore, uv__custom_sem_post(), and uv__sem_post().
Referenced by uv__cancel_read_console(), uv__stream_close(), uv_barrier_wait(), uv_tty_get_vterm_state(), uv_tty_get_winsize(), uv_tty_init(), uv_tty_line_read_thread(), uv_tty_set_mode(), uv_tty_set_vterm_state(), uv_tty_write_bufs(), and worker().
Definition at line 686 of file thread.c.
References DWORD, platform_needs_custom_semaphore, r, uv__custom_sem_trywait(), and uv__sem_trywait().
Definition at line 678 of file thread.c.
References platform_needs_custom_semaphore, uv__custom_sem_wait(), and uv__sem_wait().
Referenced by init_threads(), uv__cancel_read_console(), uv_barrier_wait(), uv_tty_get_vterm_state(), uv_tty_get_winsize(), uv_tty_init(), uv_tty_set_mode(), uv_tty_set_vterm_state(), and uv_tty_write_bufs().
UV_EXTERN int uv_send_buffer_size | ( | uv_handle_t * | handle, |
int * | value | ||
) |
Definition at line 588 of file uv-common.c.
References handle, SO_SNDBUF, uv__socket_sockopt(), and value.
Definition at line 925 of file aix.c.
References args_mem, uv__process_title::cap, done, err, init_process_title_mutex_once(), L, len, uv__process_title::len, length, MAX_TITLE_LENGTH, memcpy(), memset(), NULL, process_argc, process_argv, process_title, process_title_lock, process_title_mutex, process_title_mutex_once, process_title_ptr, setproctitle(), uv__process_title::str, uv__free(), uv__malloc(), uv__once_init(), uv__strdup(), uv_fatal_error(), uv_mutex_lock(), uv_mutex_unlock(), uv_once(), and uv_translate_sys_error().
Definition at line 872 of file aix.c.
References args_mem, argv, uv__process_title::cap, i, init_process_title_mutex_once(), uv__process_title::len, loop, memcpy(), NULL, original_exepath, process_argc, process_argv, process_title, process_title_mutex, process_title_mutex_once, s, uv__process_title::str, uv__malloc(), UV__PATH_MAX, uv__search_path(), uv__strdup(), uv_mutex_lock(), uv_mutex_unlock(), and uv_once().
UV_PRIVATE_REQ_TYPES UV_EXTERN int uv_shutdown | ( | uv_shutdown_t * | req, |
uv_stream_t * | handle, | ||
uv_shutdown_cb | cb | ||
) |
Definition at line 1259 of file stream.c.
References assert(), cb, handle, loop, REGISTER_HANDLE_REQ, req, uv__io_start(), uv__is_closing, uv__req_init, uv__stream_fd, uv__stream_osx_interrupt_select(), UV_HANDLE_SHUT, UV_HANDLE_SHUTTING, UV_HANDLE_WRITABLE, UV_REQ_INIT, and uv_want_endgame().
UV_EXTERN int uv_signal_init | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 319 of file signal.c.
References err, handle, loop, NULL, uv__handle_init, uv__signal_loop_once_init(), and UV_REQ_INIT.
Referenced by main(), thread1_worker(), thread2_worker(), and uv_loop_init().
UV_EXTERN int uv_signal_start | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
Definition at line 340 of file signal.c.
References handle, signum, and uv__signal_start().
Referenced by main(), thread1_worker(), thread2_worker(), and uv_spawn().
UV_EXTERN int uv_signal_start_oneshot | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
Definition at line 345 of file signal.c.
References handle, signum, and uv__signal_start().
UV_EXTERN int uv_signal_stop | ( | uv_signal_t * | handle | ) |
Definition at line 513 of file signal.c.
References assert(), handle, RB_REMOVE, uv__handle_stop, uv__is_closing, uv__signal_lock, uv__signal_stop(), and uv__signal_tree.
Referenced by signal_handler(), uv__process_close(), uv__signal_start(), uv_process_signal_req(), and uv_signal_close().
Definition at line 1526 of file core.c.
UV_EXTERN int uv_spawn | ( | uv_loop_t * | loop, |
uv_process_t * | handle, | ||
const uv_process_options_t * | options | ||
) |
Definition at line 408 of file process.c.
References ARRAY_SIZE, assert(), test-lz4-speed::cwd, uv_stdio_container_s::data, done, DWORD, EINTR, env, EPIPE, err, error(), exit_wait_callback(), find_path(), uv_stdio_container_s::flags, i, info(), int, L, loop, make_program_args(), make_program_env(), NULL, options, path, pid, process(), QUEUE_INIT, QUEUE_INSERT_TAIL, r, read(), search_path(), status, uv_stdio_container_s::stream, uv__chld(), uv__close(), uv__close_nocheckstdio(), UV__ERR, uv__free(), uv__handle_init, uv__handle_start, uv__init_global_job_handle(), uv__make_pipe(), uv__malloc(), uv__process_child_init(), uv__process_close_stream(), uv__process_init_stdio(), uv__process_open_stream(), uv__stdio_create(), uv__stdio_destroy(), uv__stdio_handle(), uv__stdio_size(), UV_CREATE_PIPE, uv_fatal_error(), uv_global_job_handle_, uv_global_job_handle_init_guard_, UV_INHERIT_FD, UV_INHERIT_STREAM, uv_once(), UV_PROCESS_DETACHED, uv_process_init(), UV_PROCESS_SETGID, UV_PROCESS_SETUID, UV_PROCESS_WINDOWS_HIDE, UV_PROCESS_WINDOWS_HIDE_CONSOLE, UV_PROCESS_WINDOWS_HIDE_GUI, UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS, uv_rwlock_wrlock(), uv_rwlock_wrunlock(), uv_signal_start(), uv_translate_sys_error(), and uv_utf8_to_utf16_alloc().
Referenced by invoke_cgi_script(), main(), and setup_workers().
Definition at line 562 of file uv-common.c.
References loop, and uv_loop_s::stop_flag.
Referenced by idle_cb().
UV_EXTERN size_t uv_stream_get_write_queue_size | ( | const uv_stream_t * | stream | ) |
Definition at line 77 of file uv-data-getter-setters.c.
UV_EXTERN int uv_stream_set_blocking | ( | uv_stream_t * | handle, |
int | blocking | ||
) |
Definition at line 1688 of file stream.c.
References handle, uv__nonblock, uv__stream_fd, and UV_HANDLE_BLOCKING_WRITES.
Definition at line 212 of file uv-common.c.
References err, uv__unknown_err_code(), UV_ERRNO_MAP, and UV_STRERROR_GEN.
Referenced by echo_write(), invoke_cgi_script(), main(), on_new_connection(), on_open(), on_read(), on_send(), on_type(), and on_write().
Definition at line 201 of file uv-common.c.
References buflen, err, snprintf, UV_ERRNO_MAP, and UV_STRERROR_GEN_R.
Definition at line 277 of file uv-common.c.
References addr, addrlen, AF_INET, AF_INET6, flags, handle, and uv__tcp_bind().
Referenced by main().
UV_EXTERN int uv_tcp_close_reset | ( | uv_tcp_t * | handle, |
uv_close_cb | close_cb | ||
) |
Definition at line 311 of file tcp.c.
References fd, handle, SO_LINGER, SOL_SOCKET, UV__ERR, uv__stream_fd, uv_close(), UV_HANDLE_SHUTTING, and uv_translate_sys_error().
UV_EXTERN int uv_tcp_connect | ( | uv_connect_t * | req, |
uv_tcp_t * | handle, | ||
const struct sockaddr * | addr, | ||
uv_connect_cb | cb | ||
) |
Definition at line 345 of file uv-common.c.
References addr, addrlen, AF_INET, AF_INET6, cb, handle, req, and uv__tcp_connect().
Referenced by on_resolved().
Definition at line 297 of file tcp.c.
References handle, and uv__getsockpeername().
Referenced by uv_tcp_open().
Definition at line 283 of file tcp.c.
References handle, and uv__getsockpeername().
Referenced by uv_tcp_open().
Definition at line 143 of file tcp.c.
References AF_UNSPEC, handle, loop, and uv_tcp_init_ex().
Referenced by main(), on_new_connection(), and on_resolved().
Definition at line 114 of file tcp.c.
References AF_INET, AF_INET6, AF_UNSPEC, domain, DWORD, err, flags, handle, loop, maybe_new_socket(), NULL, QUEUE_REMOVE, SOCK_STREAM, socket, uv__stream_init(), uv_stream_init(), uv_tcp_set_socket(), and uv_translate_sys_error().
Referenced by uv_tcp_init().
Definition at line 428 of file tcp.c.
References err, handle, uv__stream_fd, uv__tcp_keepalive(), and UV_HANDLE_TCP_KEEPALIVE.
Definition at line 410 of file tcp.c.
References err, handle, uv__stream_fd, uv__tcp_nodelay(), and UV_HANDLE_TCP_NODELAY.
UV_EXTERN int uv_tcp_open | ( | uv_tcp_t * | handle, |
uv_os_sock_t | sock | ||
) |
Definition at line 267 of file tcp.c.
References err, handle, int, SOL_SOCKET, uv__fd_exists(), uv__nonblock, uv__stream_open(), uv_connection_init(), UV_HANDLE_BOUND, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_tcp_getpeername(), uv_tcp_getsockname(), uv_tcp_set_socket(), and uv_translate_sys_error().
Definition at line 450 of file tcp.c.
References handle, UV_HANDLE_CONNECTION, UV_HANDLE_LISTENING, UV_HANDLE_TCP_ACCEPT_STATE_CHANGING, and UV_HANDLE_TCP_SINGLE_ACCEPT.
UV_EXTERN int uv_thread_create | ( | uv_thread_t * | tid, |
uv_thread_cb | entry, | ||
void * | arg | ||
) |
Definition at line 210 of file thread.c.
References uv_thread_options_s::flags, uv_thread_create_ex(), and UV_THREAD_NO_FLAGS.
Referenced by init_threads(), and main().
UV_EXTERN int uv_thread_create_ex | ( | uv_thread_t * | tid, |
const uv_thread_options_t * | params, | ||
uv_thread_cb | entry, | ||
void * | arg | ||
) |
Definition at line 216 of file thread.c.
References arg(), EACCES, EAGAIN, EINVAL, thread_ctx::entry, err, f, uv_thread_options_s::flags, HANDLE, in, NULL, uv_thread_options_s::stack_size, sysinfo, thread_stack_size(), UV__ERR, uv__free(), uv__malloc(), uv__thread_start(), and UV_THREAD_HAS_STACK_SIZE.
Referenced by uv_thread_create().
UV_EXTERN int uv_thread_equal | ( | const uv_thread_t * | t1, |
const uv_thread_t * | t2 | ||
) |
Definition at line 277 of file thread.c.
References benchmark::t1.
UV_EXTERN int uv_thread_join | ( | uv_thread_t * | tid | ) |
Definition at line 272 of file thread.c.
References NULL, UV__ERR, and uv_translate_sys_error().
Referenced by main(), uv__stream_close(), and uv__threadpool_cleanup().
UV_EXTERN uv_thread_t uv_thread_self | ( | void | ) |
Definition at line 268 of file thread.c.
References uv__current_thread_init_guard, uv__current_thread_key, uv__init_current_thread_key(), uv_key_get(), and uv_once().
UV_EXTERN int uv_timer_again | ( | uv_timer_t * | handle | ) |
Definition at line 110 of file timer.c.
References handle, NULL, uv_timer_start(), and uv_timer_stop().
Referenced by uv__run_timers().
UV_EXTERN uint64_t uv_timer_get_due_in | ( | const uv_timer_t * | handle | ) |
UV_EXTERN uint64_t uv_timer_get_repeat | ( | const uv_timer_t * | handle | ) |
UV_EXTERN int uv_timer_init | ( | uv_loop_t * | loop, |
uv_timer_t * | handle | ||
) |
Definition at line 58 of file timer.c.
References handle, loop, NULL, and uv__handle_init.
Referenced by eof_timer_init(), main(), and uv_fs_poll_start().
UV_EXTERN void uv_timer_set_repeat | ( | uv_timer_t * | handle, |
uint64_t | repeat | ||
) |
UV_EXTERN int uv_timer_start | ( | uv_timer_t * | handle, |
uv_timer_cb | cb, | ||
uint64_t | timeout, | ||
uint64_t | repeat | ||
) |
Definition at line 66 of file timer.c.
References cb, handle, NULL, repeat(), timeout, timer_heap(), timer_less_than(), uv__handle_start, uv__is_active, uv__is_closing, and uv_timer_stop().
Referenced by eof_timer_start(), main(), poll_cb(), start_timeout(), and uv_timer_again().
UV_EXTERN int uv_timer_stop | ( | uv_timer_t * | handle | ) |
Definition at line 97 of file timer.c.
References handle, timer_heap(), timer_less_than(), uv__handle_stop, and uv__is_active.
Referenced by curl_perform(), eof_timer_stop(), update(), uv__run_timers(), uv__timer_close(), uv_close(), uv_timer_again(), and uv_timer_start().
Definition at line 1249 of file core.c.
Referenced by SOCKOPT_SETTER(), uv__convert_utf16_to_utf8(), uv__convert_utf8_to_utf16(), uv__fast_poll_process_poll_req(), uv__get_handle(), uv__getaddrinfo_done(), uv__getaddrinfo_translate_error(), uv__getnameinfo_work(), uv__getpwuid_r(), uv__kill(), uv__pipe_getname(), uv__slow_poll_process_poll_req(), uv__tcp_bind(), uv__tcp_connect(), uv__tcp_try_write(), uv__tty_try_write(), uv__udp_connect(), uv__udp_disconnect(), uv__udp_init_ex(), uv__udp_recv_start(), uv__udp_send(), uv__udp_set_membership4(), uv__udp_set_membership6(), uv__udp_set_source_membership4(), uv__udp_set_source_membership6(), uv__udp_try_send(), uv_accept(), uv_chdir(), uv_cpu_info(), uv_cwd(), uv_exepath(), uv_fs_event_start(), uv_get_process_title(), uv_getaddrinfo(), uv_getrusage(), uv_if_indextoiid(), uv_if_indextoname(), uv_interface_addresses(), uv_kill(), uv_listen(), uv_os_getenv(), uv_os_gethostname(), uv_os_getpriority(), uv_os_setenv(), uv_os_setpriority(), uv_os_tmpdir(), uv_os_uname(), uv_os_unsetenv(), uv_pipe_bind(), uv_pipe_chmod(), uv_pipe_endgame(), uv_pipe_open(), uv_pipe_read_error(), uv_poll_close(), uv_poll_init_socket(), uv_process_fs_event_req(), uv_process_pipe_connect_req(), uv_process_pipe_write_req(), uv_process_proc_exit(), uv_process_tcp_accept_req(), uv_process_tcp_connect_req(), uv_process_tcp_read_req(), uv_process_tcp_write_req(), uv_process_tty_read_line_req(), uv_process_tty_read_raw_req(), uv_process_tty_write_req(), uv_process_udp_recv_req(), uv_process_udp_send_req(), uv_read_start(), uv_read_stop(), uv_resident_set_memory(), uv_rwlock_init(), uv_sem_init(), uv_set_process_title(), uv_spawn(), uv_tcp_close_reset(), uv_tcp_endgame(), uv_tcp_init_ex(), uv_tcp_open(), uv_thread_join(), uv_tty_get_winsize(), uv_tty_init(), uv_tty_set_mode(), uv_udp_open(), uv_udp_set_broadcast(), uv_udp_set_multicast_interface(), uv_uptime(), uv_write(), and uv_write2().
Definition at line 1507 of file stream.c.
References assert(), bufs, NULL, QUEUE_REMOVE, r, req, uv__count_bufs(), uv__free(), uv__io_active(), uv__io_stop(), uv__req_unregister, uv__stream_osx_interrupt_select(), uv__tcp_try_write(), uv__tty_try_write(), uv__write_req_size(), UV_HANDLE_CLOSING, UV_HANDLE_WRITABLE, uv_try_write_cb(), and uv_write().
UV_EXTERN int uv_tty_get_vterm_state | ( | uv_tty_vtermstate_t * | state | ) |
Definition at line 400 of file tty.c.
References uv__vterm_state, uv_sem_post(), uv_sem_wait(), and uv_tty_output_lock.
Definition at line 297 of file tty.c.
References EINTR, err, height, info(), ioctl, TIOCGWINSZ, tty, UV__ERR, uv__stream_fd, uv_sem_post(), uv_sem_wait(), uv_translate_sys_error(), uv_tty_output_lock, uv_tty_update_virtual_window(), uv_tty_virtual_height, uv_tty_virtual_width, width, winsize::ws_col, and winsize::ws_row.
Referenced by main().
Definition at line 123 of file tty.c.
References ANSI_NORMAL, DWORD, EINTR, F_GETFL, F_SETFL, FALSE, fcntl, fd, flags, handle, HANDLE, INVALID_HANDLE_VALUE, loop, memset(), NULL, O_ACCMODE, O_NOCTTY, O_RDONLY, O_WRONLY, path, QUEUE_REMOVE, r, skip(), tty, type, uv__close(), uv__determine_vterm_state(), uv__dup2_cloexec(), UV__ERR, uv__get_osfhandle(), uv__need_check_vterm_state, uv__nonblock, uv__once_init(), uv__open_cloexec(), uv__stream_init(), uv__stream_open(), uv__tty_is_slave(), uv_connection_init(), UV_FILE, uv_guess_handle(), UV_HANDLE_BLOCKING_WRITES, UV_HANDLE_BOUND, UV_HANDLE_READABLE, UV_HANDLE_TTY_READABLE, UV_HANDLE_WRITABLE, uv_null_buf_, uv_sem_post(), uv_sem_wait(), uv_stream_init(), uv_translate_sys_error(), uv_tty_capture_initial_style(), UV_TTY_MODE_NORMAL, uv_tty_output_lock, uv_tty_update_virtual_window(), and UV_UNKNOWN_HANDLE.
Referenced by main().
Definition at line 378 of file tty.c.
References err, orig_termios, orig_termios_fd, TCSANOW, termios_spinlock, and UV__ERR.
UV_EXTERN int uv_tty_set_mode | ( | uv_tty_t * | tty, |
uv_tty_mode_t | mode | ||
) |
Definition at line 250 of file tty.c.
References BRKINT, CS8, DWORD, ECHO, err, fd, flags, ICANON, ICRNL, IEXTEN, INPCK, ISIG, ISTRIP, IXON, NULL, ONLCR, orig_termios, orig_termios_fd, TCSADRAIN, termios_spinlock, autogen_x86imm::tmp, tty, UV__ERR, uv__stream_fd, uv__tty_make_raw(), UV_HANDLE_READING, UV_HANDLE_TTY_RAW, UV_HANDLE_TTY_READABLE, uv_sem_post(), uv_sem_wait(), uv_translate_sys_error(), UV_TTY_MODE_IO, UV_TTY_MODE_NORMAL, UV_TTY_MODE_RAW, uv_tty_output_lock, uv_tty_read_start(), uv_tty_read_stop(), VMIN, and VTIME.
Referenced by main().
UV_EXTERN void uv_tty_set_vterm_state | ( | uv_tty_vtermstate_t | state | ) |
Definition at line 397 of file tty.c.
References FALSE, uv__need_check_vterm_state, uv__vterm_state, uv_sem_post(), uv_sem_wait(), and uv_tty_output_lock.
Definition at line 365 of file uv-common.c.
References addr, addrlen, AF_INET, AF_INET6, handle, NULL, uv__udp_connect(), uv__udp_disconnect(), and UV_HANDLE_UDP_CONNECTED.
Definition at line 85 of file uv-data-getter-setters.c.
References handle.
Definition at line 81 of file uv-data-getter-setters.c.
References handle.
Definition at line 1276 of file udp.c.
References handle, and uv__getsockpeername().
Referenced by uv__udp_is_connected().
Definition at line 1286 of file udp.c.
References handle, and uv__getsockpeername().
Referenced by uv__udp_is_bound().
Definition at line 321 of file uv-common.c.
References AF_UNSPEC, handle, loop, and uv_udp_init_ex().
Referenced by main().
UV_EXTERN int uv_udp_open | ( | uv_udp_t * | handle, |
uv_os_sock_t | sock | ||
) |
Definition at line 991 of file udp.c.
References err, handle, int, SOL_SOCKET, uv__fd_exists(), uv__nonblock, uv__set_reuse(), uv__udp_is_bound(), uv__udp_is_connected(), UV_HANDLE_BOUND, UV_HANDLE_UDP_CONNECTED, uv_translate_sys_error(), and uv_udp_set_socket().
Referenced by uv_accept().
UV_EXTERN int uv_udp_recv_start | ( | uv_udp_t * | handle, |
uv_alloc_cb | alloc_cb, | ||
uv_udp_recv_cb | recv_cb | ||
) |
Definition at line 468 of file uv-common.c.
References handle, NULL, and uv__udp_recv_start().
Referenced by main().
Definition at line 478 of file uv-common.c.
References handle, and uv__udp_recv_stop().
Referenced by on_read(), uv_process_udp_recv_req(), and uv_udp_close().
UV_EXTERN 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, | ||
uv_udp_send_cb | send_cb | ||
) |
Definition at line 438 of file uv-common.c.
References addr, addrlen, bufs, handle, req, uv__udp_check_before_send(), and uv__udp_send().
Referenced by main().
Definition at line 1128 of file udp.c.
References handle, SO_BROADCAST, SOL_SOCKET, UV__ERR, uv_translate_sys_error(), and value.
Referenced by main().
UV_EXTERN int uv_udp_set_membership | ( | uv_udp_t * | handle, |
const char * | multicast_addr, | ||
const char * | interface_addr, | ||
uv_membership | membership | ||
) |
Definition at line 1017 of file udp.c.
References AF_INET, AF_INET6, err, handle, uv__udp_maybe_deferred_bind(), uv__udp_set_membership4(), uv__udp_set_membership6(), uv_ip4_addr(), uv_ip6_addr(), and UV_UDP_REUSEADDR.
Definition at line 1227 of file udp.c.
References AF_INET, AF_INET6, assert(), handle, memset(), in_addr::s_addr, sockaddr_in6::sin6_scope_id, sockaddr_in::sin_addr, UV__ERR, UV_HANDLE_IPV6, uv_ip4_addr(), uv_ip6_addr(), and uv_translate_sys_error().
Definition at line 1203 of file udp.c.
References handle, uv__setsockopt(), uv__setsockopt_maybe_char(), and UV_HANDLE_IPV6.
Definition at line 1178 of file udp.c.
References handle, uv__setsockopt(), uv__setsockopt_maybe_char(), and UV_HANDLE_IPV6.
UV_EXTERN int uv_udp_set_source_membership | ( | uv_udp_t * | handle, |
const char * | multicast_addr, | ||
const char * | interface_addr, | ||
const char * | source_addr, | ||
uv_membership | membership | ||
) |
Definition at line 1041 of file udp.c.
References err, handle, uv__sockaddr::in, uv__sockaddr::in6, uv__udp_set_source_membership4(), uv__udp_set_source_membership6(), uv_ip4_addr(), and uv_ip6_addr().
Definition at line 1141 of file udp.c.
References handle, uv__setsockopt(), uv__setsockopt_maybe_char(), and UV_HANDLE_IPV6.
UV_EXTERN int uv_udp_try_send | ( | uv_udp_t * | handle, |
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
const struct sockaddr * | addr | ||
) |
Definition at line 454 of file uv-common.c.
References addr, addrlen, bufs, handle, uv__udp_check_before_send(), and uv__udp_try_send().
Definition at line 980 of file udp.c.
References handle, once, UV_HANDLE_UDP_RECVMMSG, and uv_once().
Referenced by uv__udp_recvmsg().
UV_EXTERN void uv_unref | ( | uv_handle_t * | handle | ) |
Definition at line 552 of file uv-common.c.
References handle, and uv__handle_unref.
Referenced by eof_timer_init(), and main().
Definition at line 425 of file core.c.
References assert(), loop, and uv__hrtime().
Referenced by uv__poll(), uv__poll_wine(), uv_loop_init(), and uv_run().
Definition at line 1017 of file aix.c.
References ARRAY_SIZE, buffer_size, CLOCK_BOOTTIME, DWORD, EINVAL, entries(), i, info(), L, LONG, NULL, r, sp, sysinfo, time, timespec::tv_sec, UV__ERR, uv__free(), uv__malloc(), uv_translate_sys_error(), v, value, and which.
Definition at line 38 of file version.c.
References UV_VERSION_HEX.
UV_EXTERN void uv_walk | ( | uv_loop_t * | loop, |
uv_walk_cb | walk_cb, | ||
void * | arg | ||
) |
Definition at line 486 of file uv-common.c.
References h, uv_loop_s::handle_queue, loop, queue, QUEUE_DATA, QUEUE_EMPTY, QUEUE_HEAD, QUEUE_INSERT_TAIL, QUEUE_MOVE, QUEUE_REMOVE, and UV_HANDLE_INTERNAL.
UV_EXTERN int uv_write | ( | uv_write_t * | req, |
uv_stream_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_write_cb | cb | ||
) |
Definition at line 1492 of file stream.c.
References assert(), bufs, cb, err, handle, loop, NULL, req, uv__pipe_write(), UV_HANDLE_WRITABLE, uv_tcp_write(), uv_translate_sys_error(), uv_tty_write(), and uv_write2().
Referenced by echo_read(), main(), update(), uv_try_write(), uv_write2(), and write_data().
UV_EXTERN int uv_write2 | ( | uv_write_t * | req, |
uv_stream_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_stream_t * | send_handle, | ||
uv_write_cb | cb | ||
) |
Definition at line 1393 of file stream.c.
References ARRAY_SIZE, assert(), bufs, cb, err, handle, loop, memcpy(), NULL, QUEUE_INIT, QUEUE_INSERT_TAIL, req, uv__count_bufs(), uv__handle_fd(), uv__io_start(), uv__malloc(), uv__pipe_write(), uv__req_init, uv__stream_fd, uv__stream_osx_interrupt_select(), uv__write(), UV_HANDLE_BLOCKING_WRITES, UV_HANDLE_WRITABLE, uv_translate_sys_error(), and uv_write().
Referenced by on_new_connection(), and uv_write().