Lines Matching refs:c
14 .. c:type:: uv_buf_t
18 .. c:member:: char* uv_buf_t.base
22 .. c:member:: size_t uv_buf_t.len
29 .. c:type:: void* (*uv_malloc_func)(size_t size)
32 See :c:func:`uv_replace_allocator`.
34 .. c:type:: void* (*uv_realloc_func)(void* ptr, size_t size)
37 See :c:func:`uv_replace_allocator`.
39 .. c:type:: void* (*uv_calloc_func)(size_t count, size_t size)
42 See :c:func:`uv_replace_allocator`.
44 .. c:type:: void (*uv_free_func)(void* ptr)
47 See :c:func:`uv_replace_allocator`.
49 .. c:type:: void (*uv_random_cb)(uv_random_t* req, int status, void* buf, size_t buflen)
51 Callback passed to :c:func:`uv_random`. `status` is non-zero in case of
53 :c:func:`uv_random`.
55 .. c:type:: uv_file
59 .. c:type:: uv_os_sock_t
63 .. c:type:: uv_os_fd_t
68 .. c:type:: uv_pid_t
74 .. c:type:: uv_timeval_t
77 Will be replaced with :c:type:`uv_timeval64_t` in libuv v2.0.
86 .. c:type:: uv_timeval64_t
97 .. c:type:: uv_timespec64_t
108 .. c:enum:: uv_clock_id
110 Clock source for :c:func:`uv_clock_gettime`.
119 .. c:type:: uv_rusage_t
150 .. c:type:: uv_cpu_info_t
168 .. c:type:: uv_interface_address_t
188 .. c:type:: uv_passwd_t
202 .. c:type:: uv_group_t
214 .. c:type:: uv_utsname_t
227 .. c:type:: uv_env_item_t
238 .. c:type:: uv_random_t
245 .. c:function:: uv_handle_type uv_guess_handle(uv_file file)
254 .. c:function:: int uv_replace_allocator(uv_malloc_func malloc_func, uv_realloc_func realloc_func, …
276 .. c:function:: void uv_library_shutdown(void);
284 .. warning:: Only call :c:func:`uv_library_shutdown()` once.
286 .. warning:: Don't call :c:func:`uv_library_shutdown()` when there are
290 :c:func:`uv_library_shutdown()`.
292 .. c:function:: uv_buf_t uv_buf_init(char* base, unsigned int len)
294 Constructor for :c:type:`uv_buf_t`.
300 .. c:function:: char** uv_setup_args(int argc, char** argv)
313 .. c:function:: int uv_get_process_title(char* buffer, size_t size)
332 .. c:function:: int uv_set_process_title(const char* title)
347 .. c:function:: int uv_resident_set_memory(size_t* rss)
351 .. c:function:: int uv_uptime(double* uptime)
355 .. c:function:: int uv_getrusage(uv_rusage_t* rusage)
361 See :c:type:`uv_rusage_t` for more details.
363 .. c:function:: uv_pid_t uv_os_getpid(void)
369 .. c:function:: uv_pid_t uv_os_getppid(void)
375 .. c:function:: unsigned int uv_available_parallelism(void)
391 .. c:function:: int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count)
394 have `count` elements and needs to be freed with :c:func:`uv_free_cpu_info`.
396 Use :c:func:`uv_available_parallelism` if you need to know how many CPUs
399 .. c:function:: void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count)
401 Frees the `cpu_infos` array previously allocated with :c:func:`uv_cpu_info`.
403 .. c:function:: int uv_cpumask_size(void)
410 .. c:function:: int uv_interface_addresses(uv_interface_address_t** addresses, int* count)
414 be freed by the user, calling :c:func:`uv_free_interface_addresses`.
416 .. c:function:: void uv_free_interface_addresses(uv_interface_address_t* addresses, int count)
418 Free an array of :c:type:`uv_interface_address_t` which was returned by
419 :c:func:`uv_interface_addresses`.
421 .. c:function:: void uv_loadavg(double avg[3])
428 .. c:function:: int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr)
432 .. c:function:: int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr)
436 .. c:function:: int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size)
440 .. c:function:: int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size)
444 .. c:function:: int uv_ip_name(const struct sockaddr *src, char *dst, size_t size)
448 .. c:function:: int uv_inet_ntop(int af, const void* src, char* dst, size_t size)
449 .. c:function:: int uv_inet_pton(int af, const char* src, void* dst)
455 .. c:macro:: UV_IF_NAMESIZE
462 .. c:function:: int uv_if_indextoname(unsigned int ifindex, char* buffer, size_t* size)
495 .. c:function:: int uv_if_indextoiid(unsigned int ifindex, char* buffer, size_t* size)
509 .. c:function:: int uv_exepath(char* buffer, size_t* size)
514 .. c:function:: int uv_cwd(char* buffer, size_t* size)
530 .. c:function:: int uv_chdir(const char* dir)
534 .. c:function:: int uv_os_homedir(char* buffer, size_t* size)
552 .. c:function:: int uv_os_tmpdir(char* buffer, size_t* size)
569 .. c:function:: int uv_os_get_passwd(uv_passwd_t* pwd)
577 :c:func:`uv_os_free_passwd`.
581 .. c:function:: int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid)
589 :c:func:`uv_os_free_passwd`.
593 .. c:function:: int uv_os_get_group(uv_group_t* group, uv_uid_t gid)
600 :c:func:`uv_os_free_group`.
604 .. c:function:: void uv_os_free_group(uv_passwd_t* pwd)
606 Frees the memory previously allocated with :c:func:`uv_os_get_group`.
610 .. c:function:: void uv_os_free_passwd(uv_passwd_t* pwd)
612 Frees the `pwd` memory previously allocated with :c:func:`uv_os_get_passwd`.
616 .. c:function:: uint64_t uv_get_free_memory(void)
621 .. c:function:: uint64_t uv_get_total_memory(void)
626 .. c:function:: uint64_t uv_get_constrained_memory(void)
632 for this value to be less than or greater than :c:func:`uv_get_total_memory`.
640 .. c:function:: uint64_t uv_get_available_memory(void)
643 This differs from :c:func:`uv_get_free_memory` in that it takes into account any
645 is unknown, the amount returned will be identical to :c:func:`uv_get_free_memory`.
649 what :c:func:`uv_get_free_memory` reports on Linux, based
654 .. c:function:: uint64_t uv_hrtime(void)
665 .. c:function:: int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t* ts)
678 .. c:function:: void uv_print_all_handles(uv_loop_t* loop, FILE* stream)
705 .. c:function:: void uv_print_active_handles(uv_loop_t* loop, FILE* stream)
707 This is the same as :c:func:`uv_print_all_handles` except only active handles
716 .. c:function:: int uv_os_environ(uv_env_item_t** envitems, int* count)
719 which must be freed by calling :c:func:`uv_os_free_environ`.
726 .. c:function:: void uv_os_free_environ(uv_env_item_t* envitems, int count);
729 :c:func:`uv_os_environ`.
733 .. c:function:: int uv_os_getenv(const char* name, char* buffer, size_t* size)
748 .. c:function:: int uv_os_setenv(const char* name, const char* value)
758 .. c:function:: int uv_os_unsetenv(const char* name)
768 .. c:function:: int uv_os_gethostname(char* buffer, size_t* size)
783 .. c:function:: int uv_os_getpriority(uv_pid_t pid, int* priority)
795 .. c:function:: int uv_os_setpriority(uv_pid_t pid, int priority)
825 .. c:function:: int uv_os_uname(uv_utsname_t* buffer)
834 .. c:function:: int uv_gettimeofday(uv_timeval64_t* tv)
841 .. c:function:: int uv_random(uv_loop_t* loop, uv_random_t* req, void* buf, size_t buflen, unsigned…
878 .. c:function:: void uv_sleep(unsigned int msec)
891 .. c:function:: size_t uv_utf16_length_as_wtf8(const uint16_t* utf16, ssize_t utf16_len)
899 .. c:function:: int uv_utf16_to_wtf8(const uint16_t* utf16, ssize_t utf16_len, char** wtf8_ptr, siz…
916 .. c:function:: ssize_t uv_wtf8_length_as_utf16(const char* wtf8)
923 .. c:function:: void uv_wtf8_to_utf16(const char* utf8, uint16_t* utf16, size_t utf16_len)