libjf API reference guide

Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

jf_errors.h File Reference

#include <jf/jf_config.h>
#include <jf/jf_defines.h>

Go to the source code of this file.

Defines

#define CATCH   ExcpHand:
#define FALSE   0
#define JF_RC_BYPASSED_OPERATION   +3
#define JF_RC_COLD_RECOVERY_NEEDED   -18
#define JF_RC_CONTAINER_FULL   -6
#define JF_RC_DAMAGED_JOURNAL   -19
#define JF_RC_DESTINATION_TOO_SMALL   -16
#define JF_RC_EOF   +2
#define JF_RC_FCLOSE_ERROR   -111
#define JF_RC_FDATASYNC_ERROR   -118
#define JF_RC_FFLUSH_ERROR   -116
#define JF_RC_FGETC_ERROR   -120
#define JF_RC_FILE_ALREADY_EXISTS   -15
#define JF_RC_FILE_NOT_ABOVE_JOURNAL   -17
#define JF_RC_FILENO_ERROR   -122
#define JF_RC_FOPEN_ERROR   -110
#define JF_RC_FPUTC_ERROR   -119
#define JF_RC_FREAD_ERROR   -113
#define JF_RC_FSEEK_ERROR   -115
#define JF_RC_FSTAT_ERROR   -124
#define JF_RC_FSYNC_ERROR   -117
#define JF_RC_FTELL_ERROR   -114
#define JF_RC_FTRUNCATE_ERROR   -121
#define JF_RC_FWRITE_ERROR   -112
#define JF_RC_GETTIMEOFDAY_ERROR   -128
#define JF_RC_INTERNAL_ERROR   -1
#define JF_RC_INVALID_CTRL_CODE   -12
#define JF_RC_INVALID_OPTION   -10
#define JF_RC_INVALID_PATH_NAME   -14
#define JF_RC_INVALID_STATUS   -11
#define JF_RC_INVALID_STREAM_POSITION   -13
#define JF_RC_JOURNAL_OUT_OF_SPACE   -20
#define JF_RC_MAGIC_NUMBER_ERROR   -3
#define JF_RC_MALLOC_ERROR   -100
#define JF_RC_NULL_OBJECT   -5
#define JF_RC_OBJ_CORRUPTED   -9
#define JF_RC_OBJ_NOT_FOUND   +1
#define JF_RC_OBJ_NOT_INITIALIZED   -8
#define JF_RC_OBJ_NOT_VOID   -7
#define JF_RC_OK   0
#define JF_RC_OUT_OF_RANGE   -2
#define JF_RC_REALLOC_ERROR   -101
#define JF_RC_RENAME_ERROR   -123
#define JF_RC_SYSCONF_ERROR   -127
#define JF_RC_TIMES_ERROR   -126
#define JF_RC_UNLINK_ERROR   -129
#define JF_RC_UNSUPPORTED_FUNCTION   -1000
#define JF_RC_VERSION_ERROR   -4
#define JF_RC_VSNPRINTF_ERROR   -125
#define THROW(e)   { excp = e; goto ExcpHand; }
#define TRUE   1

Functions

LIBJF_EXPORT const char * jf_strerror (int ret_cod)


Define Documentation

#define CATCH   ExcpHand:
 

Definition at line 261 of file jf_errors.h.

