Lines Matching refs:function
31 Replacement function for :man:`malloc(3)`.
36 Replacement function for :man:`realloc(3)`.
41 Replacement function for :man:`calloc(3)`.
46 Replacement function for :man:`free(3)`.
245 .. c:function:: uv_handle_type uv_guess_handle(uv_file file)
251 For :man:`isatty(3)` equivalent functionality use this function and test
254 .. c:function:: int uv_replace_allocator(uv_malloc_func malloc_func, uv_realloc_func realloc_func, …
262 This function must be called before any other libuv function is called or
266 On success, it returns 0, if any of the function pointers is `NULL` it
276 .. c:function:: void uv_library_shutdown(void);
292 .. c:function:: uv_buf_t uv_buf_init(char* base, unsigned int len)
300 .. c:function:: char** uv_setup_args(int argc, char** argv)
304 points to. This function should be called exactly once, at program start-up.
313 .. c:function:: int uv_get_process_title(char* buffer, size_t size)
316 before calling this function on Unix and AIX systems. If `uv_setup_args`
320 character, the function returns `UV_ENOBUFS`.
332 .. c:function:: int uv_set_process_title(const char* title)
335 calling this function on Unix and AIX systems. If `uv_setup_args` has not
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)
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)
399 .. c:function:: void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count)
403 .. c:function:: int uv_cpumask_size(void)
410 .. c:function:: int uv_interface_addresses(uv_interface_address_t** addresses, int* count)
416 .. c:function:: void uv_free_interface_addresses(uv_interface_address_t* addresses, int count)
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)
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)
512 this function.
514 .. c:function:: int uv_cwd(char* buffer, size_t* size)
517 current working directory is too large to fit in `buffer`, this function
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)
575 meaning, and shell is `NULL`. After successfully calling this function, the
581 .. c:function:: int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid)
587 meaning, and shell is `NULL`. After successfully calling this function, the
593 .. c:function:: int uv_os_get_group(uv_group_t* group, uv_uid_t gid)
598 are set to -1 and have no meaning. After successfully calling this function,
604 .. c:function:: void uv_os_free_group(uv_passwd_t* pwd)
610 .. c:function:: void uv_os_free_passwd(uv_passwd_t* pwd)
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)
635 This function currently only returns a non-zero value on Linux, based
640 .. c:function:: uint64_t uv_get_available_memory(void)
648 This function currently only returns a value that is different from
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)
700 This function is meant for ad hoc debugging, there is no API/ABI
705 .. c:function:: void uv_print_active_handles(uv_loop_t* loop, FILE* stream)
711 This function is meant for ad hoc debugging, there is no API/ABI
716 .. c:function:: int uv_os_environ(uv_env_item_t** envitems, int* count)
718 Retrieves all environment variables. This function will allocate memory
722 This function is not thread safe.
726 .. c:function:: void uv_os_free_environ(uv_env_item_t* envitems, int count);
733 .. c:function:: int uv_os_getenv(const char* name, char* buffer, size_t* size)
737 calling this function, `size` must be set to the amount of storage available
744 This function is not thread safe.
748 .. c:function:: int uv_os_setenv(const char* name, const char* value)
754 This function is not thread safe.
758 .. c:function:: int uv_os_unsetenv(const char* name)
761 variable exists, this function returns successfully.
764 This function is not thread safe.
768 .. c:function:: int uv_os_gethostname(char* buffer, size_t* size)
771 `size` to the string length of the hostname. When calling this function,
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)
804 On Windows, this function utilizes `SetPriorityClass()`. The `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)