There is a f_file_stream_flush() function that should be used instead of fflush().
* Errors (with error bit) from: f_file_stream_open().
*
* @see fprintf()
- * @see fflush()
* @see memcpy()
* @see unshare()
*
* @see f_file_stream_close()
+ * @see f_file_stream_flush()
* @see f_file_stream_open()
*/
#ifndef _di_fl_control_group_apply_
file.id = F_type_descriptor_input_d;
file.stream = F_type_input_d;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
fl_print_format("%[Piped " BYTE_DUMP_program_name_long_s ": (in ", main->output.to, main->context.set.title);
fl_print_format(")%]%r", main->output.to, main->context.set.title, f_string_eol_s);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
status = byte_dump_file(&data, f_string_empty_s, file);
return status;
}
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fl_print_format("%r%[" BYTE_DUMP_program_name_long_s " of: %]%[", main->output.to, f_string_eol_s, main->context.set.title, main->context.set.title, main->context.set.notable);
fl_print_format("%Q%] %[(in ", main->output.to, data.argv[main->parameters.remaining.array[counter]], main->context.set.notable, main->context.set.title);
fl_print_format(")%]%r", main->output.to, main->context.set.title, f_string_eol_s);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
status = byte_dump_file(&data, data.argv[main->parameters.remaining.array[counter]], file);
}
}
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
if (byte_dump_print_character_fragment(data, sequence, invalid, width_utf, 1, &previous, &cell, &offset) == F_true) {
character_reset = F_true;
position += width_utf;
if (position >= data->last) {
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
break;
}
++position;
if (position >= data->last) {
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
break;
}
}
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
width_utf = -1;
} // for
}
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
// Print placeholders to fill out the remaining line and then optionally print the text block.
if (cell.column && cell.column < data->width) {
f_print_dynamic_raw(f_string_eol_s, data->main->output.to);
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
// Make sure to flush standard out to help prevent standard error from causing problems.
- fflush(data->main->output.to);
+ f_file_stream_flush(data->main->output.to);
if (found_invalid_utf) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%[Invalid UTF-8 codes were detected for file '%]", data->main->error.to, data->main->context.set.error, data->main->context.set.error);
fl_print_format("%[%Q%]", data->main->error.to, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable);
fl_print_format("%['.%]%r%r", data->main->error.to, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
if (ferror(file.stream)) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%[%Qread() failed for '%]", data->main->error.to, data->main->context.set.error, data->main->error.prefix, data->main->context.set.error);
fl_print_format("%[%Q%]", data->main->error.to, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable);
fl_print_format("%['.%]%r%r", data->main->error.to, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
status = F_status_set_error(F_failure);
}
- fflush(data->main->error.to);
+ f_file_stream_flush(data->main->error.to);
return status;
}
if (main->output.verbosity != f_console_verbosity_quiet_e) {
if (F_status_is_error(status)) {
f_file_stream_flush(main->output.to);
- fflush(main->error.to);
+ f_file_stream_flush(main->error.to);
fll_print_dynamic_raw(f_string_eol_s, main->output.to);
}
if (header.status == F_busy) {
if (main->warning.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(main->warning.to.stream);
+ f_file_stream_lock(main->warning.to);
fl_print_format("%r%[%QThe action '%]", main->warning.to, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning);
fl_print_format("%[%q%]", main->warning.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable);
fl_print_format("%[' could not be performed because the service is busy.%]%r", main->warning.to, main->context.set.warning, main->context.set.warning, f_string_eol_s);
- funlockfile(main->warning.to.stream);
+ f_file_stream_unlock(main->warning.to);
return;
}
if (main->output.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fl_print_format("%rThe action '", main->output.to, f_string_eol_s);
fl_print_format("%[%q%]", main->output.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable);
fl_print_format(".%r", main->output.to, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
#endif // _di_control_print_controller_packet_response_
if (main->output.verbosity == f_console_verbosity_debug_e) return;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fl_print_format("%rPacket header Object '%[%Q%]", main->output.to, f_string_eol_s, main->context.set.notable, object, main->context.set.notable);
fl_print_format("' has value '%[%/Q%]'.%r", main->output.to, main->context.set.notable, content, content_range, main->context.set.notable, f_string_eol_s);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
#endif // _di_control_print_debug_packet_header_object_and_content_
if (main->output.verbosity == f_console_verbosity_debug_e) return;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fl_print_format("%r%s", main->output.to, f_string_eol_s, message, main->context.set.notable, main->context.set.notable);
fl_print_format(".%r", main->output.to, f_string_eol_s);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
#endif // _di_control_print_debug_packet_message_
if (main->warning.verbosity == f_console_verbosity_debug_e) return;
- flockfile(main->warning.to.stream);
+ f_file_stream_lock(main->warning.to);
fl_print_format("%r%[%QThe received response header '%]", main->warning.to, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning);
fl_print_format("%[%Q%]", main->warning.to, main->context.set.notable, response_header, main->context.set.notable);
fl_print_format("%[' is repeated.%]%r", main->warning.to, main->context.set.warning, main->context.set.warning, f_string_eol_s);
- funlockfile(main->warning.to.stream);
+ f_file_stream_unlock(main->warning.to);
}
#endif // _di_control_print_warning_packet_header_duplicate_object_
if (main->warning.verbosity == f_console_verbosity_debug_e) return;
- flockfile(main->warning.to.stream);
+ f_file_stream_lock(main->warning.to);
fl_print_format("%r%[%QFailed while calling f_status_string_to() for status%] ", main->output.to, f_string_eol_s, main->context.set.warning, main->context.set.warning, main->context.set.warning);
fl_print_format("%[%ui%]", main->output.to, main->context.set.notable, status_of, main->context.set.notable);
fl_print_format("%[%ui%]", main->output.to, main->context.set.notable, status_error, main->context.set.notable);
fl_print_format("%[.%]%r", main->output.to, main->context.set.warning, main->context.set.warning, f_string_eol_s);
- funlockfile(main->warning.to.stream);
+ f_file_stream_unlock(main->warning.to);
}
#endif // _di_control_print_warning_packet_process_string_to_failed_
controller_print_error_file(0, global->main->error, F_status_set_fine(status), "controller_file_pid_create", F_true, global->setting->path_pid, f_file_operation_create_s, fll_error_file_type_file_e);
- flockfile(global->main->error.to);
+ f_file_stream_lock(global->main->error.to);
controller_entry_print_error_cache(is_entry, global->main->error, cache->action);
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
f_thread_mutex_lock(&global.thread->lock.print);
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->action.name_action, global.main->error.notable);
}
}
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
f_thread_mutex_unlock(&global.thread->lock.print);
}
else {
if (fl_string_dynamic_compare(action->parameters.array[1], cache->buffer_path) == F_equal_to_not) {
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action second parameter '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[1], global.main->error.notable);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->buffer_path, global.main->error.notable);
fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
action->status = F_status_set_error(F_parameter);
}
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action third parameter (and beyond) must be one of '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_asynchronous_s, global.main->error.notable);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[j], global.main->error.notable);
fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
} // for
}
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action may not specify the reserved item '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_main_s, global.main->error.notable);
fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
}
}
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action must have one of '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_kill_s, global.main->error.notable);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[0], global.main->error.notable);
fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
}
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action parameter '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[1], global.main->error.notable);
fl_print_format("%[' is not a valid supported number.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
}
action->status = F_status_set_error(F_supported_not);
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r item action may only have '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_wait_s, global.main->error.notable);
fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[0], global.main->error.notable);
fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
}
}
if (global.main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(global.main->error.to);
+ f_file_stream_lock(global.main->error.to);
fl_print_format("%r%[%QThe %r setting '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_file, cache->content_actions.array[i].array[1], global.main->error.notable);
fl_print_format("%[' is not a valid supported number.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s);
- funlockfile(global.main->error.to);
+ f_file_stream_unlock(global.main->error.to);
}
}
}
fll_error_print(print, status, function, fallback);
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
controller_entry_print_error_cache(is_entry, print, cache);
fll_error_file_print(print, status, function, fallback, name, operation, type);
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
controller_entry_print_error_cache(is_entry, print, cache);
* @param thread
* The thread containing the print mutex to lock.
*
- * @see flockfile()
- *
+ * @see f_file_stream_lock()
* @see f_thread_mutex_unlock()
*/
#ifndef _di_controller_lock_print_
* @param thread
* The thread containing the print mutex to unlock.
*
- * @see funlockfile()
+ * @see f_file_stream_unlock()
*
* @see f_thread_mutex_unlock()
*/
fll_error_print(print, status, function, fallback);
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
controller_rule_print_error_cache(print, cache, item);
controller_rule_print_error_cache(print, cache, item);
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
controller_unlock_print_flush(print.to, thread);
}
if (environment->used + data_build->setting.environment.used > environment->size) {
if (environment->used + data_build->setting.environment.used > f_environment_max_length) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe values for the setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable);
fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable);
fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
}
*status = F_status_set_error(F_array_too_large);
for (uint8_t i = 0; i < 1; ++i) {
if (!settings[i]->used) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, names[i], data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
failed = F_true;
}
if (found == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe specified mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, modes->array[i], data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
error_printed = F_true;
if (F_status_is_error(*status)) {
if (*status == F_status_set_error(F_string_too_large)) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
fl_print_format("%r%[%QA setting in the file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else if (!error_printed) {
*settings_single_bool[i] = F_true;
if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
}
*settings_single_language[i] = fake_build_language_type_c_e;
if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
}
*settings_single_version[i] = settings_single_version_default[i];
if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_version_default_name[i], data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
}
setting->version_file = fake_build_version_type_micro_e;
if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_file_s, data->main->warning.notable);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
setting->version_target = fake_build_version_type_major_e;
if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_target_s, data->main->warning.notable);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
}
}
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameters '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_shared_disabled_s, data->main->error.notable);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_shared ? fake_long_shared_enabled_s : fake_long_shared_disabled_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else {
}
if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameters '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_static_disabled_s, data->main->error.notable);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_static ? fake_long_static_enabled_s : fake_long_static_disabled_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else {
if (setting->build_language == fake_build_language_type_c_e || setting->build_language == fake_build_language_type_cpp_e) {
if (setting->build_shared == F_false && setting->build_static == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe build settings '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_build_shared_s, data->main->error.notable);
fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, setting->build_language == fake_build_language_type_c_e ? fake_build_language_c_s : fake_build_language_cpp_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
*status = F_status_set_error(F_failure);
if (*status == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable);
fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
*status = F_status_set_error(F_failure);
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_file_found_not) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable);
fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
else {
fll_error_file_print(data->main->error, F_status_set_fine(*status), "f_directory_create", F_true, destination_path, f_file_operation_create_s, fll_error_file_type_directory_e);
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_failure) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to execute script: '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else {
if (F_status_is_fine(status)) {
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
fl_print_format("%r%[Building%] ", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable);
fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
}
}
f_status_t fake_clean_operate(fake_data_t * const data) {
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
fl_print_format("%r%[Deleting all files within build directory '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->path_build, data->main->context.set.notable);
fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
}
f_status_t status = F_none;
if (F_status_is_error(*status)) return 1;
if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
f_print_dynamic(program, data->main->output.to);
f_print_dynamic_raw(f_string_eol_s, data->main->output.to);
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
// Flush to stdout before executing command.
- fflush(data->main->output.to);
+ f_file_stream_flush(data->main->output.to);
}
int return_code = 0;
if (F_status_set_fine(*status) == F_file_found_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to find program '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, program, data->main->error.notable);
fl_print_format("%[' for executing.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else {
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_process_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (status == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_process_s, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->main->parameters.arguments.array[index], data->main->error.notable);
fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_status_set_error(F_parameter);
if (F_status_is_error(status)) {
if (status == F_status_set_error(F_string_too_large)) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%Q%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable);
fl_print_format("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
else {
if (!data->main->parameters.arguments.array[index].used || status == F_data_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable);
fl_print_format("%[' must not be empty and must not contain only white space.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
}
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), "f_path_directory_cleanup", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to process parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), " f_string_dynamic_append", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to load default for the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_define_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (F_status_is_error(status)) {
if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return status;
if (status == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->mode.array[i], data->main->error.notable);
fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_status_set_error(F_parameter);
}
}
else if (parameters_required[i] == F_true) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QNo valid path for the (required) directory parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable);
fl_print_format("%[' was found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
return F_status_set_error(F_directory_found_not);
}
if (!data_make->buffer.used) {
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->warning.to);
+ f_file_stream_lock(data_make->warning.to);
fl_print_format("%r%[%QThe fakefile '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context);
fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, data_make->data->file_data_build_fakefile, data_make->main->warning.notable);
fl_print_format("%[' is empty.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s);
- funlockfile(data_make->main->warning.to);
+ f_file_stream_unlock(data_make->warning.to);
}
return;
if (missing_main) {
if (data_make->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data_make->main->error.to);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe fakefile '%]", data_make->main->error.to, f_string_eol_s, data_make->main->error.context, data_make->main->error.prefix, data_make->main->error.context);
fl_print_format("%[%Q%]", data_make->main->error.to, data_make->main->error.notable, data_make->data->file_data_build_fakefile, data_make->main->error.notable);
fl_print_format("%[%r%]", data_make->main->error.to, data_make->main->error.notable, fake_make_section_main_s, data_make->main->error.notable);
fl_print_format("%[' object.%]%r", data_make->main->error.to, data_make->main->error.context, data_make->main->error.context, f_string_eol_s);
- funlockfile(data_make->main->error.to);
+ f_file_stream_unlock(data_make->error.to);
}
*status = F_status_set_error(F_failure);
}
else {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, define.array[i].name, data->main->error.notable);
fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
status = F_status_set_error(F_failure);
++data_make->setting_build.environment.used;
}
else if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->warning.to);
+ f_file_stream_lock(data_make->warning.to);
fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context);
fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, name_define, data_make->main->warning.notable);
fl_print_format("%[' is already added.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s);
- funlockfile(data_make->main->warning.to);
+ f_file_stream_unlock(data_make->warning.to);
}
}
else if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->warning.to);
+ f_file_stream_lock(data_make->warning.to);
fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context);
fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, name_define, data_make->main->warning.notable);
fl_print_format("%[' is invalid, ignoring.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s);
- funlockfile(data_make->main->warning.to);
+ f_file_stream_unlock(data_make->warning.to);
}
name_define.used = 0;
}
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
fl_print_format("%r%[Now making using '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->fakefile, data->main->context.set.notable);
fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
}
f_status_t status = F_none;
const f_status_t status_path = f_path_change_at(data_make.path.top.id);
if (F_status_is_error(status_path) && data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QFailed change back to orignal path '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, data_make.path.stack.array[0], data->main->warning.notable);
fl_print_format("%[%ui%]", data->main->warning.to, data->main->warning.notable, F_status_set_fine(status_path), data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
}
const f_fss_named_t *section = &data_make->fakefile.array[id_section];
if (data_make->main->output.verbosity != f_console_verbosity_quiet_e && data_make->main->output.verbosity != f_console_verbosity_error_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fl_print_format("%r%[Processing Section '%]", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.important, data_make->main->context.set.important);
fl_print_format("%[%/Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->buffer, section->name, data_make->main->context.set.notable);
fl_print_format("%['.%]%r", data_make->main->output.to, data_make->main->context.set.important, data_make->main->context.set.important, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
if (!section->objects.used) {
if (i == section->objects.used && F_status_is_error_not(*status) && (state_process.operation == fake_make_operation_type_and_e || state_process.operation == fake_make_operation_type_else_e || state_process.operation == fake_make_operation_type_if_e || state_process.operation == fake_make_operation_type_or_e)) {
if (data_make->data->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QIncomplete '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[' at end of the section.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
fake_print_message_section_operation_failed(data_make->data, data_make->error, data_make->buffer, section->name, section->objects.array[section->objects.used - 1]);
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
f_array_length_t i = 0;
f_print_dynamic_raw(f_string_eol_s, data_make->main->output.to);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
// Flush to stdout before executing command.
- fflush(data_make->main->output.to);
+ f_file_stream_flush(data_make->main->output.to);
}
int return_code = 0;
if (F_status_set_fine(status) == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find program '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, program, data_make->error.notable);
fl_print_format("%[' for executing.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
}
else if (F_status_set_fine(status) != F_failure) {
}
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed with return code %]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%i%]", data_make->error.to, data_make->error.notable, return_code, data_make->error.notable);
fl_print_format("%[.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
if (data_make->setting_make.fail == fake_make_operation_fail_type_exit_e) return F_status_set_error(F_failure);
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fl_print_format("%rBreaking as '", data_make->main->output.to, f_string_eol_s);
fl_print_format("%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable);
fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
return status;
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fl_print_format("%r%s '%[%Q%]' to '", data_make->main->output.to, f_string_eol_s, clone ? "Cloned" : "Copied", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
fl_print_format("%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, destination, data_make->main->context.set.notable, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
}
else if (F_status_is_error(status_file)) {
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->warning.to);
+ f_file_stream_lock(data_make->warning.to);
fl_print_format("%r%[%QThe file '%]", data_make->main->warning.to, data_make->main->warning.prefix, f_string_eol_s);
fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, data_make->cache_arguments.array[i], data_make->main->warning.notable);
fl_print_format("%[' cannot be found.%]%r", data_make->main->warning.to, f_string_eol_s);
- funlockfile(data_make->main->warning.to);
+ f_file_stream_unlock(data_make->warning.to);
}
status = F_none;
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
f_print_terminated("Set failure state to '", data_make->main->output.to);
fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
}
#endif // _di_fake_make_operate_process_type_fail_
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fl_print_format("%r group of '%[%r%]", data_make->main->output.to, all ? "Recursively changed" : "Changed", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
fl_print_format("' to %[%ul%].%r", data_make->main->output.to, data_make->main->context.set.notable, id, data_make->main->context.set.notable, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
} // for
state_process->condition_result = fake_condition_result_error_e;
if (data_make->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
if ((i == 1 && number_left > F_number_t_size_unsigned_d) || (i > 1 && number_right > F_number_t_size_unsigned_d)) {
fl_print_format("%r%[%QThe number '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s);
}
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fl_print_format("Created symbolic link from '%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->main->context.set.notable);
fl_print_format("' to %[%Q%].%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
}
return F_none;
} // for
}
- flockfile(data_make->main->output.to);
+ f_file_stream_lock(data_make->output.to);
fll_print_dynamic_raw(data_make->cache_1, data_make->main->output.to);
fll_print_dynamic_raw(f_string_eol_s, data_make->main->output.to);
- funlockfile(data_make->main->output.to);
+ f_file_stream_unlock(data_make->output.to);
return F_none;
}
if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported break type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (status == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, path_file, data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (!status) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, path_file, data_make->error.notable);
fl_print_format("%[' must be a regular file.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status_file == F_false || status_file == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status_file == F_false) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (data_make->setting_build.build_compiler.used) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QNo compiler has been specified, cannot perform '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_compile_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (state_process->operation == fake_make_operation_type_if_e) {
if (state_process->operation_previous == fake_make_operation_type_if_e) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
else {
if (!(state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e)) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QMay only be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (i == 23) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, if_and_or, data_make->error.notable);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (j == 7) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, if_and_or, data_make->error.notable);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (fl_string_dynamic_compare(fake_make_operation_argument_is_s, data_make->cache_arguments.array[k]) == F_equal_to_not) {
if (fl_string_dynamic_compare(fake_make_operation_argument_has_s, data_make->cache_arguments.array[k]) == F_equal_to_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported %smode type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, j == 6 ? "" : "not ", data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
}
else {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
type_file |= 0x80;
status = F_status_set_error(F_failure);
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
if (number > F_number_t_size_unsigned_d) {
fl_print_format("%r%[%QThe number '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
}
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
}
} // for
if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status_file == F_false || status_file == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status_file == F_false) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status == F_false) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (state_process->operation_previous == fake_make_operation_type_else_e) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_else_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QMust not be used immediately after an '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (fl_string_dynamic_compare(fake_make_operation_argument_success_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported exit type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (fl_string_dynamic_compare(fake_make_operation_argument_warn_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (fl_string_dynamic_compare(fake_make_operation_argument_ignore_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported fail type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (!data_make->setting_build.build_indexer.used) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QNo indexer has been specified, cannot perform '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_index_s, data_make->error.notable);
fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status == F_false || status == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (status == F_false) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable);
fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
} // for
if (id_section == data_make->fakefile.used) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QNo operation section named '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%[' is found.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
return F_status_set_error(F_failure);
}
if (section_stack->array[i] == id_section) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe section operation '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->fakefile.array[id_section].name, data_make->error.notable);
fl_print_format("%[' is already in the operation stack, recursion is not allowed.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (status_file == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
status = F_status_set_error(F_failure);
if (status == F_file_found_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (!status) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%[' must be a directory file.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (fl_string_dynamic_compare(fake_make_operation_argument_directory_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) {
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable);
fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
return F_status_set_error(F_failure);
if (status == F_exist_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe group name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_status_set_error(F_failure);
if (number > F_type_size_32_unsigned_d) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe number '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, number, data->main->error.notable);
fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
if (F_status_is_error(status)) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
if (F_status_set_fine(status) == F_syntax) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
fl_print_format("%[' is invalid.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
else {
fll_error_print(print, status, "f_file_mode_from_string", F_true);
if (status == F_exist_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe user '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_status_set_error(F_failure);
if (number > F_type_size_32_unsigned_d) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe number '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, number, data->main->error.notable);
fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
}
if (status == F_file_found_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to find '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_parameter) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QInvalid parameter when calling '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%S%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_name) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QInvalid name for '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_memory_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QUnable to allocate memory, while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_number_overflow) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QOverflow while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_directory) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QInvalid directory while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_access_denied) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QAccess denied while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_loop) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QLoop while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_prohibited) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QProhibited by system while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_directory_found_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%[' due to an invalid directory in the path.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_failure) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
}
if (fll_error_print(data->main->error, status, function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, status, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_true;
if (status == F_file_found_not) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop position (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_complete_not_utf || status == F_complete_not_utf_eos || status == F_complete_not_utf_stop) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QOccurred on invalid UTF-8 character at %s (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, status == F_complete_not_utf_eos ? "end of string" : "stop point of string", data->main->error.context);
fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
if (status == F_complete_not_utf_stop) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop point of string (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_false;
}
if (fll_error_print(data->main->error, status, function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, status, data->main->error.notable);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable);
fl_print_format("%[().%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_true;
if (data->main->error.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameter, data->main->error.notable);
fl_print_format("%[' is specified, but no value is given.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
#endif // _di_fake_print_error_parameter_missing_value_
if (data->main->error.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameter, data->main->error.notable);
fl_print_format("%[' was specified too many times.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
#endif // _di_fake_print_error_parameter_too_many_
if (data_make->error.verbosity == f_console_verbosity_quiet_e) return;
if (!data_make->error.to) return;
- flockfile(data_make->error.to.stream);
+ f_file_stream_lock(data_make->error.to);
fl_print_format("%r%[%QThe %]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
fl_print_format("%[%un%]", data_make->error.to, data_make->error.notable, index, data_make->error.notable);
fl_print_format("%[ argument must not be an empty string.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s);
- funlockfile(data_make->error.to.stream);
+ f_file_stream_unlock(data_make->error.to);
}
#endif // _di_fake_print_error_argument_empty_
f_fss_count_lines(state, buffer, operation_name.start, &line);
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
fl_print_format("%r%[%QThe section operation '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context);
fl_print_format("%[%/Q%]", print.to, print.notable, buffer, operation_name, print.notable);
fl_print_format("%[%un%]", print.to, print.notable, line, print.notable);
fl_print_format(" %[failed.%]%r", print.to, print.context, print.context, f_string_eol_s);
- funlockfile(print.to.stream);
+ f_file_stream_unlock(print.to);
}
#endif // _di_fake_print_message_section_operation_failed_
if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return;
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
fl_print_format("%r%[%QThe argument '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context);
fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable);
fl_print_format("%[%r%]", print.to, print.notable, fake_make_operation_argument_strict_s, print.notable);
fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s);
- funlockfile(print.to.stream);
+ f_file_stream_unlock(print.to);
}
#endif // _di_fake_print_message_section_operation_link_argument_unknown_
if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return;
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
fl_print_format("%r%[%QThe point file '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context);
fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable);
fl_print_format("%[' already exists.%]%r", print.to, print.context, print.context, f_string_eol_s);
- funlockfile(print.to.stream);
+ f_file_stream_unlock(print.to);
}
#endif // _di_fake_print_message_section_operation_link_point_exists_
if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return;
- flockfile(print.to.stream);
+ f_file_stream_lock(print.to);
fl_print_format("%r%[%QThe target file '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context);
fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable);
fl_print_format("%[' does not exist.%]%r", print.to, print.context, print.context, f_string_eol_s);
- funlockfile(print.to.stream);
+ f_file_stream_unlock(print.to);
}
#endif // _di_fake_print_message_section_operation_link_target_exists_not_
if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return;
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
if (F_status_set_fine(status) == F_false) {
fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fll_error_file_print(data->main->error, F_status_set_fine(status), function, F_true, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e);
}
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
#endif // _di_fake_print_message_section_operation_path_outside_
if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return;
if (status == F_array_too_large) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QMaximum stack size reached while processing path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
fl_print_format(".%]%r", data->main->error.to, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
else {
fll_error_file_print(print, status, function, F_true, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e);
f_fss_count_lines(state, buffer, operation_name.start, &line);
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable);
fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, stack_max, data->main->error.notable);
fl_print_format(" %[has been reached.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
#endif // _di_fake_print_message_section_operation_stack_max_
f_fss_count_lines(state, buffer, operation_name.start, &line);
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable);
fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, line, data->main->error.notable);
fl_print_format(" %[is not a known operation name.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
#endif // _di_fake_print_message_section_operation_unknown_
if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, buffer, range_object, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
#endif // _di_fake_print_warning_settings_content_empty_
if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, buffer, range_object, data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
#endif // _di_fake_print_warning_settings_content_invalid_
if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, name_object, data->main->warning.notable);
fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable);
fl_print_format("%[' may only have a single property, only using the first.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
#endif // _di_fake_print_warning_settings_content_multiple_
if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QThe object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, name_object, data->main->warning.notable);
fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable);
fl_print_format("%[' may only be specified once, only using the first.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
#endif // _di_fake_print_warning_settings_object_multiple_
* F_true is returned if the status code has no print message.
* F_false is returned on successful print of known errors.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*
* @see fake_print_error_build_operation_file_message();
* F_true is returned if the status code has no print message.
* F_false is returned on successful print of known errors.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_fss_
* @param parameter
* The parameter name.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_parameter_missing_value_
* @param parameter
* The parameter name.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_parameter_too_many_
* @param operation_name
* The range within the buffer representing the operation name within the section.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_failed_
* @param argument
* The argument that is unknown by the link operation.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_link_argument_unknown_
* @param argument
* The argument representing the point file.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_link_point_exists_
* @param argument
* The argument representing the point file.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_link_target_exists_not_
* @param path
* The path that is outside of the project path.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
* @see fll_error_file_print()
*/
* @param path
* The path to the directory.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
* @see fll_error_file_print()
*/
* @param stack_max
* The max stack depth.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_stack_max_
* @param operation_name
* The range within the buffer representing the operation name within the section.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_message_section_operation_unknown_
* @param settings_name
* The name of the setting that has an invalid value.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_warning_settings_content_empty_
* @param settings_name
* The name of the setting that has an invalid value.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_warning_settings_content_invalid_
* @param name_object
* The name of the object.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_warning_settings_content_multiple_
* @param name_object
* The name of the object.
*
- * @see flockfile()
- * @see funlockfile()
- *
+ * @see f_file_stream_lock()
+ * @see f_file_stream_unlock()
* @see fl_print_format()
*/
#ifndef _di_fake_print_warning_settings_object_multiple_
if (status == F_false) {
if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
return F_status_set_warning(F_failure);
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
else {
fll_error_file_print(data->main->error, F_status_set_fine(status), "f_directory_create", F_true, path, f_file_operation_create_s, fll_error_file_type_directory_e);
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
}
else {
fll_error_file_print(data->main->error, F_status_set_fine(status), "f_file_create", F_true, path, f_file_operation_create_s, fll_error_file_type_file_e);
show_ports = F_true;
}
else {
- flockfile(main->warning.to.stream);
+ f_file_stream_lock(main->warning.to);
fl_print_format("%r%[%Q'%]", main->warning.to, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context);
fl_print_format("%[%Q%]", main->warning.to, main->warning.notable, data.argv[index], main->warning.notable);
fl_print_format("%[' is not a valid show option.%]%r", main->warning.to, main->warning.context, main->warning.context, f_string_eol_s);
- funlockfile(main->warning.to.stream);
- fflush(main->warning.to);
+ f_file_stream_unlock(main->warning.to);
+ f_file_stream_flush(main->warning.to);
}
}
}
if (output.verbosity != f_console_verbosity_debug_e) return;
- flockfile(output.to.stream);
+ f_file_stream_lock(output.to);
fl_print_format("%[%r", output.to, output.context, tool);
fl_print_format("%]%r", output.to, output.context, f_string_eol_s);
- funlockfile(output.to.stream);
+ f_file_stream_unlock(output.to);
}
void firewall_print_error_on_allocation_failure(const fl_print_t output) {
if (output.verbosity == f_console_verbosity_quiet_e) return;
- flockfile(output.to.stream);
+ f_file_stream_lock(output.to);
fl_print_format("%r%[%QFailed to perform requested %r operation:%]", output.to, f_string_eol_s, output.context, output.prefix, tool, output.context);
fl_print_format("%r %[%r", output.to, f_string_eol_s, output.context, tool);
fl_print_format("%]%r", output.to, output.context, f_string_eol_s);
- funlockfile(output.to.stream);
+ f_file_stream_unlock(output.to);
}
void firewall_print_error_on_unhandled(const fl_print_t output, const char *function, const f_status_t status) {
// If the remaining rule does not match as firewall_rule_s, then it is an invalid rule.
else if (fl_string_dynamic_compare_string(local->buffer.string + local->rule_objects.array[i].start, firewall_rule_s, length) == F_equal_to_not) {
if (length) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, data->main->warning.notable);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable);
fl_print_format("%[' is invalid.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
else {
fll_print_format("%r%[%QAt line %ul, the object is missing.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s);
length = (local->rule_objects.array[i].stop - local->rule_objects.array[i].start) + 1;
if (length) {
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_contents.array[i].array[0], data->main->warning.notable);
fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
}
else {
fll_print_format("%r%[%QAt line %ul, the object has no content.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s);
else {
length = (local->rule_objects.array[i].stop - local->rule_objects.array[i].start) + 1;
- flockfile(data->main->warning.to);
+ f_file_stream_lock(data->main->warning);
fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context);
fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable);
fl_print_format("%]%[' has no content.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
- funlockfile(data->main->warning.to);
+ f_file_stream_unlock(data->main->warning);
break;
}
}
if ((data->option & fss_basic_list_read_data_option_object_d) || (data->option & fss_basic_list_read_data_option_content_d) && (data->contents.array[at].used || (data->option & fss_basic_list_read_data_option_empty_d))) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_list_read_data_option_object_d) {
if (data->option & fss_basic_list_read_data_option_trim_d) {
fss_basic_list_read_print_set_end(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_basic_list_read_print_at_
if (status == F_data_not_stop || status == F_data_not_eos) {
if (data->option & fss_basic_list_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
// This standard does not support multiple content groups.
if ((data->option & fss_basic_list_read_data_option_select_d) && data->select) {
if (main->parameters.array[fss_basic_list_read_parameter_total_e].result == f_console_result_found_e) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->depths.array[0].value_at >= data->objects.used) {
if (data->option & (fss_basic_list_read_data_option_columns_d | fss_basic_list_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
} // for
if (data->option & fss_basic_list_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_basic_list_read_data_option_object_d) {
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_list_read_data_option_total_d) {
fss_basic_list_read_print_one(main);
fss_basic_list_read_print_at_object(main, data, at, delimits_object);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (*line == data->line) {
range.stop = i;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_list_read_data_option_total_d) {
fss_basic_list_read_print_one(main);
f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
++(*line);
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_list_read_data_option_total_d) {
fss_basic_list_read_print_one(main);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
f_status_t fss_basic_list_read_process_columns(fll_program_data_t * const main, fss_basic_list_read_data_t * const data, bool names[]) {
if (!(data->option & fss_basic_list_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
}
} // for
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_list_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
}
if ((data->option & fss_basic_read_data_option_object_d) || (data->option & fss_basic_read_data_option_content_d) && (data->contents.array[at].used || (data->option & fss_basic_read_data_option_empty_d))) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_read_data_option_object_d) {
if (data->option & fss_basic_read_data_option_trim_d) {
fss_basic_read_print_set_end(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_basic_read_print_at_
// This standard does not support multiple content groups.
if ((data->option & fss_basic_read_data_option_select_d) && data->select) {
if (main->parameters.array[fss_basic_read_parameter_total_e].result == f_console_result_found_e) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->depths.array[0].value_at >= data->objects.used) {
if (data->option & (fss_basic_read_data_option_columns_d | fss_basic_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_basic_read_data_option_line_d) {
if (data->line) {
if (data->option & fss_basic_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->line) break;
if (data->option & fss_basic_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
else {
fss_basic_read_print_at(main, i, *delimits, except_none, data);
fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s);
}
else if (data->option & fss_basic_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->contents.array[i].used) {
fss_basic_read_print_one(main);
fss_basic_read_print_zero(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
else {
fss_basic_read_print_at(main, i, *delimits, except_none, data);
} // for
if (data->option & fss_basic_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
f_status_t fss_basic_read_process_columns(fll_program_data_t * const main, fss_basic_read_data_t * const data, bool names[]) {
if (!(data->option & fss_basic_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
if (!data->contents.array[i].used) {
if (data->option & fss_basic_read_data_option_empty_d) {
if (line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_basic_read_print_set_end(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
break;
}
++total;
} // for
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_basic_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
for (j = i + 1; j < depths->used; ++j) {
if (depths->array[i].depth == depths->array[j].depth) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe value '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[i].depth, data->main->error.notable);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
return F_status_set_error(F_parameter);
}
else if (depths->array[i].depth > depths->array[j].depth) {
- flockfile(data->main->error.to);
+ f_file_stream_lock(data->main->error);
fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable);
fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[j].depth, data->main->error.notable);
fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
- funlockfile(data->main->error.to);
+ f_file_stream_unlock(data->main->error);
return F_status_set_error(F_parameter);
}
print_object = &fl_print_trim_except_dynamic_partial;
}
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
for (i = 0; i < items->used; ++i) {
fss_embedded_list_read_print_set_end(data);
} // for
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
return F_none;
}
if (data->main->parameters.array[fss_embedded_list_read_parameter_line_e].result == f_console_result_additional_e) {
f_array_length_t line_current = 0;
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
for (; i < items->used; ++i) {
}
} // for
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
return F_none;
}
- flockfile(data->main->output.to);
+ f_file_stream_lock(data->main->output);
for (i = 0; i < items->used; ++i) {
}
} // for
- funlockfile(data->main->output.to);
+ f_file_stream_unlock(data->main->output);
return F_none;
}
}
if ((data->option & fss_extended_list_read_data_option_object_d) || ((data->option & fss_extended_list_read_data_option_content_d) && (data->contents.array[at].used && data->contents.array[at].array[0].start <= data->contents.array[at].array[0].stop || (data->option & fss_extended_list_read_data_option_empty_d)))) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_list_read_data_option_object_d) {
if (data->option & fss_extended_list_read_data_option_trim_d) {
fss_extended_list_read_print_set_end(main, data);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_extended_list_read_print_at_
if (data->depths.array[0].value_at >= data->objects.used) {
if (data->option & (fss_extended_list_read_data_option_columns_d | fss_extended_list_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
}
else if (data->option & fss_extended_list_read_data_option_total_d) {
if ((data->option & fss_extended_list_read_data_option_object_d) && !(data->option & fss_extended_list_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->contents.array[i].used) {
fss_extended_list_read_print_one(main);
fss_extended_list_read_print_zero(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
else {
f_array_length_t total = 0;
} // for
if (data->option & fss_extended_list_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_extended_list_read_data_option_object_d) {
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_list_read_data_option_total_d) {
fss_extended_list_read_print_one(main);
fss_extended_list_read_print_at_object(main, data, at, delimits_object);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (*line == data->line) {
range.stop = i;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_list_read_data_option_total_d) {
fss_extended_list_read_print_one(main);
f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
++(*line);
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_list_read_data_option_total_d) {
fss_extended_list_read_print_one(main);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
f_status_t fss_extended_list_read_process_columns(fll_program_data_t * const main, fss_extended_list_read_data_t * const data, bool names[]) {
if (!(data->option & fss_extended_list_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_list_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
}
} // for
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_list_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
return;
}
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if ((data->option & fss_extended_read_data_option_object_d) || (data->option & fss_extended_read_data_option_content_d) && (data->contents.array[at].used || (data->option & fss_extended_read_data_option_empty_d))) {
if (data->option & fss_extended_read_data_option_object_d) {
fss_extended_read_print_set_end(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_extended_read_print_at_
if (data->option & fss_extended_read_data_option_select_d) {
if (data->option & fss_extended_read_data_option_object_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (data->select < data->contents.array[at].used) {
if (data->contents.array[at].array[data->select].start <= data->contents.array[at].array[data->select].stop || (data->option & fss_extended_read_data_option_empty_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
}
}
else if ((data->option & fss_extended_read_data_option_object_d) || (data->option & fss_extended_read_data_option_empty_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
for (f_array_length_t j = 0; j < data->contents.array[at].used; ++j) {
if (data->contents.array[at].array[j].start <= data->contents.array[at].array[j].stop) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (data->depths.array[0].value_at >= data->objects.used) {
if (data->option & (fss_extended_read_data_option_columns_d | fss_extended_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_extended_read_data_option_line_d) {
if (data->line) {
if (data->option & fss_extended_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
} // for
if (data->option & fss_extended_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
f_status_t fss_extended_read_process_columns(fll_program_data_t * const main, fss_extended_read_data_t * const data, bool names[]) {
if (!(data->option & fss_extended_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
if (!data->contents.array[i].used) {
if (data->option & fss_extended_read_data_option_empty_d) {
if (line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_extended_read_print_set_end(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
break;
}
} // for
}
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_extended_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
#ifndef _di_fss_identify_print_
void fss_identify_print(fll_program_data_t * const main, const f_fll_id_t id) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (main->parameters.array[fss_identify_parameter_object_e].result == f_console_result_found_e || main->parameters.array[fss_identify_parameter_content_e].result != f_console_result_found_e) {
f_print((const f_string_t) id.name, id.used, main->output.to);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
#endif // _di_fss_identify_print_
}
if ((data->option & fss_payload_read_data_option_object_d) || (data->option & fss_payload_read_data_option_content_d) && (data->contents.array[at].used || (data->option & fss_payload_read_data_option_empty_d))) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_object_d) {
if (data->option & fss_payload_read_data_option_trim_d) {
fss_payload_read_print_set_end(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_payload_read_print_at_
return;
}
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if ((data->option & fss_payload_read_data_option_object_d) || (data->option & fss_payload_read_data_option_content_d) && (data->contents_header.array[at].used || (data->option & fss_payload_read_data_option_empty_d))) {
if (data->option & fss_payload_read_data_option_object_d) {
fss_payload_read_print_set_end_extended(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
}
#endif // _di_fss_payload_read_print_at_extended_
if (data->option & fss_payload_read_data_option_select_d) {
if (data->option & fss_payload_read_data_option_object_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (data->select < data->contents_header.array[at].used) {
if (data->contents_header.array[at].array[data->select].start <= data->contents_header.array[at].array[data->select].stop || (data->option & fss_payload_read_data_option_empty_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
}
}
else if ((data->option & fss_payload_read_data_option_object_d) || (data->option & fss_payload_read_data_option_empty_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
for (f_array_length_t j = 0; j < data->contents_header.array[at].used; ++j) {
if (data->contents_header.array[at].array[j].start <= data->contents_header.array[at].array[j].stop) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_one(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (status == F_data_not_stop || status == F_data_not_eos) {
if (data->option & fss_payload_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
if (!(data->option & fss_payload_read_data_option_extended_d)) {
if ((data->option & fss_payload_read_data_option_select_d) && data->select) {
if (main->parameters.array[fss_payload_read_parameter_total_e].result == f_console_result_found_e) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (names[i]) break;
if (main->parameters.array[fss_payload_read_parameter_total_e].result == f_console_result_found_e) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->depths.array[0].value_at >= data->objects.used) {
if (data->option & (fss_payload_read_data_option_columns_d | fss_payload_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s);
}
else if (data->option & fss_payload_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->contents.array[i].used) {
fss_payload_read_print_one(main);
fss_payload_read_print_zero(main);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
else {
is_payload = fl_string_dynamic_partial_compare_string(f_fss_string_payload_s.string, data->buffer, f_fss_string_payload_s.used, data->objects.array[i]) == F_equal_to;
} // for
if (data->option & fss_payload_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->depths.array[data->depths.used - 1].value_at >= data->objects_header.used) {
if (data->option & (fss_payload_read_data_option_columns_d | fss_payload_read_data_option_total_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_payload_read_data_option_line_d) {
if (data->line) {
if (data->option & fss_payload_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
} // for
if (data->option & fss_payload_read_data_option_total_d) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
return F_none;
if (data->option & fss_payload_read_data_option_object_d) {
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_total_d) {
fss_payload_read_print_one(main);
fss_payload_read_print_at_object(main, data, at, delimits_object);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
if (*line == data->line) {
range.stop = i;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_total_d) {
fss_payload_read_print_one(main);
f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
++(*line);
if (*line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_total_d) {
fss_payload_read_print_one(main);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_success;
}
f_status_t fss_payload_read_process_columns(fll_program_data_t * const main, fss_payload_read_data_t * const data, bool names[]) {
if (!(data->option & fss_payload_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
f_status_t fss_payload_read_process_columns_extended(fll_program_data_t * const main, fss_payload_read_data_t * const data, bool names[]) {
if (!(data->option & fss_payload_read_data_option_content_d)) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_zero(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
if (!data->contents_header.array[i].used) {
if (data->option & fss_payload_read_data_option_empty_d) {
if (line == data->line) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
fss_payload_read_print_set_end_extended(main);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
break;
}
}
} // for
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
} // for
}
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
if (data->option & fss_payload_read_data_option_line_d) {
if (data->line < total) {
fl_print_format("%ul%r", main->output.to, total, f_string_eol_s);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return F_none;
}
f_array_length_t matches = 0;
bool unmatched = F_true;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
for (i = 0; i < setting->data.vocabulary.used; ++i) {
} // for
} // for
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
if (unmatched) {
setting->status = F_data_not;
if (setting->data.variable.used) {
if (setting->flag & iki_read_main_flag_at_e) {
if (setting->at < setting->data.variable.used) {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
iki_read_print(main, setting, setting->at);
f_print_dynamic_raw(f_string_eol_s, main->output.to);
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
setting->status = F_none;
}
}
}
else {
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
for (i = 0; i < setting->data.variable.used; ++i) {
f_print_dynamic_raw(f_string_eol_s, main->output.to);
} // for
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
setting->status = F_none;
}
i = buffer_range.start;
range = buffer_range;
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
while (i <= range.stop && j < stop) {
f_print_dynamic_partial(setting->buffer, range, main->output.to);
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
}
setting->status = F_none;
utf8_process_text_width(&text);
- flockfile(main->output.to.stream);
+ f_file_stream_lock(main->output.to);
for (; text.string[0] && F_status_is_error_not(status); ) {
}
if (F_status_is_error(status)) {
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return status;
}
- funlockfile(main->output.to.stream);
+ f_file_stream_unlock(main->output.to);
return valid;
}