Referenced by bench_00_ljf_run(), bench_00_sio_run(), bench_01_ljf_run(), bench_01_sio_run(), bench_02_ljf_pre(), bench_02_ljf_run(), bench_02_sio_run(), bench_03_ljf_run(), bench_03_sio_run(), bench_table_create(), bench_table_unlink(), bench_test_results_compute(), bench_test_results_compute_one(), bench_X0_ljf_post(), bench_X0_ljf_pre(), bench_X0_sio_post(), bench_X0_sio_pre(), bench_X1_ljf_pre(), bench_X1_sio_pre(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_clear(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_content(), jf_cache_file_split(), jf_cache_file_trace(), jf_file_build_open_mode(), jf_file_check_mode(), jf_file_close(), jf_file_getc(), jf_file_gets(), jf_file_open(), jf_file_printf(), jf_file_putc(), jf_file_puts(), jf_file_read(), jf_file_seek(), jf_file_size(), jf_file_vprintf(), jf_file_write(), jf_journal_add_byte_data(), jf_journal_analyze(), jf_journal_apply_changes(), jf_journal_attach_file(), jf_journal_close(), jf_journal_close_detach_file(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_cold_recovery_update_lists(), jf_journal_commit_int(), jf_journal_create(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_init(), jf_journal_file_set_cache_file(), jf_journal_file_set_options(), jf_journal_file_set_path(), jf_journal_file_tab_add(), jf_journal_file_tab_del(), jf_journal_file_tab_dump(), jf_journal_file_tab_init(), jf_journal_file_tab_restore(), jf_journal_file_tab_search(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_init(), jf_journal_load(), jf_journal_new_unit_of_work(), jf_journal_open(), jf_journal_open_attach_file(), jf_journal_remove_changes(), jf_journal_reopen_files(), jf_journal_restore_files(), jf_journal_rollback_int(), jf_journal_rotate(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_scan_search(), jf_journal_scan_undo(), jf_journal_set_all_sync(), jf_journal_shift_files(), jf_journal_sync(), jf_journal_trace_record(), jf_journal_update_file_table(), jf_journal_util_join(), jf_journal_util_leave(), jf_journal_util_rename(), jf_journal_write_record(), jf_journal_write_records(), jf_recind_list_add(), jf_recind_pool_create(), jf_recind_seq_add(), jf_stream_size(), jf_stream_sync(), jf_stream_truncate(), jf_timer_reset(), jf_timer_start(), jf_timer_stop(), jf_translate_CRLF_NL(), and jf_translate_NL_CRLF().

#define FALSE   0
 

Definition at line 280 of file jf_errors.h.

Referenced by bench_test_results_clean(), bench_test_time_reset(), jf_cache_file_chunk_is_used(), jf_cache_file_chunk_prepare(), jf_cache_file_limit_exceeded(), jf_cache_file_merge(), jf_cache_file_search_hint(), jf_file_build_open_mode(), jf_file_eof(), jf_file_open(), jf_file_reset(), jf_journal_add_byte_data(), jf_journal_cold_recovery(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_get_byte_data(), jf_journal_init(), jf_journal_is_all_sync(), jf_journal_is_sync(), jf_journal_open(), jf_journal_open_attach_file(), jf_journal_rollback_int(), jf_journal_scan_undo(), jf_journal_util_join(), jf_journal_util_leave(), jf_journal_util_rename(), jf_set_default_file_open_opts(), jf_set_default_journal_opts(), jf_timer_reset(), jf_timer_stop(), jf_translate_CRLF_NL(), and main().

#define JF_RC_BYPASSED_OPERATION   +3
 

An operation can not been performed but can safely bypassed has been requested: the program can go on as no operation was requested Definition at line 56 of file jf_errors.h.

Referenced by jf_strerror().

#define JF_RC_COLD_RECOVERY_NEEDED   -18
 

At least one journaled file is in "recovery pending" status and journal must be open with explicit "recovery_enabled" flag (see jf_journal_opts_s) Definition at line 144 of file jf_errors.h.

Referenced by jf_journal_cold_recovery(), jf_strerror(), and main().

#define JF_RC_CONTAINER_FULL   -6
 

The container is full and can NOT store more elements Definition at line 92 of file jf_errors.h.

Referenced by jf_journal_file_tab_add(), and jf_strerror().

#define JF_RC_DAMAGED_JOURNAL   -19
 

Journal file is damaged and a "forced cold recovery" should be attempted to fix it (see jf_journal_opts_s) Definition at line 149 of file jf_errors.h.

Referenced by jf_journal_cold_recovery(), jf_journal_cold_recovery_prep_pool(), jf_strerror(), and main().

#define JF_RC_DESTINATION_TOO_SMALL   -16
 

The destination object is too small to store passed data Definition at line 134 of file jf_errors.h.

Referenced by jf_cache_file_chunk_set_content(), and jf_strerror().

#define JF_RC_EOF   +2
 

End Of File: used to signal caller the stream (journaled file) has reached end of file Definition at line 51 of file jf_errors.h.

Referenced by jf_file_gets(), jf_journal_cold_recovery_prep_pool(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_get_byte_data(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_scan_search(), jf_journal_scan_undo(), and jf_strerror().

#define JF_RC_FCLOSE_ERROR   -111
 

"fclose" function error Definition at line 171 of file jf_errors.h.

Referenced by bench_X0_sio_post(), jf_journal_analyze(), jf_journal_close_detach_file(), jf_journal_get_real_path(), jf_journal_rotate(), jf_journal_shift_files(), jf_journal_util_join(), and jf_strerror().

#define JF_RC_FDATASYNC_ERROR   -118
 

"fdatasync" function error Definition at line 199 of file jf_errors.h.

Referenced by jf_stream_sync(), and jf_strerror().

#define JF_RC_FFLUSH_ERROR   -116
 

"fflush" function error Definition at line 191 of file jf_errors.h.

Referenced by jf_journal_create(), jf_stream_size(), jf_stream_sync(), jf_stream_truncate(), and jf_strerror().

#define JF_RC_FGETC_ERROR   -120
 

"fgetc"/"getc" function/macro error Definition at line 207 of file jf_errors.h.

#define JF_RC_FILE_ALREADY_EXISTS   -15
 

The file should not exist and a new one can not be safely created Definition at line 130 of file jf_errors.h.

Referenced by jf_journal_open(), and jf_strerror().

#define JF_RC_FILE_NOT_ABOVE_JOURNAL   -17
 

The file is not journaled by this journal Definition at line 138 of file jf_errors.h.

Referenced by jf_journal_open_attach_file(), and jf_strerror().

#define JF_RC_FILENO_ERROR   -122
 

"fileno" function error Definition at line 215 of file jf_errors.h.

Referenced by jf_stream_size(), jf_stream_truncate(), and jf_strerror().

#define JF_RC_FOPEN_ERROR   -110
 

"fopen" function error Definition at line 167 of file jf_errors.h.

Referenced by bench_X0_ljf_pre(), bench_X0_sio_pre(), jf_journal_analyze(), jf_journal_cold_recovery_analyze(), jf_journal_create(), jf_journal_open_attach_file(), jf_journal_rotate(), jf_journal_util_join(), and jf_strerror().

#define JF_RC_FPUTC_ERROR   -119
 

"fputc"/"putc" function/macro error Definition at line 203 of file jf_errors.h.

Referenced by jf_journal_file_tab_dump(), and jf_strerror().

#define JF_RC_FREAD_ERROR   -113
 

"fread" function error Definition at line 179 of file jf_errors.h.

Referenced by bench_01_sio_run(), bench_03_sio_run(), jf_journal_cold_recovery_prep_pool(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_tab_restore(), jf_journal_get_byte_data(), jf_journal_load(), jf_journal_rotate(), jf_journal_write_record(), and jf_strerror().

#define JF_RC_FSEEK_ERROR   -115
 

"fseek" function error Definition at line 187 of file jf_errors.h.

Referenced by bench_01_sio_run(), bench_02_sio_run(), bench_03_sio_run(), jf_journal_apply_changes(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_prep_pool(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_tab_dump(), jf_journal_get_byte_data(), jf_journal_open(), jf_journal_remove_changes(), jf_journal_scan(), jf_journal_scan_search(), jf_journal_scan_undo(), jf_journal_update_file_table(), jf_journal_write_record(), jf_journal_write_records(), jf_stream_size(), and jf_strerror().

#define JF_RC_FSTAT_ERROR   -124
 

"fstat" function error Definition at line 223 of file jf_errors.h.

Referenced by jf_stream_size(), and jf_strerror().

#define JF_RC_FSYNC_ERROR   -117
 

"fsync" function error Definition at line 195 of file jf_errors.h.

Referenced by jf_stream_sync(), and jf_strerror().

#define JF_RC_FTELL_ERROR   -114
 

"ftell" function error Definition at line 183 of file jf_errors.h.

Referenced by jf_journal_close(), jf_journal_cold_recovery(), jf_journal_cold_recovery_prep_pool(), jf_journal_create(), jf_journal_fetch_record(), jf_journal_load(), jf_journal_scan(), jf_journal_update_file_table(), jf_journal_write_records(), jf_stream_size(), and jf_strerror().

#define JF_RC_FTRUNCATE_ERROR   -121
 

"ftruncate" function error Definition at line 211 of file jf_errors.h.

Referenced by jf_stream_truncate(), and jf_strerror().

#define JF_RC_FWRITE_ERROR   -112
 

"fwrite" function error Definition at line 175 of file jf_errors.h.

Referenced by bench_00_sio_run(), bench_01_sio_run(), bench_02_sio_run(), bench_03_sio_run(), bench_X1_sio_pre(), jf_journal_apply_changes(), jf_journal_cold_recovery(), jf_journal_commit_int(), jf_journal_create(), jf_journal_file_tab_dump(), jf_journal_remove_changes(), jf_journal_rollback_int(), jf_journal_rotate(), jf_journal_write_record(), jf_journal_write_records(), and jf_strerror().

#define JF_RC_GETTIMEOFDAY_ERROR   -128
 

"gettimeofday" function error Definition at line 239 of file jf_errors.h.

Referenced by jf_strerror(), jf_timer_start(), and jf_timer_stop().

#define JF_RC_INTERNAL_ERROR   -1
 

Internal error: unrecoverable status! Definition at line 70 of file jf_errors.h.

Referenced by bench_00_ljf_post(), bench_00_ljf_pre(), bench_00_ljf_run(), bench_00_sio_post(), bench_00_sio_pre(), bench_00_sio_run(), bench_01_ljf_post(), bench_01_ljf_pre(), bench_01_ljf_run(), bench_01_sio_post(), bench_01_sio_pre(), bench_01_sio_run(), bench_02_ljf_post(), bench_02_ljf_pre(), bench_02_ljf_run(), bench_02_sio_post(), bench_02_sio_pre(), bench_02_sio_run(), bench_03_ljf_post(), bench_03_ljf_pre(), bench_03_ljf_run(), bench_03_sio_post(), bench_03_sio_pre(), bench_03_sio_run(), bench_table_create(), bench_table_unlink(), bench_test_results_compute(), bench_test_results_compute_one(), bench_X0_ljf_post(), bench_X0_ljf_pre(), bench_X0_sio_post(), bench_X0_sio_pre(), bench_X1_ljf_pre(), bench_X1_sio_pre(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_clear(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_content(), jf_cache_file_split(), jf_cache_file_trace(), jf_file_build_open_mode(), jf_file_check_mode(), jf_file_close(), jf_file_getc(), jf_file_gets(), jf_file_open(), jf_file_printf(), jf_file_putc(), jf_file_puts(), jf_file_read(), jf_file_seek(), jf_file_size(), jf_file_vprintf(), jf_file_write(), jf_journal_add_byte_data(), jf_journal_analyze(), jf_journal_apply_changes(), jf_journal_attach_file(), jf_journal_close(), jf_journal_close_detach_file(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_cold_recovery_update_lists(), jf_journal_commit_int(), jf_journal_create(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_init(), jf_journal_file_set_cache_file(), jf_journal_file_set_options(), jf_journal_file_set_path(), jf_journal_file_tab_add(), jf_journal_file_tab_del(), jf_journal_file_tab_dump(), jf_journal_file_tab_init(), jf_journal_file_tab_restore(), jf_journal_file_tab_search(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_init(), jf_journal_load(), jf_journal_new_unit_of_work(), jf_journal_open(), jf_journal_open_attach_file(), jf_journal_remove_changes(), jf_journal_reopen_files(), jf_journal_restore_files(), jf_journal_rollback_int(), jf_journal_rotate(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_scan_search(), jf_journal_scan_undo(), jf_journal_set_all_sync(), jf_journal_shift_files(), jf_journal_sync(), jf_journal_trace_record(), jf_journal_update_file_table(), jf_journal_util_join(), jf_journal_util_leave(), jf_journal_util_rename(), jf_journal_write_record(), jf_journal_write_records(), jf_recind_list_add(), jf_recind_pool_create(), jf_recind_seq_add(), jf_stream_size(), jf_stream_sync(), jf_stream_truncate(), jf_strerror(), jf_timer_reset(), jf_timer_start(), jf_timer_stop(), jf_translate_CRLF_NL(), and jf_translate_NL_CRLF().

#define JF_RC_INVALID_CTRL_CODE   -12
 

A control code of a journal record is wrong Definition at line 118 of file jf_errors.h.

Referenced by jf_journal_apply_changes(), jf_journal_cold_recovery_prep_pool(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_remove_changes(), jf_journal_trace_record(), and jf_strerror().

#define JF_RC_INVALID_OPTION   -10
 

A specified option is not valid for method and/or object status Definition at line 109 of file jf_errors.h.

Referenced by bench_table_create(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_merge(), jf_cache_file_split(), jf_file_build_open_mode(), jf_file_check_mode(), jf_journal_create(), jf_journal_init(), and jf_strerror().

#define JF_RC_INVALID_PATH_NAME   -14
 

An invalid path/file name has been passed Definition at line 126 of file jf_errors.h.

Referenced by jf_file_open(), jf_journal_open(), and jf_strerror().

#define JF_RC_INVALID_STATUS   -11
 

The status (value of any properties) of an object is invalid due to a bug located elsewhere (a complex "internal error" condition) Definition at line 114 of file jf_errors.h.

Referenced by bench_table_create(), jf_cache_file_set_content(), jf_cache_file_set_last_pos(), jf_file_close(), jf_file_vprintf(), jf_journal_apply_changes(), jf_journal_remove_changes(), jf_strerror(), jf_timer_start(), and jf_timer_stop().

#define JF_RC_INVALID_STREAM_POSITION   -13
 

A stream is/would be positioned at an invalid offset Definition at line 122 of file jf_errors.h.

Referenced by jf_file_seek(), jf_journal_fetch_record(), and jf_strerror().

#define JF_RC_JOURNAL_OUT_OF_SPACE   -20
 

Journal file exceeds maximum desired size and operation can NOT be performed: a global sync/rollback is necessary before this operation Definition at line 154 of file jf_errors.h.

Referenced by jf_journal_add_byte_data(), and jf_strerror().

#define JF_RC_MAGIC_NUMBER_ERROR   -3
 

The journal magic number is not recognized: the file may be corrupted or may be an invalid journal file Definition at line 79 of file jf_errors.h.

Referenced by jf_journal_load(), and jf_strerror().

#define JF_RC_MALLOC_ERROR   -100
 

"malloc" function error Definition at line 159 of file jf_errors.h.

Referenced by bench_table_create(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_split(), jf_file_open(), jf_file_vprintf(), jf_journal_cold_recovery_prep_pool(), jf_journal_file_tab_init(), jf_journal_file_tab_restore(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_rotate(), jf_journal_shift_files(), jf_journal_write_record(), jf_recind_pool_create(), jf_strerror(), and jf_translate_NL_CRLF().

#define JF_RC_NULL_OBJECT   -5
 

A passed object/option/arg is NULL and it can NOT be inferred from a default value Definition at line 88 of file jf_errors.h.

Referenced by jf_file_check_mode(), jf_journal_attach_file(), jf_journal_file_set_cache_file(), jf_journal_file_set_options(), jf_journal_file_set_path(), jf_journal_file_tab_del(), jf_journal_init(), jf_journal_load(), jf_stream_sync(), and jf_strerror().

#define JF_RC_OBJ_CORRUPTED   -9
 

A corrupted object has been passed to a function Definition at line 105 of file jf_errors.h.

Referenced by jf_cache_file_chunk_prepare(), jf_cache_file_clear(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_merge(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_last_pos(), jf_cache_file_split(), jf_cache_file_trace(), jf_file_close(), jf_file_getc(), jf_file_gets(), jf_file_seek(), jf_file_size(), jf_recind_list_add(), jf_recind_seq_add(), and jf_strerror().

#define JF_RC_OBJ_NOT_FOUND   +1
 

Object not found Definition at line 46 of file jf_errors.h.

Referenced by jf_cache_file_search_hint(), jf_journal_attach_file(), jf_journal_file_tab_search(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_open_attach_file(), jf_journal_restore_files(), and jf_strerror().

#define JF_RC_OBJ_NOT_INITIALIZED   -8
 

A NOT initialized object has been passed to a method/function Definition at line 101 of file jf_errors.h.

Referenced by jf_cache_file_chunk_prepare(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_merge(), jf_cache_file_search_hint(), and jf_cache_file_split().

#define JF_RC_OBJ_NOT_VOID   -7
 

A used object (not void) has been passed to a function requiring a fresh one Definition at line 97 of file jf_errors.h.

Referenced by jf_cache_file_init(), jf_journal_file_tab_restore(), and jf_strerror().

#define JF_RC_OK   0
 

Successfully completion Definition at line 63 of file jf_errors.h.

Referenced by bench_00_ljf_run(), bench_00_sio_run(), bench_01_ljf_run(), bench_01_sio_run(), bench_02_ljf_pre(), bench_02_ljf_run(), bench_02_sio_run(), bench_03_ljf_run(), bench_03_sio_run(), bench_table_create(), bench_table_set_jfile(), bench_table_set_stream(), bench_table_unlink(), bench_test_results_compute(), bench_test_results_compute_one(), bench_X0_ljf_post(), bench_X0_ljf_pre(), bench_X0_sio_post(), bench_X0_sio_pre(), bench_X1_ljf_pre(), bench_X1_sio_pre(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_clear(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_content(), jf_cache_file_set_last_pos(), jf_cache_file_split(), jf_cache_file_trace(), jf_file_build_open_mode(), jf_file_check_mode(), jf_file_close(), jf_file_getc(), jf_file_gets(), jf_file_open(), jf_file_printf(), jf_file_putc(), jf_file_puts(), jf_file_read(), jf_file_seek(), jf_file_size(), jf_file_vprintf(), jf_file_write(), jf_journal_add_byte_data(), jf_journal_analyze(), jf_journal_apply_changes(), jf_journal_attach_file(), jf_journal_close(), jf_journal_close_detach_file(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_cold_recovery_update_lists(), jf_journal_commit_int(), jf_journal_create(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_init(), jf_journal_file_set_all_in_cache(), jf_journal_file_set_cache_file(), jf_journal_file_set_last_pos(), jf_journal_file_set_last_size(), jf_journal_file_set_last_uc_pos(), jf_journal_file_set_last_uc_size(), jf_journal_file_set_open_mode(), jf_journal_file_set_options(), jf_journal_file_set_path(), jf_journal_file_set_status(), jf_journal_file_set_stream(), jf_journal_file_tab_add(), jf_journal_file_tab_del(), jf_journal_file_tab_dump(), jf_journal_file_tab_init(), jf_journal_file_tab_restore(), jf_journal_file_tab_search(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_init(), jf_journal_load(), jf_journal_new_unit_of_work(), jf_journal_open(), jf_journal_open_attach_file(), jf_journal_remove_changes(), jf_journal_reopen_files(), jf_journal_restore_files(), jf_journal_rollback_int(), jf_journal_rotate(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_scan_search(), jf_journal_scan_undo(), jf_journal_set_all_sync(), jf_journal_shift_files(), jf_journal_sync(), jf_journal_trace_record(), jf_journal_update_file_table(), jf_journal_util_join(), jf_journal_util_leave(), jf_journal_util_rename(), jf_journal_write_record(), jf_journal_write_records(), jf_recind_list_add(), jf_recind_list_set_uow_type(), jf_recind_pool_create(), jf_recind_seq_add(), jf_stream_size(), jf_stream_sync(), jf_stream_truncate(), jf_strerror(), jf_timer_reset(), jf_timer_start(), jf_timer_stop(), jf_translate_CRLF_NL(), jf_translate_NL_CRLF(), and main().

#define JF_RC_OUT_OF_RANGE   -2
 

A parameter passed to a function is OUT OF RANGE Definition at line 74 of file jf_errors.h.

Referenced by bench_table_set_jfile(), bench_table_set_stream(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_search_hint(), jf_cache_file_split(), jf_file_seek(), jf_journal_create(), jf_journal_file_tab_del(), jf_journal_file_tab_get_jfile(), jf_journal_open(), jf_journal_util_leave(), jf_journal_util_rename(), jf_journal_write_record(), jf_recind_list_set_uow_type(), and jf_strerror().

#define JF_RC_REALLOC_ERROR   -101
 

"realloc" function error Definition at line 163 of file jf_errors.h.

Referenced by jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_resize(), jf_cache_file_split(), jf_journal_fetch_record(), jf_journal_file_set_path(), jf_recind_list_add(), jf_recind_seq_add(), and jf_strerror().

#define JF_RC_RENAME_ERROR   -123
 

"rename" function error Definition at line 219 of file jf_errors.h.

Referenced by jf_journal_restore_files(), jf_journal_rotate(), jf_journal_shift_files(), jf_journal_util_rename(), and jf_strerror().

#define JF_RC_SYSCONF_ERROR   -127
 

"sysconf" function error Definition at line 235 of file jf_errors.h.

Referenced by jf_strerror(), and jf_timer_reset().

#define JF_RC_TIMES_ERROR   -126
 

"times" function error Definition at line 231 of file jf_errors.h.

Referenced by jf_strerror(), jf_timer_start(), and jf_timer_stop().

#define JF_RC_UNLINK_ERROR   -129
 

"unlink" function error Definition at line 243 of file jf_errors.h.

Referenced by bench_table_unlink(), and jf_strerror().

#define JF_RC_UNSUPPORTED_FUNCTION   -1000
 

a useful but not essential function is not supported by this system Definition at line 247 of file jf_errors.h.

Referenced by jf_strerror(), jf_timer_reset(), jf_timer_start(), and jf_timer_stop().

#define JF_RC_VERSION_ERROR   -4
 

The journal version is higher than library level and can NOT be loaded Definition at line 83 of file jf_errors.h.

Referenced by jf_journal_load(), and jf_strerror().

#define JF_RC_VSNPRINTF_ERROR   -125
 

"vsnprintf" function error Definition at line 227 of file jf_errors.h.

Referenced by jf_file_vprintf(), and jf_strerror().

#define THROW  )     { excp = e; goto ExcpHand; }
 

Definition at line 265 of file jf_errors.h.

Referenced by bench_00_ljf_run(), bench_00_sio_run(), bench_01_ljf_run(), bench_01_sio_run(), bench_02_ljf_pre(), bench_02_ljf_run(), bench_02_sio_run(), bench_03_ljf_run(), bench_03_sio_run(), bench_table_create(), bench_table_unlink(), bench_test_results_compute(), bench_test_results_compute_one(), bench_X0_ljf_post(), bench_X0_ljf_pre(), bench_X0_sio_post(), bench_X0_sio_pre(), bench_X1_ljf_pre(), bench_X1_sio_pre(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_clear(), jf_cache_file_get_free_ranges(), jf_cache_file_get_used_ranges(), jf_cache_file_init(), jf_cache_file_merge(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_content(), jf_cache_file_split(), jf_cache_file_trace(), jf_file_build_open_mode(), jf_file_check_mode(), jf_file_close(), jf_file_getc(), jf_file_gets(), jf_file_open(), jf_file_printf(), jf_file_putc(), jf_file_puts(), jf_file_read(), jf_file_seek(), jf_file_size(), jf_file_vprintf(), jf_file_write(), jf_journal_add_byte_data(), jf_journal_analyze(), jf_journal_apply_changes(), jf_journal_attach_file(), jf_journal_close(), jf_journal_close_detach_file(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_cold_recovery_update_lists(), jf_journal_commit_int(), jf_journal_create(), jf_journal_fetch_ctrl_code(), jf_journal_fetch_record(), jf_journal_file_init(), jf_journal_file_set_cache_file(), jf_journal_file_set_options(), jf_journal_file_set_path(), jf_journal_file_tab_add(), jf_journal_file_tab_del(), jf_journal_file_tab_dump(), jf_journal_file_tab_init(), jf_journal_file_tab_restore(), jf_journal_file_tab_search(), jf_journal_get_byte_data(), jf_journal_get_real_path(), jf_journal_init(), jf_journal_load(), jf_journal_new_unit_of_work(), jf_journal_open(), jf_journal_open_attach_file(), jf_journal_remove_changes(), jf_journal_reopen_files(), jf_journal_restore_files(), jf_journal_rollback_int(), jf_journal_rotate(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_scan_search(), jf_journal_scan_undo(), jf_journal_set_all_sync(), jf_journal_shift_files(), jf_journal_sync(), jf_journal_trace_record(), jf_journal_update_file_table(), jf_journal_util_join(), jf_journal_util_leave(), jf_journal_util_rename(), jf_journal_write_record(), jf_journal_write_records(), jf_recind_list_add(), jf_recind_pool_create(), jf_recind_seq_add(), jf_stream_size(), jf_stream_sync(), jf_stream_truncate(), jf_timer_reset(), jf_timer_start(), jf_timer_stop(), jf_translate_CRLF_NL(), and jf_translate_NL_CRLF().

#define TRUE   1
 

Definition at line 276 of file jf_errors.h.

Referenced by bench_test_results_compute_one(), bench_X0_ljf_pre(), jf_cache_file_check_bytes(), jf_cache_file_chunk_prepare(), jf_cache_file_merge(), jf_cache_file_search_hint(), jf_file_build_open_mode(), jf_file_eof(), jf_file_open(), jf_file_vprintf(), jf_journal_add_byte_data(), jf_journal_analyze(), jf_journal_cold_recovery(), jf_journal_cold_recovery_analyze(), jf_journal_cold_recovery_patch_record(), jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_prep_pool(), jf_journal_commit_int(), jf_journal_file_init(), jf_journal_file_reset(), jf_journal_get_byte_data(), jf_journal_init(), jf_journal_is_all_sync(), jf_journal_is_sync(), jf_journal_open_attach_file(), jf_journal_rollback_int(), jf_journal_scan(), jf_journal_scan_redo(), jf_journal_util_join(), jf_timer_start(), jf_translate_CRLF_NL(), and main().


Function Documentation

LIBJF_EXPORT const char* jf_strerror int  ret_cod  ) 
 

PUBLIC METHOD
Retrieve the description associated to a return/reason code

Parameters:
ret_cod IN return/reason code of the desired description
Returns:
a const string containing a description of reason code
Definition at line 28 of file jf_errors.c.

References JF_RC_BYPASSED_OPERATION, JF_RC_COLD_RECOVERY_NEEDED, JF_RC_CONTAINER_FULL, JF_RC_DAMAGED_JOURNAL, JF_RC_DESTINATION_TOO_SMALL, JF_RC_EOF, JF_RC_FCLOSE_ERROR, JF_RC_FDATASYNC_ERROR, JF_RC_FFLUSH_ERROR, JF_RC_FILE_ALREADY_EXISTS, JF_RC_FILE_NOT_ABOVE_JOURNAL, JF_RC_FILENO_ERROR, JF_RC_FOPEN_ERROR, JF_RC_FPUTC_ERROR, JF_RC_FREAD_ERROR, JF_RC_FSEEK_ERROR, JF_RC_FSTAT_ERROR, JF_RC_FSYNC_ERROR, JF_RC_FTELL_ERROR, JF_RC_FTRUNCATE_ERROR, JF_RC_FWRITE_ERROR, JF_RC_GETTIMEOFDAY_ERROR, JF_RC_INTERNAL_ERROR, JF_RC_INVALID_CTRL_CODE, JF_RC_INVALID_OPTION, JF_RC_INVALID_PATH_NAME, JF_RC_INVALID_STATUS, JF_RC_INVALID_STREAM_POSITION, JF_RC_JOURNAL_OUT_OF_SPACE, JF_RC_MAGIC_NUMBER_ERROR, JF_RC_MALLOC_ERROR, JF_RC_NULL_OBJECT, JF_RC_OBJ_CORRUPTED, JF_RC_OBJ_NOT_FOUND, JF_RC_OBJ_NOT_VOID, JF_RC_OK, JF_RC_OUT_OF_RANGE, JF_RC_REALLOC_ERROR, JF_RC_RENAME_ERROR, JF_RC_SYSCONF_ERROR, JF_RC_TIMES_ERROR, JF_RC_UNLINK_ERROR, JF_RC_UNSUPPORTED_FUNCTION, JF_RC_VERSION_ERROR, and JF_RC_VSNPRINTF_ERROR.

Referenced by main().


Copyright 2005 © Tiian