return F_false;
}
- if (status == F_file_found) {
+ if (status == F_file_descriptor) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SFile descriptor error while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%[', found.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_found_not) {
+ if (status == F_file_descriptor_max) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SMax file descriptors reached while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%[', could not find.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_open) {
+ if (status == F_file_descriptor_not) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SInvalid file descriptor while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%[', already open.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_descriptor) {
+ if (status == F_file_empty) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SFile descriptor error while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%[', %s is empty.%]%c", print.to.stream, print.context, type_name, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_descriptor_max) {
+ if (status == F_file_flush) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SMax file descriptors reached while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%[', flush failed.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_descriptor_not) {
+ if (status == F_file_found) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
- fl_print_format("%c%[%SInvalid file descriptor while trying to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%['.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%[', found.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_empty) {
+ if (status == F_file_found_not) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%[', %s is empty.%]%c", print.to.stream, print.context, type_name, print.context, f_string_eol_s[0]);
+ fl_print_format("%[', could not find.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
- if (status == F_file_flush) {
+ if (status == F_file_open) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
- fl_print_format("%[', flush failed.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
+ fl_print_format("%[', already open.%]%c", print.to.stream, print.context, print.context, f_string_eol_s[0]);
funlockfile(print.to.stream);
}
return F_false;
}
+ if (status == F_read_only) {
+ if (print.verbosity != f_console_verbosity_quiet) {
+ flockfile(print.to.stream);
+
+ fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
+ fl_print_format("%[', %S is read only.%]%c", print.to.stream, print.context, type_name, print.context, f_string_eol_s[0]);
+
+ funlockfile(print.to.stream);
+ }
+
+ return F_false;
+ }
+
if (status == F_file_seek) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);
return F_false;
}
+ if (status == F_write_only) {
+ if (print.verbosity != f_console_verbosity_quiet) {
+ flockfile(print.to.stream);
+
+ fl_print_format("%c%[%SUnable to %S %S '%]", print.to.stream, f_string_eol_s[0], print.context, print.prefix, operation, type_name, print.context);
+ fl_print_format("%[%S%]", print.to.stream, print.notable, name, print.notable);
+ fl_print_format("%[', %S is write only.%]%c", print.to.stream, print.context, type_name, print.context, f_string_eol_s[0]);
+
+ funlockfile(print.to.stream);
+ }
+
+ return F_false;
+ }
+
if (status == F_loop) {
if (print.verbosity != f_console_verbosity_quiet) {
flockfile(print.to.stream);