From: Kevin Day Date: Thu, 31 Mar 2022 00:48:03 +0000 (-0500) Subject: Update: Add child integer to fll_program_data_t. X-Git-Tag: 0.5.9~21 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=7a69881cc1aabbbb836374ade04bfd7f228dffd7;p=fll Update: Add child integer to fll_program_data_t. A few of the programs practice returning the child return status or the child process id. Make this behavio standard by adding child to the fll_program_data_t. --- diff --git a/level_2/fll_program/c/program/common.h b/level_2/fll_program/c/program/common.h index 18cbf63..5733e5f 100644 --- a/level_2/fll_program/c/program/common.h +++ b/level_2/fll_program/c/program/common.h @@ -34,6 +34,7 @@ extern "C" { * * parameters: The state of pre-defined parameters passed to the program. * process_pipe: Designate whether or not to process the input pipe. + * child: Reserved for a child process, often representing the child return status or the child process ID. * output: The output file for general printing. * error: The output file for error printing. * warning: The output file for warning printing. @@ -47,6 +48,7 @@ extern "C" { uint16_t signal_check; bool process_pipe; + int child; fl_print_t output; fl_print_t error; @@ -61,6 +63,7 @@ extern "C" { { \ f_console_parameters_t_initialize, \ 0, \ + 0, \ F_false, \ fl_print_t_initialize, \ macro_fl_print_t_initialize_error(), \