dates->used = length;
}
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_dates_resize_
modes->used = length;
}
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_modes_resize_
* The Date Comparison array to resize.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_array_too_large (with error bit) if the combined array is too large.
* F_parameter (with error bit) if a parameter is invalid.
* The Date Comparison array to resize.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_array_too_large (with error bit) if the combined array is too large.
* F_parameter (with error bit) if a parameter is invalid.
* The setting.flag has kt_remove_flag_option_used_e forcibly cleared on the start of this function.
*
* This alters setting.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success but nothing was provided to operate with.
*
* F_parameter (with error bit) on parameter error.
f_directory_recurse_do_delete(&setting->recurse);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_setting_delete_
*
* process_help: Process help (generally printing help).
* process_normal: Process normally (data from parameters and files).
- * process_operate_file: Process an individual file, returning F_done to designate handled, and F_none for letting parent continue handling.
+ * process_operate_file: Process an individual file, returning F_done to designate handled, and F_okay for letting parent continue handling.
*/
#ifndef _di_kt_remove_setting_t_
typedef struct {
#define kt_remove_setting_t_initialize \
{ \
kt_remove_main_flag_none_e, \
- F_none, \
- macro_f_state_t_initialize_1(kt_remove_allocation_large_d, kt_remove_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \
+ F_okay, \
+ macro_f_state_t_initialize_1(kt_remove_allocation_large_d, kt_remove_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \
f_string_dynamic_t_initialize, \
f_string_dynamics_t_initialize, \
kt_remove_dates_t_initialize, \
* This does not alter setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) if a parameter is invalid.
*/
}
} // for
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
// If the first and possibly the second digit matches.
} // for
}
- main->setting.state.status = matches ? F_none : F_status_set_error(F_known_not);
+ main->setting.state.status = matches ? F_okay : F_status_set_error(F_known_not);
}
#endif // _di_kt_remove_convert_date_
if (F_status_is_error(main->setting.state.status)) return;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return;
}
date->stop_second = date->start_second;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
#endif // _di_kt_remove_convert_date_relative_
return 0;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return (uint32_t) gid;
}
return 0;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return (uint32_t) number;
}
return 0;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return (uint32_t) uid;
}
return 0;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return (uint32_t) number;
}
return 0;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return mode;
}
}
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
#endif // _di_kt_remove_convert_timezone_
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success, but buffer is empty and there is no data to process.
*
* F_buffer (with error bit) if the buffer is invalid.
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success, but buffer is empty or there is no data to process.
*
* F_buffer (with error bit) if the buffer is invalid.
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* F_number_too_large (with error bit) if the given ID is too large.
*
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* F_number_too_large (with error bit) if the given ID is too large.
*
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* Errors (with error bit) from: f_file_mode_from_string().
* Errors (with error bit) from: f_file_mode_to_mode().
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* F_number_overflow (with error bit) if the date after applying the timezone is too large.
* F_number_underflow (with error bit) if the date after applying the timezone is too small.
}
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
#endif // _di_kt_remove_operate_file_
// Trigger the callback to make any modifications before simulating or performing the removal.
if (main->setting.process_operate_file) {
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
main->setting.process_operate_file((void *) main, path, statistics, &flag);
if (F_status_is_error(main->setting.state.status)) return flag;
if (main->setting.state.status == F_done) {
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return flag;
}
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
if (main->setting.flag & kt_remove_main_flag_force_e) {
kt_remove_print_simulate_operate_boolean(&main->program.output, kt_remove_remove_s, flag & kt_remove_flag_file_operate_remove_e);
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return flag;
}
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success but file is an empty string.
*
* Errors (with error bit) from: f_string_dynamic_append().
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success but file is an empty string.
*
* Errors (with error bit) from: f_file_link_read().
fll_error_print(print, F_status_set_fine(((kt_remove_main_t *) print->custom)->setting.state.status), function, F_true);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_
fll_error_file_print(print, F_status_set_fine(((kt_remove_main_t *) print->custom)->setting.state.status), function, F_true, name, operation, type);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_file_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_parameter_missing_value_requires_amount_
fll_print_format("%[%QNo files have been specified to be removed.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_parameter_no_files_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_recursion_max_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_error_parameter_unknown_value_
* This does not alter print.custom.setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* A valid file type code from the fll_error_file_type enum.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The number representing the amount of missing parameters.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* This does not alter print.custom.setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The path in which the recursion max is reached.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The unknown value.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
f_file_stream_flush(print->to);
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_message_help_
* The color context settings.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
};
uint8_t p = 0;
- f_status_t result = F_none;
+ f_status_t result = F_okay;
f_string_static_t name_type = f_string_empty_s;
f_number_unsigned_t match_year = 0;
f_number_unsigned_t match_second = 0;
start_second = dates[p]->array[i].start_second % kt_remove_time_seconds_in_year_d;
name_type = f_string_empty_s;
- result = F_none;
+ result = F_okay;
if (dates[p]->array[i].type == kt_remove_flag_date_today_e || dates[p]->array[i].type == kt_remove_flag_date_tomorrow_e || dates[p]->array[i].type == kt_remove_flag_date_yesterday_e) {
stop_year = dates[p]->array[i].stop_year + (dates[p]->array[i].stop_second / kt_remove_time_seconds_in_year_d);
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_remove_print_warning_file_reason_
* The reason for the failure.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*/
#ifndef _di_kt_remove_print_warning_file_reason_
fll_print_dynamic_raw(f_string_eol_s, main->program.message.to);
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
if (main->setting.flag & (kt_remove_main_flag_help_e | kt_remove_main_flag_version_e | kt_remove_main_flag_copyright_e)) {
if (main->setting.flag & kt_remove_main_flag_help_e) {
kt_remove_print_simulate_operate(&main->program.output);
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
for (f_number_unsigned_t i = 0; i < main->setting.files.used; ++i) {
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_true on success when performing verification and verify passed.
* F_false on success when performing verification and verify failed.
*
* This does not alter main.setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*/
#ifndef _di_kt_remove_process_help_
* This must be of type kt_remove_main_t.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* Errors with (error bit set) from: kt_remove_process_normal_operate()
*
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*/
#ifndef _di_kt_remove_process_normal_operate_
extern void kt_remove_process_normal_operate(kt_remove_main_t * const main);
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_thread = F_okay;
} while (!main->program.signal_received);
}
if (F_status_is_error_not(main->setting.state.status)) {
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
}
#endif // _di_kt_tacocat_setting_load_
f_number_unsigned_t k = 0;
f_number_unsigned_t index = 0;
f_number_unsigned_t length = 0;
- f_status_t failed = F_none;
+ f_status_t failed = F_okay;
struct hostent host;
f_network_family_ip_t family = f_network_family_ip_t_initialize;
f_number_unsigned_t port = 0;
total = main->program.parameters.array[parameters[i]].values.used / 2;
- main->setting.state.status = f_uint16s_increase_by(total, &sets[i]->flags);
+ main->setting.state.status = f_memory_array_increase_by(total, sizeof(uint16_t), (void **) &sets[i]->flags.array, &sets[i]->flags.used, &sets[i]->flags.size);
- macro_setting_load_handle_send_receive_error_continue_1(f_uint16s_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_1(f_memory_array_increase_by);
main->setting.state.status = f_string_dynamics_increase_by(total, &sets[i]->names);
macro_setting_load_handle_send_receive_error_continue_1(f_fss_simple_packet_ranges_increase_by);
- main->setting.state.status = f_files_increase_by(total, &sets[i]->files);
+ main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_file_t), (void **) &sets[i]->files.array, &sets[i]->files.used, &sets[i]->files.size);
- macro_setting_load_handle_send_receive_error_continue_1(f_files_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_1(f_memory_array_increase_by);
main->setting.state.status = f_sockets_increase_by(total, &sets[i]->sockets);
// First parameter value represents the network address or the socket file path.
index = main->program.parameters.array[parameters[i]].values.array[j];
- sets[i]->statuss.array[j] = F_none;
+ sets[i]->statuss.array[j] = F_okay;
sets[i]->flags.array[j] = kt_tacocat_socket_flag_none_e;
sets[i]->names.array[j].used = 0;
sets[i]->buffers.array[j].used = 0;
while (address->used && address->string[address->used] != f_string_ascii_colon_s.string[0]) --address->used;
}
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
return;
}
address->string[i] = 0;
address->used = i;
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
else {
main->setting.state.status = F_number_not;
* The main program and settings data.
*
* This alters setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) if a parameter is invalid.
*
* This must be of type kt_tacocat_main_t.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) if a parameter is invalid.
*
* Errors (with error bit) from: f_file_exists().
* Errors (with error bit) from: f_file_open().
- * Errors (with error bit) from: f_files_increase_by().
+ * Errors (with error bit) from: f_memory_array_increase_by().
* Errors (with error bit) from: f_network_from_ip_name().
* Errors (with error bit) from: f_string_dynamic_append_nulless().
* Errors (with error bit) from: f_string_dynamic_increase_by().
*
* @see f_file_exists()
* @see f_file_open()
- * @see f_files_increase_by()
+ * @see f_memory_array_increase_by()
* @see f_network_from_ip_name()
* @see f_string_dynamic_append_nulless()
* @see f_string_dynamic_increase_by()
* The main.setting.state.status can be set to either F_network_version_four or F_network_version_six when calling this function to bypass IP type detection.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_data_not on success but there is nothing in the address string (address.used is 0).
* F_number_not on success but there is no port number.
*
const f_string_t kt_tacocat_f_a[] = {
"f_console_parameter_process",
"f_file_open",
- "f_files_increase_by",
- "f_fss_simple_packet_ranges_increase_by",
+ "f_fss_simple_packet_identify",
+ "f_fss_simple_packet_increase_by",
+ "f_memory_array_increase_by",
"f_network_from_ip_name",
"f_network_is_ip_address",
"f_polls_increase_by",
"f_string_dynamic_increase_by",
"f_string_dynamics_increase_by",
"f_thread_create",
- "f_uint16s_increase_by",
"fl_conversion_dynamic_to_unsigned_detect",
"fll_program_parameter_process_context",
"fll_program_parameter_process_verbosity",
enum {
kt_tacocat_f_f_console_parameter_process_e,
kt_tacocat_f_f_file_open_e,
- kt_tacocat_f_f_files_increase_by_e,
+ kt_tacocat_f_f_fss_simple_packet_identify_e,
kt_tacocat_f_f_fss_simple_packet_ranges_increase_by_e,
+ kt_tacocat_f_f_memory_array_increase_by_e,
kt_tacocat_f_f_network_from_ip_name_e,
kt_tacocat_f_f_network_is_ip_address_e,
kt_tacocat_f_f_polls_increase_by_e,
kt_tacocat_f_f_string_dynamic_increase_by_e,
kt_tacocat_f_f_string_dynamics_increase_by_e,
kt_tacocat_f_f_thread_create_e,
- kt_tacocat_f_f_uint16s_increase_by_e,
kt_tacocat_f_fl_conversion_dynamic_to_unsigned_detect_e,
kt_tacocat_f_fll_program_parameter_process_context_e,
kt_tacocat_f_fll_program_parameter_process_verbosity_e,
f_socket_disconnect(&sets[i]->sockets.array[j], program.signal_received ? f_socket_close_fast_e : f_socket_close_read_write_e);
} // for
- f_uint16s_resize(0, &sets[i]->flags);
- f_files_resize(0, &sets[i]->files);
+ f_memory_array_resize(0, sizeof(uint16_t), (void **) &sets[i]->flags.array, &sets[i]->flags.used, &sets[i]->flags.size);
+ f_memory_array_resize(0, sizeof(f_file_t), (void **) &sets[i]->files.array, &sets[i]->files.used, &sets[i]->files.size);
f_polls_resize(0, &sets[i]->polls);
f_sockets_resize(0, &sets[i]->sockets);
f_statuss_resize(0, &sets[i]->statuss);
f_string_dynamic_resize(0, &setting->buffer);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_setting_delete_
if (!thread) return F_status_set_error(F_parameter);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_thread_delete_
{ \
kt_tacocat_main_flag_none_e, \
kt_tacocat_interval_poll_d, \
- F_none, \
- F_none, \
- F_none, \
- macro_f_state_t_initialize_1(kt_tacocat_allocation_large_d, kt_tacocat_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \
+ F_okay, \
+ F_okay, \
+ F_okay, \
+ macro_f_state_t_initialize_1(kt_tacocat_allocation_large_d, kt_tacocat_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \
macro_kt_tacocat_setting_t_initialize_1(kt_tacocat_block_size_receive_d), \
macro_kt_tacocat_setting_t_initialize_1(kt_tacocat_block_size_send_d), \
f_string_dynamic_t_initialize, \
* This does not alter setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) if a parameter is invalid.
*/
* The program main thread data.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) if a parameter is invalid.
*/
fll_error_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_
fll_error_file_print(print, F_status_set_fine(((kt_tacocat_main_t *) print->custom)->setting.state.status), function, F_true, name, operation, type);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_file_
fll_error_print(print, F_status_set_fine(status), function, F_true);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_parameter_value_resolve_unknown_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_setting_socket_lengths_must_match_
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_error_socket_protocol_unsupported_
* This does not alter print.custom.setting.state.status.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* A valid file type code from the fll_error_file_type enum.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The status code representing the error.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The string representing the unknown value passed to the resolve parameter.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The socket set.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
* The protocol number representing the unsupported protocol
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
f_file_stream_flush(print->to);
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_print_message_help_
* The color context settings.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
f_file_stream_unlock(print->to);
- return F_none;
+ return F_okay;
}
#endif // _di_fake_build_print_warning_setting_boolean_may_only_be_
* The out of range port.
*
* @return
- * F_none on success.
+ * F_okay on success.
* F_output_not on success, but no printing is performed.
*
* F_output_not (with error bit) if setting is NULL.
#endif // _di_thread_support_
if (F_status_is_error_not(main->setting.state.status)) {
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
}
}
#endif // _di_kt_tacocat_process_main_
if (!main || !set) return F_status_set_error(F_parameter);
- f_status_t status = F_none;
+ f_status_t status = F_okay;
for (f_number_unsigned_t i = 0; i < set->sockets.used; ++i) {
}
} // for
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_process_socket_set_disconnect_
if (!main || !status) return;
if (F_status_is_error(*status)) return;
- *status = F_none;
+ *status = F_okay;
for (f_number_unsigned_t i = 0; i < set.statuss.used; ++i) {
return *status;
}
- return F_none;
+ return F_okay;
}
#endif // _di_kt_tacocat_process_socket_set_error_has_
} // for
if (F_status_is_error_not(main->setting.status_receive)) {
- main->setting.status_receive = F_none;
+ main->setting.status_receive = F_okay;
}
}
#endif // _di_kt_tacocat_process_socket_set_receive_
} // for
if (F_status_is_error_not(main->setting.status_send)) {
- main->setting.status_send = F_none;
+ main->setting.status_send = F_okay;
}
}
#endif // _di_kt_tacocat_process_socket_set_send_
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*/
#ifndef _di_kt_tacocat_process_main_
extern void kt_tacocat_process_main(kt_tacocat_main_t * const main);
* The socket set to disconnect all sockets of.
*
* @return
- * F_none on success.
+ * F_okay on success.
*
* F_parameter (with error bit) on invalid parameter.
*/
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success and no error is found.
+ * F_okay on success and no error is found.
*
* An status with error bit set from any socket that has a status failure.
*
* The status to update with the status code from the given set.
*
* @return
- * F_none on no error.
+ * F_okay on no error.
*
* F_interrupt (with error bit) if interrupt was received.
* F_parameter (with error bit) if a parameter is invalid.
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*/
#ifndef _di_kt_tacocat_process_socket_set_receive_
extern void kt_tacocat_process_socket_set_receive(kt_tacocat_main_t * const main);
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
*/
#ifndef _di_kt_tacocat_process_socket_set_send_
extern void kt_tacocat_process_socket_set_send(kt_tacocat_main_t * const main);
}
// Skip if status is an error or is F_time_out.
- if (main->setting.status_receive == F_none) {
+ if (main->setting.status_receive == F_okay) {
for (i = 0; i < main->setting.receive.polls.used; ++i) {
kt_tacocat_process_socket_set_error_handle(main, main->setting.receive, &main->setting.status_receive);
if (F_status_is_error_not(main->setting.status_receive)) {
- main->setting.status_receive = F_none;
+ main->setting.status_receive = F_okay;
}
return 0;
*status = f_fss_simple_packet_identify(*buffer, packet);
- return;
+ if (F_status_is_error(*status)) {
+ kt_tacocat_print_error_on(&main->program.error, macro_kt_tacocat_f(f_fss_simple_packet_identify), kt_tacocat_receive_s, *name, *status);
+
+ f_file_close_id(&socket->id_data);
+
+ return;
+ }
}
socket->size_read = kt_tacocat_packet_read_d;
* Must be of type kt_tacocat_main_t.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_child on child process exiting.
*
* @return
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* @param index
* The position within the receive arrays to process.
*
kt_tacocat_process_socket_set_error_handle(main, main->setting.send, &main->setting.status_send);
if (F_status_is_error_not(main->setting.status_send)) {
- main->setting.status_send = F_none;
+ main->setting.status_send = F_okay;
}
return 0;
* Must be of type kt_tacocat_main_t.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_child on child process exiting.
*
* @return
}
failsafe = 0;
- main->setting.status_signal = F_none;
+ main->setting.status_signal = F_okay;
} while (!main->program.signal_received);
macro_setting_load_print_first();
- main->setting.state.status = F_none;
+ main->setting.state.status = F_okay;
if (main->setting.flag & (kt_tacocat_main_flag_help_e | kt_tacocat_main_flag_version_e | kt_tacocat_main_flag_copyright_e)) {
if (main->setting.flag & kt_tacocat_main_flag_help_e) {
* The main program and settings data.
*
* This alters main.setting.state.status:
- * F_none on success.
+ * F_okay on success.
* F_true on success when performing verification and verify passed.
* F_false on success when performing verification and verify failed.
*