|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Utility stubs for WASM/Emscripten (backtrace, localtime) More...
Go to the source code of this file.
Functions | |
| int | platform_backtrace (void **buffer, int size) |
| char ** | platform_backtrace_symbols (void *const *buffer, int size) |
| void | platform_backtrace_symbols_destroy (char **symbols) |
| void | platform_print_backtrace_symbols (const char *label, char **symbols, int count, int skip_frames, int max_frames, backtrace_frame_filter_t filter) |
| void | platform_print_backtrace (int skip_frames) |
| asciichat_error_t | platform_localtime (const time_t *timer, struct tm *result) |
| int | platform_isatty (int fd) |
| void | platform_clear_error_state (void) |
| bool | platform_get_temp_dir (char *temp_dir, size_t path_size) |
| bool | platform_prompt_yes_no (const char *question, bool default_yes) |
| int | platform_get_last_error (void) |
| const char * | platform_get_home_dir (void) |
| void | platform_normalize_path_separators (char *path) |
| char * | platform_get_config_dir (void) |
| bool | platform_get_cwd (char *cwd, size_t path_size) |
| int | platform_path_strcasecmp (const char *a, const char *b, size_t n) |
| int | platform_is_regular_file (const char *path) |
Utility stubs for WASM/Emscripten (backtrace, localtime)
Definition in file util.c.
| int platform_backtrace | ( | void ** | buffer, |
| int | size | ||
| ) |
Definition at line 14 of file util.c.
Referenced by asciichat_fatal_with_context().
| char ** platform_backtrace_symbols | ( | void *const * | buffer, |
| int | size | ||
| ) |
Definition at line 20 of file util.c.
Referenced by asciichat_fatal_with_context().
| void platform_backtrace_symbols_destroy | ( | char ** | symbols | ) |
Definition at line 26 of file util.c.
Referenced by asciichat_clear_errno(), asciichat_errno_destroy(), asciichat_fatal_with_context(), and asciichat_set_errno().
| void platform_clear_error_state | ( | void | ) |
Definition at line 67 of file util.c.
Referenced by asciichat_clear_errno().
| char * platform_get_config_dir | ( | void | ) |
Definition at line 102 of file util.c.
Referenced by acds_identity_default_path(), and get_config_dir().
| bool platform_get_cwd | ( | char * | cwd, |
| size_t | path_size | ||
| ) |
Definition at line 108 of file util.c.
References platform_strlcpy().
Referenced by get_log_dir(), and path_validate_user_path().
| const char * platform_get_home_dir | ( | void | ) |
Definition at line 92 of file util.c.
Referenced by expand_path(), and path_validate_user_path().
| int platform_get_last_error | ( | void | ) |
| bool platform_get_temp_dir | ( | char * | temp_dir, |
| size_t | path_size | ||
| ) |
Definition at line 72 of file util.c.
References platform_strlcpy().
Referenced by get_log_dir(), and path_validate_user_path().
| int platform_is_regular_file | ( | const char * | path | ) |
Definition at line 122 of file util.c.
Referenced by discovery_keys_clear_cache(), discovery_keys_load_cached(), and path_validate_user_path().
| int platform_isatty | ( | int | fd | ) |
Definition at line 61 of file util.c.
Referenced by session_display_create(), terminal_is_stderr_tty(), terminal_is_stdin_tty(), terminal_is_stdout_tty(), terminal_should_color_output(), and terminal_should_use_control_sequences().
| asciichat_error_t platform_localtime | ( | const time_t * | timer, |
| struct tm * | result | ||
| ) |
Definition at line 48 of file util.c.
Referenced by asciichat_error_stats_print(), asciichat_print_error_context(), get_current_time_formatted(), manpage_fmt_write_title(), and time_format_now().
| void platform_normalize_path_separators | ( | char * | path | ) |
Definition at line 96 of file util.c.
Referenced by expand_path().
| int platform_path_strcasecmp | ( | const char * | a, |
| const char * | b, | ||
| size_t | n | ||
| ) |
Definition at line 117 of file util.c.
Referenced by path_is_within_base().
| void platform_print_backtrace | ( | int | skip_frames | ) |
| void platform_print_backtrace_symbols | ( | const char * | label, |
| char ** | symbols, | ||
| int | count, | ||
| int | skip_frames, | ||
| int | max_frames, | ||
| backtrace_frame_filter_t | filter | ||
| ) |
Definition at line 81 of file util.c.
Referenced by action_completions(), client_crypto_handshake(), config_create_default(), discovery_keys_verify_change(), options_config_generate_manpage_merged(), prompt_unknown_host(), prompt_unknown_host_no_identity(), and server_main().