/libuv/docs/src/ |
H A D | threading.rst | 122 .. c:function:: int uv_thread_getcpu(void) 131 .. c:function:: uv_thread_t uv_thread_self(void) 157 .. c:function:: int uv_key_create(uv_key_t* key) 158 .. c:function:: void uv_key_delete(uv_key_t* key) 159 .. c:function:: void* uv_key_get(uv_key_t* key) 206 .. c:function:: void uv_sem_destroy(uv_sem_t* sem) 207 .. c:function:: void uv_sem_post(uv_sem_t* sem) 208 .. c:function:: void uv_sem_wait(uv_sem_t* sem) 209 .. c:function:: int uv_sem_trywait(uv_sem_t* sem) 221 at which function is called. [all …]
|
H A D | loop.rst | 61 .. c:function:: int uv_loop_init(uv_loop_t* loop) 96 .. c:function:: int uv_loop_close(uv_loop_t* loop) 103 .. c:function:: uv_loop_t* uv_default_loop(void) 115 This function is not thread safe. 137 .. c:function:: int uv_loop_alive(const uv_loop_t* loop) 142 .. c:function:: void uv_stop(uv_loop_t* loop) 149 .. c:function:: size_t uv_loop_size(void) 172 .. c:function:: uint64_t uv_now(const uv_loop_t* loop) 185 .. c:function:: void uv_update_time(uv_loop_t* loop) 199 .. c:function:: int uv_loop_fork(uv_loop_t* loop) [all …]
|
H A D | misc.rst | 31 Replacement function for :man:`malloc(3)`. 46 Replacement function for :man:`free(3)`. 262 This function must be called before any other libuv function is called or 363 .. c:function:: uv_pid_t uv_os_getpid(void) 403 .. c:function:: int uv_cpumask_size(void) 512 this function. 654 .. c:function:: uint64_t uv_hrtime(void) 722 This function is not thread safe. 744 This function is not thread safe. 754 This function is not thread safe. [all …]
|
H A D | prepare.rst | 34 .. c:function:: int uv_prepare_init(uv_loop_t* loop, uv_prepare_t* prepare) 36 Initialize the handle. This function always succeeds. 40 .. c:function:: int uv_prepare_start(uv_prepare_t* prepare, uv_prepare_cb cb) 42 Start the handle with the given callback. This function always succeeds, 47 .. c:function:: int uv_prepare_stop(uv_prepare_t* prepare) 50 This function always succeeds.
|
H A D | check.rst | 34 .. c:function:: int uv_check_init(uv_loop_t* loop, uv_check_t* check) 36 Initialize the handle. This function always succeeds. 40 .. c:function:: int uv_check_start(uv_check_t* check, uv_check_cb cb) 42 Start the handle with the given callback. This function always succeeds, 47 .. c:function:: int uv_check_stop(uv_check_t* check) 50 This function always succeeds.
|
H A D | handle.rst | 115 .. c:function:: int uv_is_active(const uv_handle_t* handle) 131 function, then it's active from the moment that function is called. 134 .. c:function:: int uv_is_closing(const uv_handle_t* handle) 159 .. c:function:: void uv_ref(uv_handle_t* handle) 166 .. c:function:: void uv_unref(uv_handle_t* handle) 169 is not referenced calling this function again will have no effect. 173 .. c:function:: int uv_has_ref(const uv_handle_t* handle) 179 .. c:function:: size_t uv_handle_size(uv_handle_type type) 233 itself has been closed, this function will return `UV_EBADF`. 245 .. c:function:: void* uv_handle_get_data(const uv_handle_t* handle) [all …]
|
H A D | tty.rst | 67 .. c:function:: int uv_tty_init(uv_loop_t* loop, uv_tty_t* handle, uv_file fd, int unused) 76 On Unix this function will determine the path of the fd of the terminal 81 This function is not thread safe on systems that don't support 98 .. c:function:: int uv_tty_set_mode(uv_tty_t* handle, uv_tty_mode_t mode) 105 .. c:function:: int uv_tty_reset_mode(void) 110 This function is async signal-safe on Unix platforms but can fail with error 114 .. c:function:: int uv_tty_get_winsize(uv_tty_t* handle, int* width, int* height) 120 .. c:function:: void uv_tty_set_vterm_state(uv_tty_vtermstate_t state) 127 This function is only meaningful on Windows systems. On Unix it is silently 132 .. c:function:: int uv_tty_get_vterm_state(uv_tty_vtermstate_t* state) [all …]
|
H A D | idle.rst | 42 .. c:function:: int uv_idle_init(uv_loop_t* loop, uv_idle_t* idle) 44 Initialize the handle. This function always succeeds. 48 .. c:function:: int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb) 50 Start the handle with the given callback. This function always succeeds, 55 .. c:function:: int uv_idle_stop(uv_idle_t* idle) 58 This function always succeeds.
|
H A D | fs.rst | 222 .. c:function:: void uv_fs_req_cleanup(uv_fs_t* req) 323 This function does not return the "." and ".." entries. 331 .. c:function:: int uv_fs_scandir_next(uv_fs_t* req, uv_dirent_t* ent) 502 .. c:function:: uv_fs_type uv_fs_get_type(const uv_fs_t* req) 508 .. c:function:: ssize_t uv_fs_get_result(const uv_fs_t* req) 514 .. c:function:: int uv_fs_get_system_error(const uv_fs_t* req) 521 .. c:function:: void* uv_fs_get_ptr(const uv_fs_t* req) 527 .. c:function:: const char* uv_fs_get_path(const uv_fs_t* req) 533 .. c:function:: uv_stat_t* uv_fs_get_statbuf(uv_fs_t* req) 544 .. c:function:: uv_os_fd_t uv_get_osfhandle(int fd) [all …]
|
H A D | stream.rst | 121 .. c:function:: int uv_accept(uv_stream_t* server, uv_stream_t* client) 124 connections. Call this function after receiving a :c:type:`uv_connection_cb` 125 to accept the connection. Before calling this function the client handle must 147 .. c:function:: int uv_read_stop(uv_stream_t*) 152 This function is idempotent and may be safely called on a stopped stream. 154 This function will always succeed; hence, checking its return value is 192 Extended write function for sending handles over a pipe. The pipe must be 213 Same as :c:func:`uv_try_write` and extended write function for sending 221 .. c:function:: int uv_is_readable(const uv_stream_t* handle) 225 .. c:function:: int uv_is_writable(const uv_stream_t* handle) [all …]
|
H A D | pipe.rst | 36 .. c:function:: int uv_pipe_init(uv_loop_t* loop, uv_pipe_t* handle, int ipc) 44 .. c:function:: int uv_pipe_open(uv_pipe_t* handle, uv_file file) 54 .. c:function:: int uv_pipe_bind(uv_pipe_t* handle, const char* name) 114 .. c:function:: int uv_pipe_getsockname(const uv_pipe_t* handle, char* buffer, size_t* size) 126 .. c:function:: int uv_pipe_getpeername(const uv_pipe_t* handle, char* buffer, size_t* size) 138 .. c:function:: void uv_pipe_pending_instances(uv_pipe_t* handle, int count) 146 .. c:function:: int uv_pipe_pending_count(uv_pipe_t* handle) 147 .. c:function:: uv_handle_type uv_pipe_pending_type(uv_pipe_t* handle) 157 .. c:function:: int uv_pipe_chmod(uv_pipe_t* handle, int flags) 162 function is blocking. [all …]
|
H A D | dll.rst | 28 .. c:function:: int uv_dlopen(const char* filename, uv_lib_t* lib) 33 .. c:function:: void uv_dlclose(uv_lib_t* lib) 37 .. c:function:: int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) 42 .. c:function:: const char* uv_dlerror(const uv_lib_t* lib)
|
H A D | tcp.rst | 53 .. c:function:: int uv_tcp_init(uv_loop_t* loop, uv_tcp_t* handle) 57 .. c:function:: int uv_tcp_init_ex(uv_loop_t* loop, uv_tcp_t* handle, unsigned int flags) 66 .. c:function:: int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock) 76 .. c:function:: int uv_tcp_nodelay(uv_tcp_t* handle, int enable) 80 .. c:function:: int uv_tcp_keepalive(uv_tcp_t* handle, int enable, unsigned int delay) 94 .. c:function:: int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int enable) 104 .. c:function:: int uv_tcp_bind(uv_tcp_t* handle, const struct sockaddr* addr, unsigned int flags) 111 call to this function does not guarantee that the call to :c:func:`uv_listen` or 133 this function will return an UV_ENOTSUP error. 135 .. c:function:: int uv_tcp_getsockname(const uv_tcp_t* handle, struct sockaddr* name, int* namelen) [all …]
|
H A D | timer.rst | 33 .. c:function:: int uv_timer_init(uv_loop_t* loop, uv_timer_t* handle) 37 .. c:function:: int uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t r… 50 .. c:function:: int uv_timer_stop(uv_timer_t* handle) 54 .. c:function:: int uv_timer_again(uv_timer_t* handle) 60 .. c:function:: void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) 77 .. c:function:: uint64_t uv_timer_get_repeat(const uv_timer_t* handle) 81 .. c:function:: uint64_t uv_timer_get_due_in(const uv_timer_t* handle)
|
H A D | request.rst | 68 .. c:function:: int uv_cancel(uv_req_t* req) 91 .. c:function:: size_t uv_req_size(uv_req_type type) 96 .. c:function:: void* uv_req_get_data(const uv_req_t* req) 102 .. c:function:: void uv_req_set_data(uv_req_t* req, void* data) 108 .. c:function:: uv_req_type uv_req_get_type(const uv_req_t* req) 114 .. c:function:: const char* uv_req_type_name(uv_req_type type)
|
H A D | udp.rst | 157 .. c:function:: int uv_udp_init(uv_loop_t* loop, uv_udp_t* handle) 176 .. c:function:: int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock) 184 sockets can also be passed to this function. 213 this function will return an UV_ENOTSUP error. 225 Calling this function with a `NULL` `addr` disconnects the handle. 309 .. c:function:: int uv_udp_set_multicast_loop(uv_udp_t* handle, int on) 323 .. c:function:: int uv_udp_set_multicast_ttl(uv_udp_t* handle, int ttl) 349 .. c:function:: int uv_udp_set_broadcast(uv_udp_t* handle, int on) 362 .. c:function:: int uv_udp_set_ttl(uv_udp_t* handle, int ttl) 459 .. c:function:: int uv_udp_using_recvmmsg(uv_udp_t* handle) [all …]
|
H A D | async.rst | 34 .. c:function:: int uv_async_init(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb) 43 .. c:function:: int uv_async_send(uv_async_t* async) 50 It's safe to call this function from any thread. The callback will be called on the 55 It's safe to call this function from a signal handler.
|
H A D | errors.rst | 11 When a function which takes a callback returns an error, the callback will never 232 function not implemented 356 .. c:function:: const char* uv_strerror(int err) 361 .. c:function:: char* uv_strerror_r(int err, char* buf, size_t buflen) 368 .. c:function:: const char* uv_err_name(int err) 373 .. c:function:: char* uv_err_name_r(int err, char* buf, size_t buflen) 380 .. c:function:: int uv_translate_sys_error(int sys_errno) 388 .. versionchanged:: 1.10.0 function declared public.
|
H A D | fs_poll.rst | 45 .. c:function:: int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle) 49 .. c:function:: int uv_fs_poll_start(uv_fs_poll_t* handle, uv_fs_poll_cb poll_cb, const char* path,… 57 .. c:function:: int uv_fs_poll_stop(uv_fs_poll_t* handle) 61 .. c:function:: int uv_fs_poll_getpath(uv_fs_poll_t* handle, char* buffer, size_t* size)
|
H A D | migration_010_100.rst | 190 In libuv 0.10 (and earlier versions) the `uv_read2_start` function was used to start reading 192 for such function looked like this: 231 This is now properly exposed through the :c:func:`uv_fileno` function. 238 libuv 0.10. In 1.0, this function got renamed to :c:func:`uv_fs_scandir`, since it's 242 result at a time by using the :c:func:`uv_fs_scandir_next` function. This function
|
H A D | process.rst | 243 .. c:function:: void uv_disable_stdio_inheritance(void) 249 It is recommended to call this function as early in your program as possible, 253 This function works on a best-effort basis: there is no guarantee that libuv can discover 257 .. c:function:: int uv_spawn(uv_loop_t* loop, uv_process_t* handle, const uv_process_options_t* opt… 260 successfully spawned, this function will return 0. Otherwise, the 275 .. c:function:: int uv_process_kill(uv_process_t* handle, int signum) 280 .. c:function:: int uv_kill(int pid, int signum) 285 .. c:function:: uv_pid_t uv_process_get_pid(const uv_process_t* handle)
|
H A D | signal.rst | 82 .. c:function:: int uv_signal_init(uv_loop_t* loop, uv_signal_t* signal) 86 .. c:function:: int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum) 90 .. c:function:: int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum) 97 .. c:function:: int uv_signal_stop(uv_signal_t* signal)
|
H A D | version.rst | 53 .. c:function:: unsigned int uv_version(void) 57 .. c:function:: const char* uv_version_string(void)
|
/libuv/test/ |
H A D | test-fs-fd-hash.c | 67 #define RUN_HASH(function) \ argument 70 function(fd); \ 75 #define RUN_COLLISIONS(function) \ argument 78 function(fd); \
|
/libuv/docs/src/guide/ |
H A D | threads.rst | 52 The second parameter is the function which will serve as the entry point for 151 In addition, libuv provides a convenience function ``uv_once()``. Multiple 152 threads can attempt to call ``uv_once()`` with a given guard and a function 153 pointer, **only the first one will win, the function will be called once and 193 task is done. A seemingly simple function, what makes ``uv_queue_work()`` 196 make sure that no function which runs periodically in the loop thread blocks 218 The actual task function is simple, nothing to show that it is going to be 233 The thread function will be launched in a separate thread, passed the 234 ``uv_work_t`` structure and once the function returns, the *after* function 241 Since libuv version `0.9.4` an additional function, ``uv_cancel()``, is [all …]
|