| 
    My Project
    
   programmer's documentation 
   | 
 

Go to the source code of this file.
Macros | |
| #define | CS_APP_NAME "Code_Saturne" | 
| #define | CS_APP_VERSION PACKAGE_VERSION /* PACKAGE_VERSION from autoconf */ | 
| #define | CS_MEM_ALIGN 0 | 
| #define | CS_BASE_STRING_LEN 80 | 
Typedefs | |
| typedef void() | cs_base_atexit_t(void) | 
Functions | |
| static const char * | cs_base_strtf (bool boolean) | 
| Return a string "true" or "false" according to the boolean.  More... | |
| char * | cs_base_get_app_name (int argc, const char *argv[]) | 
| void | cs_base_logfile_head (int argc, char *argv[]) | 
| void | cs_base_mpi_init (int *argc, char **argv[]) | 
| void | cs_exit (int status) | 
| void | cs_base_error_init (bool signal_defaults) | 
| void | cs_base_mem_init (void) | 
| void | cs_base_mem_finalize (void) | 
| void | cs_base_time_summary (void) | 
| void | cs_base_update_status (const char *format,...) | 
| Update status file.  More... | |
| void | cs_base_trace_set (bool trace) | 
| void | cs_base_bft_printf_init (const char *log_name, bool rn_log_flag) | 
| void | cs_base_bft_printf_set (const char *log_name, bool rn_log_flag) | 
| const char * | cs_base_bft_printf_name (void) | 
| bool | cs_base_bft_printf_suppressed (void) | 
| void | cs_base_warn (const char *file_name, int line_num) | 
| void | cs_base_atexit_set (cs_base_atexit_t *const fct) | 
| char * | cs_base_string_f_to_c_create (const char *f_str, int f_len) | 
| void | cs_base_string_f_to_c_free (char **c_str) | 
| void | cs_base_option_string_clean (char *s) | 
| const char * | cs_base_get_localedir (void) | 
| const char * | cs_base_get_pkgdatadir (void) | 
| const char * | cs_base_get_pkglibdir (void) | 
| void | cs_base_check_bool (bool *b) | 
| FILE * | cs_base_open_properties_data_file (const char *base_name) | 
| void * | cs_base_dlopen (const char *filename) | 
| Load a dynamic library.  More... | |
| void * | cs_base_dlopen_plugin (const char *name) | 
| Load a plugin's dynamic library.  More... | |
| int | cs_base_dlopen_get_flags (void) | 
| Get flags for dlopen.  More... | |
| void | cs_base_dlopen_set_flags (int flags) | 
| Set flags for dlopen.  More... | |
| void | cs_base_dlclose (const char *filename, void *handle) | 
| Unload a dynamic library.  More... | |
| void * | cs_base_get_dl_function_pointer (void *handle, const char *name, bool errors_are_fatal) | 
| Get a shared library function pointer.  More... | |
| void | cs_base_backtrace_dump (FILE *f, int lv_start) | 
| Dump a stack trace to a file.  More... | |
| #define CS_APP_NAME "Code_Saturne" | 
| #define CS_APP_VERSION PACKAGE_VERSION /* PACKAGE_VERSION from autoconf */ | 
| #define CS_BASE_STRING_LEN 80 | 
| #define CS_MEM_ALIGN 0 | 
| typedef void() cs_base_atexit_t(void) | 
| void cs_base_atexit_set | ( | cs_base_atexit_t *const | fct | ) | 
| void cs_base_backtrace_dump | ( | FILE * | f, | 
| int | lv_start | ||
| ) | 
Dump a stack trace to a file.
| [in] | f | pointer to file in which to dump trace | 
| [in] | lv_start | start level in stack trace | 
| void cs_base_bft_printf_init | ( | const char * | log_name, | 
| bool | rn_log_flag | ||
| ) | 
| const char* cs_base_bft_printf_name | ( | void | ) | 
| void cs_base_bft_printf_set | ( | const char * | log_name, | 
| bool | rn_log_flag | ||
| ) | 
| bool cs_base_bft_printf_suppressed | ( | void | ) | 
| void cs_base_check_bool | ( | bool * | b | ) | 
| void cs_base_dlclose | ( | const char * | filename, | 
| void * | handle | ||
| ) | 
Unload a dynamic library.
Note that the dlopen underlying mechanism uses a reference count, so a library is really unloaded only one cs_base_dlclose has been called the same number of times as cs_base_dlopen.
| [in] | filename | optional path to shared library file name for error logging, or NULL | 
| [in] | handle | handle to shared library | 
| void* cs_base_dlopen | ( | const char * | filename | ) | 
Load a dynamic library.
| [in] | filename | path to shared library file. | 
| [in] | filename | path to shared library file | 
| int cs_base_dlopen_get_flags | ( | void | ) | 
Get flags for dlopen.
| void* cs_base_dlopen_plugin | ( | const char * | name | ) | 
Load a plugin's dynamic library.
This function is similar to cs_base_dlopen, execpt that only the base plugin file name (with no extension) needs to be given. It is assumed the file is available in the code's "pkglibdir" directory,
| [in] | name | path to shared library file | 
| void cs_base_dlopen_set_flags | ( | int | flags | ) | 
Set flags for dlopen.
| [in] | flags | flags to set | 
| void cs_base_error_init | ( | bool | signal_defaults | ) | 
| char* cs_base_get_app_name | ( | int | argc, | 
| const char * | argv[] | ||
| ) | 
| void* cs_base_get_dl_function_pointer | ( | void * | handle, | 
| const char * | name, | ||
| bool | errors_are_fatal | ||
| ) | 
Get a shared library function pointer.
| [in] | handle | handle to shared library | 
| [in] | name | name of function symbol in library | 
| [in] | errors_are_fatal | abort if true, silently ignore if false | 
| const char* cs_base_get_localedir | ( | void | ) | 
| const char* cs_base_get_pkgdatadir | ( | void | ) | 
| const char* cs_base_get_pkglibdir | ( | void | ) | 
| void cs_base_logfile_head | ( | int | argc, | 
| char * | argv[] | ||
| ) | 
| void cs_base_mem_finalize | ( | void | ) | 
| void cs_base_mem_init | ( | void | ) | 
| void cs_base_mpi_init | ( | int * | argc, | 
| char ** | argv[] | ||
| ) | 
| FILE* cs_base_open_properties_data_file | ( | const char * | base_name | ) | 
| void cs_base_option_string_clean | ( | char * | s | ) | 
| char* cs_base_string_f_to_c_create | ( | const char * | f_str, | 
| int | f_len | ||
| ) | 
| void cs_base_string_f_to_c_free | ( | char ** | c_str | ) | 
      
  | 
  inlinestatic | 
Return a string "true" or "false" according to the boolean.
| [in] | boolean | bool type | 
| void cs_base_time_summary | ( | void | ) | 
| void cs_base_trace_set | ( | bool | trace | ) | 
| void cs_base_update_status | ( | const char * | format, | 
| ... | |||
| ) | 
Update status file.
If the format string is NULL, the file is removed.
| [in] | format | format string, or NULL | 
| [in] | ... | format arguments | 
| void cs_base_warn | ( | const char * | file_name, | 
| int | line_num | ||
| ) | 
| void cs_exit | ( | int | status | ) | 
 1.8.16