|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
File operation stubs for WASM. More...
Go to the source code of this file.
Functions | |
| FILE * | platform_fopen (const char *filename, const char *mode) |
| FILE * | platform_tmpfile (void) |
| size_t | platform_write_all (int fd, const void *buf, size_t count) |
| asciichat_error_t | platform_mkdir_recursive (const char *path, int mode) |
| asciichat_error_t | platform_find_config_file (const char *filename, config_file_list_t *list_out) |
| void | config_file_list_destroy (config_file_list_t *list) |
| ssize_t | platform_write (int fd, const void *buf, size_t count) |
| ssize_t | platform_read (int fd, void *buf, size_t count) |
| int | platform_open (const char *pathname, int flags,...) |
| int | platform_close (int fd) |
| int | platform_access (const char *pathname, int mode) |
| char * | platform_get_data_dir (void) |
File operation stubs for WASM.
Definition in file wasm/stubs/filesystem.c.
| void config_file_list_destroy | ( | config_file_list_t * | list | ) |
Definition at line 49 of file wasm/stubs/filesystem.c.
Referenced by check_known_host(), and config_load_system_and_user().
| int platform_access | ( | const char * | pathname, |
| int | mode | ||
| ) |
Definition at line 87 of file wasm/stubs/filesystem.c.
Referenced by get_discovery_database_dir(), and get_log_dir().
| int platform_close | ( | int | fd | ) |
Definition at line 83 of file wasm/stubs/filesystem.c.
Referenced by asciichat_instr_runtime_destroy(), check_known_host(), check_known_host_no_identity(), log_destroy(), log_disable_file_output(), log_init(), remove_known_host(), and session_display_destroy().
| asciichat_error_t platform_find_config_file | ( | const char * | filename, |
| config_file_list_t * | list_out | ||
| ) |
Definition at line 39 of file wasm/stubs/filesystem.c.
Referenced by check_known_host(), and config_load_system_and_user().
| FILE * platform_fopen | ( | const char * | filename, |
| const char * | mode | ||
| ) |
Definition at line 18 of file wasm/stubs/filesystem.c.
Referenced by acds_identity_load(), action_completions(), add_known_host(), colorscheme_export_scheme(), config_create_default(), discovery_keys_save_cached(), get_manpage_template(), gpg_sign_with_key(), options_config_generate_manpage_merged(), options_config_generate_manpage_template(), parse_keys_from_file(), parse_manpage_sections(), parse_private_key(), parse_public_key(), parse_ssh_private_key(), update_check_load_cache(), update_check_save_cache(), validate_ssh_key_file(), and wav_writer_open().
| char * platform_get_data_dir | ( | void | ) |
Definition at line 93 of file wasm/stubs/filesystem.c.
Referenced by get_data_dir().
| asciichat_error_t platform_mkdir_recursive | ( | const char * | path, |
| int | mode | ||
| ) |
Definition at line 33 of file wasm/stubs/filesystem.c.
Referenced by acds_identity_save(), config_create_default(), and get_discovery_database_dir().
| int platform_open | ( | const char * | pathname, |
| int | flags, | ||
| ... | |||
| ) |
Definition at line 70 of file wasm/stubs/filesystem.c.
References args.
Referenced by acds_identity_save(), check_known_host(), check_known_host_no_identity(), log_init(), main(), parse_gpg_keys_from_response(), remove_known_host(), and test_logging_disable().
| ssize_t platform_read | ( | int | fd, |
| void * | buf, | ||
| size_t | count | ||
| ) |
Definition at line 66 of file wasm/stubs/filesystem.c.
| FILE * platform_tmpfile | ( | void | ) |
Definition at line 22 of file wasm/stubs/filesystem.c.
Referenced by manpage_parser_parse_memory().
| ssize_t platform_write | ( | int | fd, |
| const void * | buf, | ||
| size_t | count | ||
| ) |
Definition at line 55 of file wasm/stubs/filesystem.c.
References wasm_log_to_console().
Referenced by log_json_write(), and platform_write_all().
| size_t platform_write_all | ( | int | fd, |
| const void * | buf, | ||
| size_t | count | ||
| ) |
Definition at line 26 of file wasm/stubs/filesystem.c.