The status_thread is being used specifically for the signal thread.
Change the standard practice to have this renamed to status_signal.
This then helps make other status names make more sense.
Rather than have status_thread, status_thread_a, and status_thread_b, instead have status_signal, status_a, and status_b.
*
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* build: The build directory.
typedef struct {
uint32_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_string_dynamic_t build;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= fake_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
*
* range: A range used for processing as needed.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state information.
*
* buffer:A buffer used for processing files.
f_string_range_t range;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_file_t file;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= fss_identify_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
* flag: Flags passed to the main function.
* delimit_mode: The delimit mode.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* delimit_depth: The delimit depth.
uint32_t flag;
uint8_t delimit_mode;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_number_unsigned_t delimit_depth;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= fss_read_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
*
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* range: A range used in conjunction with some buffer during processing.
typedef struct {
uint16_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_string_range_t range;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= fss_write_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
*
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* at: The position representing the "at" index.
typedef struct {
uint16_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_number_unsigned_t at;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= iki_read_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
*
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* quote: This holds the quote used during processing.
typedef struct {
uint16_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_string_static_t quote;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= iki_write_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
*
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* status_string_from: A pointer to the status string function (usually either fl_status_string_from() or fll_fss_status_string_from()).
typedef struct {
uint16_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
const f_string_static_t *program_name;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= status_code_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}
* mode: The input/output mode (see utf8_modes_e).
* flag: Flags passed to the main function.
*
- * status_thread: A status used eclusively by the threaded signal handler.
+ * status_signal: A status used eclusively by the threaded signal handler.
* state: The state data used when processing the FSS data.
*
* valid: Designate the output context set for valid characters.
uint8_t mode;
uint16_t flag;
- f_status_t status_thread;
+ f_status_t status_signal;
f_state_t state;
f_color_set_t valid;
f_signal_set_add(F_signal_termination, &main->program.signal.set);
if (main->program.signal.id == -1) {
- main->setting.status_thread = f_signal_open(&main->program.signal);
+ main->setting.status_signal = f_signal_open(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
return;
do {
memset(&information, 0, sizeof(siginfo_t));
- main->setting.status_thread = f_signal_wait(&main->program.signal.set, &information);
+ main->setting.status_signal = f_signal_wait(&main->program.signal.set, &information);
- if (F_status_is_error(main->setting.status_thread) && F_status_set_fine(main->setting.status_thread) != F_interrupt) {
+ if (F_status_is_error(main->setting.status_signal) && F_status_set_fine(main->setting.status_signal) != F_interrupt) {
if (++failsafe >= utf8_signal_check_failsafe_d) break;
}
}
failsafe = 0;
- main->setting.status_thread = F_none;
+ main->setting.status_signal = F_none;
} while (!main->program.signal_received);
f_signal_close(&main->program.signal);
- if (F_status_is_error(main->setting.status_thread)) {
+ if (F_status_is_error(main->setting.status_signal)) {
main->program.signal_received = F_signal_abort;
}
}