#include "cs_defs.h"
#include <stdio.h>
Go to the source code of this file.
|
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_bft_printf_init (const char *log_name, int r0_log_flag, int rn_log_flag) |
|
void | cs_base_bft_printf_set (const char *log_name, int r0_log_flag, int 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...
|
|
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...
|
|
#define CS_APP_NAME "Code_Saturne" |
#define CS_APP_VERSION PACKAGE_VERSION /* PACKAGE_VERSION from autoconf */ |
#define CS_BASE_STRING_LEN 64 |
typedef void( cs_base_atexit_t)(void) |
void cs_base_bft_printf_init |
( |
const char * |
log_name, |
|
|
int |
r0_log_flag, |
|
|
int |
rn_log_flag |
|
) |
| |
const char* cs_base_bft_printf_name |
( |
void |
| ) |
|
void cs_base_bft_printf_set |
( |
const char * |
log_name, |
|
|
int |
r0_log_flag, |
|
|
int |
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.
- Parameters
-
[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.
- Parameters
-
[in] | filename | path to shared library file. |
- Returns
- handle to shared library
- Parameters
-
[in] | filename | path to shared library file |
- Returns
- handle to shared library
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,
- Parameters
-
[in] | filename | path to shared library file |
- Returns
- handle to shared library
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.
- Parameters
-
[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 |
- Returns
- pointer to function in shared library
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 | ) |
|
void cs_base_time_summary |
( |
void |
| ) |
|
void cs_base_warn |
( |
const char * |
file_name, |
|
|
int |
line_num |
|
) |
| |
void cs_exit |
( |
int |
status | ) |
|