]> Kevux Git Server - control/log
control
2 months agoBugfix: Add missing control.h header.
Kevin Day [Tue, 16 Dec 2025 02:59:20 +0000 (20:59 -0600)]
Bugfix: Add missing control.h header.

2 months agoBugfix: Finish incomplete function control_print_debug_packet_message_of().
Kevin Day [Tue, 16 Dec 2025 02:44:16 +0000 (20:44 -0600)]
Bugfix: Finish incomplete function control_print_debug_packet_message_of().

The `control_print_debug_packet_message_of()` function is missing its parts.
I think this function is meant to call `control_print_debug_packet_message()`.

2 months agoUpdate: Add pinephone build mode and fix build setting inconsistencies encountered.
Kevin Day [Tue, 16 Dec 2025 02:18:35 +0000 (20:18 -0600)]
Update: Add pinephone build mode and fix build setting inconsistencies encountered.

Add a convenience build mode similar to the `android` build mode for the `pinephone`.
Just like with the `android` build mode, add a parameter to build using the `pinephone` mode to the `bootstrap-example.sh` script.
Utilize the android build variables for the script, replacing them with a more generic variable name.

I discovered and addressed some build settings inconsistencies while mass adding the `pinephone` mode.

2 months agoUpdate: Enable f_thread_cancel() in all stand alone builds.
Kevin Day [Tue, 16 Dec 2025 00:20:36 +0000 (18:20 -0600)]
Update: Enable f_thread_cancel() in all stand alone builds.

2 months agoUpdate: Utilize _pthread_kill_as_pthread_cancel_ for Android builds.
Kevin Day [Mon, 15 Dec 2025 02:44:14 +0000 (20:44 -0600)]
Update: Utilize _pthread_kill_as_pthread_cancel_ for Android builds.

2 months agoRevert "Bugfix: Cannot disable f_thread_cancel() and f_thread_cancel_state_set()...
Kevin Day [Mon, 15 Dec 2025 01:44:09 +0000 (19:44 -0600)]
Revert "Bugfix: Cannot disable f_thread_cancel() and f_thread_cancel_state_set() on Android."

This reverts commit 10a78586f1096d0446f531f65feffb3e486a3880.

The linking passed, but when I tried to run the program, it failed.
I guess I cannot enable these.

2 months agoBugfix: Cannot disable f_thread_cancel() and f_thread_cancel_state_set() on Android.
Kevin Day [Mon, 15 Dec 2025 01:11:16 +0000 (19:11 -0600)]
Bugfix: Cannot disable f_thread_cancel() and f_thread_cancel_state_set() on Android.

These are now required by the programs.
I also tested on Android and found that these now work.
It should be safe to enable these by default on Android.

2 months agoUpdate: Use the f_thread defines.
Kevin Day [Mon, 15 Dec 2025 00:47:04 +0000 (18:47 -0600)]
Update: Use the f_thread defines.

Do not directly use the `PTHEAD_*` defines.
Instead use the ones provided by `f_thread`.

2 months agoUpdate: Add FLL socket defines disable.
Kevin Day [Sun, 14 Dec 2025 23:49:22 +0000 (17:49 -0600)]
Update: Add FLL socket defines disable.

2 months agoUpdate: Bring in build settings changes from FLL.
Kevin Day [Sat, 13 Dec 2025 17:53:55 +0000 (11:53 -0600)]
Update: Bring in build settings changes from FLL.

2 months agoUpdate: Make build settings more consistent across multiple projects.
Kevin Day [Sat, 13 Dec 2025 05:18:37 +0000 (23:18 -0600)]
Update: Make build settings more consistent across multiple projects.

3 months agoRefactor: Build mode gcc_13 to flex_arrays to provide a more generic name.
Kevin Day [Wed, 10 Dec 2025 04:25:13 +0000 (22:25 -0600)]
Refactor: Build mode gcc_13 to flex_arrays to provide a more generic name.

The `gcc_13` was a temporary mode and I don't want to have version specific modes.
Replace the mode witha more long term version unspecific name `flex_arrays`.

3 months agoCleanup: Install script name.
Kevin Day [Sat, 6 Dec 2025 04:34:38 +0000 (22:34 -0600)]
Cleanup: Install script name.

3 months agoCleanup: Remove build settings objects that specify the default values.
Kevin Day [Sat, 6 Dec 2025 02:56:09 +0000 (20:56 -0600)]
Cleanup: Remove build settings objects that specify the default values.

3 months agoUpdate: FLL date and time changes.
Kevin Day [Thu, 4 Dec 2025 05:47:10 +0000 (23:47 -0600)]
Update: FLL date and time changes.

3 months agoUpdate: Use the macro_*__t_initialize_3() for static data.
Kevin Day [Wed, 3 Dec 2025 04:22:33 +0000 (22:22 -0600)]
Update: Use the macro_*__t_initialize_3() for static data.

3 months agoUpdate: Initialize variables with recent FLL practices.
Kevin Day [Wed, 3 Dec 2025 04:20:16 +0000 (22:20 -0600)]
Update: Initialize variables with recent FLL practices.

3 months agoUpdate: Avoid the use of bool, keeping it to a bare minimum.
Kevin Day [Mon, 1 Dec 2025 01:42:27 +0000 (19:42 -0600)]
Update: Avoid the use of bool, keeping it to a bare minimum.

Use `uint8_t` to both enforce a specific byte size as well as provide the ability for it to be converted into a set of bits if need be, without breaking API or ABI.

3 months agoUpdate: To FLL structure changes.
Kevin Day [Mon, 1 Dec 2025 00:24:01 +0000 (18:24 -0600)]
Update: To FLL structure changes.

Apply similar practices to the structures.

3 months agoUpdate: To FLL f_string_static_t structure changes.
Kevin Day [Sun, 30 Nov 2025 14:08:15 +0000 (08:08 -0600)]
Update: To FLL f_string_static_t structure changes.

3 months agoCleanup: The stand alone fakefile comments should use 0.8.x to represent the FLL...
Kevin Day [Sun, 30 Nov 2025 02:37:08 +0000 (20:37 -0600)]
Cleanup: The stand alone fakefile comments should use 0.8.x to represent the FLL dependency.

3 months agoUpdate: With FLL fll_program_print_error_parameter_too_few() and fll_program_print_er...
Kevin Day [Sun, 30 Nov 2025 02:11:54 +0000 (20:11 -0600)]
Update: With FLL fll_program_print_error_parameter_too_few() and fll_program_print_error_parameter_too_many() additions.

3 months agoUpdate: Next micro version (0.7.4).
Kevin Day [Sat, 22 Nov 2025 22:57:26 +0000 (16:57 -0600)]
Update: Next micro version (0.7.4).

The following are the commands that I ran to make this change:
  # find data/ sources/ specifications/ documents/ licenses/ install.sh -type f -exec sed -i -e 's|0\.7\.3|0.7.4|g' -e 's|^version_micro 3|version_micro 4|g' '{}' ';'
  # find sources/ -name *.h -exec sed -i -e 's|_program_version_micro_s F_string_ascii_3_s|_program_version_micro_s F_string_ascii_4_s|g' -e 's|_program_version_micro_s_length F_string_ascii_3_s_length|_program_version_micro_s_length F_string_ascii_4_s_length|g' '{}' ';'
  # sed -i -e 's|version_micro 3|version_micro 4|g' data/build/settings* data/build/stand_alone/settings.*

3 months agoBugfix: Incorrect parameter processing of parameters with values. 0.7.3
Kevin Day [Sat, 22 Nov 2025 13:50:48 +0000 (07:50 -0600)]
Bugfix: Incorrect parameter processing of parameters with values.

The `f_console_result_value_d` should be checked first because `f_console_result_found_d` will be set when `f_console_result_value_d` is set.

3 months agoUpdate: Utilize the F_status_debug_source_d for handling the errors.
Kevin Day [Wed, 12 Nov 2025 05:26:09 +0000 (23:26 -0600)]
Update: Utilize the F_status_debug_source_d for handling the errors.

This simplifies some of the logic and code.

However, there are some disadvantages of doing this.
One such disadvantage is losing the specific function that has failed.
The location in the source file should be sufficient, if not ideal.

4 months agoUpdate: Minimal changes to compile with the error printing changes in FLL.
Kevin Day [Tue, 11 Nov 2025 03:23:11 +0000 (21:23 -0600)]
Update: Minimal changes to compile with the error printing changes in FLL.

There will likely be a follow up commit to handle the details.

Also remove stale build setting file so that the stand alone build works.

4 months agoUpdate: Prepare for supporting the status debug define.
Kevin Day [Sun, 9 Nov 2025 04:36:45 +0000 (22:36 -0600)]
Update: Prepare for supporting the status debug define.

The `F_status_debug_source_d` should now be supported with this change.
This is not yet used.

Update the build settings modes.

6 months agoUpdate: FLL f_thread changes.
Kevin Day [Thu, 28 Aug 2025 03:06:20 +0000 (22:06 -0500)]
Update: FLL f_thread changes.

6 months agoUpdate: Add specific source design documentation.
Kevin Day [Wed, 27 Aug 2025 02:39:56 +0000 (21:39 -0500)]
Update: Add specific source design documentation.

I have described this in one manner or another since the start of the FLL project.
This explicitly states the behavior that the FLL project (and related projects) have always followed.

6 months agoUpdate: Synchronize with f_thread changes from FLL project.
Kevin Day [Wed, 20 Aug 2025 03:53:07 +0000 (22:53 -0500)]
Update: Synchronize with f_thread changes from FLL project.

6 months agoUpdate: With latest define settings.
Kevin Day [Mon, 18 Aug 2025 04:26:19 +0000 (23:26 -0500)]
Update: With latest define settings.

6 months agoUpdate: With latest FLL changes.
Kevin Day [Wed, 13 Aug 2025 02:35:08 +0000 (21:35 -0500)]
Update: With latest FLL changes.

7 months agoCleanup: Remove no longer used _di_f_status_directory_s_.
Kevin Day [Tue, 12 Aug 2025 02:50:05 +0000 (21:50 -0500)]
Cleanup: Remove no longer used _di_f_status_directory_s_.

8 months agoUpdate: Next micro version (0.7.3).
Kevin Day [Sun, 6 Jul 2025 21:06:24 +0000 (16:06 -0500)]
Update: Next micro version (0.7.3).

The following are the commands that I ran to make this change:
  # find data/ sources/ specifications/ documents/ licenses/ install.sh -type f -exec sed -i -e 's|0\.7\.2|0.7.3|g' -e 's|^version_micro 2|version_micro 3|g' '{}' ';'
  # find sources/ -name *.h -exec sed -i -e 's|_program_version_micro_s F_string_ascii_2_s|_program_version_micro_s F_string_ascii_3_s|g' -e 's|_program_version_micro_s_length F_string_ascii_2_s_length|_program_version_micro_s_length F_string_ascii_3_s_length|g' '{}' ';'
  # sed -i -e 's|version_micro 2|version_micro 3|g' data/build/settings* data/build/stand_alone/settings.*

8 months agoCleanup: Documentation comments for program signal handlers. 0.7.2
Kevin Day [Tue, 1 Jul 2025 02:51:13 +0000 (21:51 -0500)]
Cleanup: Documentation comments for program signal handlers.

The function references and "must not be NULL" messages are missing.

8 months agoCleanup: Apply new script practices.
Kevin Day [Sat, 28 Jun 2025 03:40:41 +0000 (22:40 -0500)]
Cleanup: Apply new script practices.

Be more consistent about wrapping all variables in brackets.
This helps make the code more consistent and also more compatible with other interpreters like ZSH.

Don't use echo pipe syntax and instead use "<<<" redirection pipe syntax for passing variables to program calls.

The grep commands should use either `-sho` or `-shoP`.

9 months agoSecurity: Explicitly define IFS to prevent misuse.
Kevin Day [Fri, 6 Jun 2025 02:43:35 +0000 (21:43 -0500)]
Security: Explicitly define IFS to prevent misuse.

The scripts are written with certain expectations.
This expectation may not be properly met if the `IFS` value is changed.
This can potentially be used to create some sort of exploit.

Explicitly define IFS and then do so at a local variable scope to prevent affecting the callers IFS setting.

10 months agoWorkaround: The compiler and linker fail to understand that compiling statically...
Kevin Day [Thu, 8 May 2025 04:53:07 +0000 (23:53 -0500)]
Workaround: The compiler and linker fail to understand that compiling statically should also link statically.

This is a logic or design flaw that is just plain idiotic.
When compiling statically (passing `-static`), there cannot be any shared/dynamic linked data.

Rather than recognizing this, if there is a shared library during a static build then the shared library is linked to.

The compiler and linker, at least, supports explicitly forcing the point that a static library is to be linked.
This is done via `-l:libc.a` for libc linking rather than `-lc`.

This should not be necessary, but it unfortunately is.

10 months agoUpdate: Switch to use fll_program_signal_check_loop() and fll_program_signal_check_si...
Kevin Day [Fri, 2 May 2025 00:59:26 +0000 (19:59 -0500)]
Update: Switch to use fll_program_signal_check_loop() and fll_program_signal_check_simple().

10 months agoUpdate: Next micro version (0.7.2).
Kevin Day [Thu, 1 May 2025 01:52:10 +0000 (20:52 -0500)]
Update: Next micro version (0.7.2).

The following are the commands that I ran to make this change.
  # find data/ sources/ specifications/ documents/ licenses/ install.sh -type f -exec sed -i -e 's|0\.7\.1|0.7.2|g' '{}' ';'
  # find data/ sources/ specifications/ documents/ licenses/ -type f -exec sed -i -e 's|^version_micro 1|version_micro 2|g' '{}' ';'
  # find sources/ -name *.h -exec sed -i -e 's|_program_version_micro_s F_string_ascii_1_s|_program_version_micro_s F_string_ascii_2_s|g' '{}' ';'
  # find sources/ -name *.h -exec sed -i -e 's|_program_version_micro_s_length F_string_ascii_1_s_length|_program_version_micro_s_length F_string_ascii_2_s_length|g' '{}' ';'
  # sed -i -e 's|version_micro 1|version_micro 2|g' data/build/settings* data/build/stand_alone/settings.*

10 months agoUpdate: Synchronize with FLL release by setting version to 0.7.1. 0.7.1
Kevin Day [Tue, 29 Apr 2025 22:47:37 +0000 (17:47 -0500)]
Update: Synchronize with FLL release by setting version to 0.7.1.

In the longer term the version numbers will likely be on a different number.
In the short term, as in now, it is much easier to just maintain them at the same release versions.

Update the man pages month and year as well.

10 months agoUpdate: With latest FLL changes to fll_program.
Kevin Day [Mon, 21 Apr 2025 01:07:45 +0000 (20:07 -0500)]
Update: With latest FLL changes to fll_program.

11 months agoFeature: Update to utilize fll_program_signal_check_loop() and fll_program_signal_che...
Kevin Day [Wed, 9 Apr 2025 02:25:30 +0000 (21:25 -0500)]
Feature: Update to utilize fll_program_signal_check_loop() and fll_program_signal_check_simple().

Update to utilize the newly added `fll_program_signal_check_loop()` and `fll_program_signal_check_simple()`.

Remove all stale and no longer needed signal check defines.

11 months agoUpdate: With latest FLL changes to fll_program.
Kevin Day [Mon, 31 Mar 2025 02:09:20 +0000 (21:09 -0500)]
Update: With latest FLL changes to fll_program.

11 months agoUpdate: Copyright year to 2025.
Kevin Day [Thu, 27 Mar 2025 02:03:53 +0000 (21:03 -0500)]
Update: Copyright year to 2025.

I hadn't realized that I had not done this in January.
Now the copyright is correctly updated.

11 months agoUpdate: Support 'input' as file type error string.
Kevin Day [Wed, 26 Mar 2025 03:28:32 +0000 (22:28 -0500)]
Update: Support 'input' as file type error string.

11 months agoUpdate: Stand alone with 'unknown' type.
Kevin Day [Sat, 22 Mar 2025 03:26:00 +0000 (22:26 -0500)]
Update: Stand alone with 'unknown' type.

12 months agoUpdate: The fll_error dependencies.
Kevin Day [Fri, 21 Feb 2025 03:05:30 +0000 (21:05 -0600)]
Update: The fll_error dependencies.

This brings the code in line with the recent centralized string design.

13 months agoUpdate: With recent FLL changes, such as f_uid_t.
Kevin Day [Sun, 9 Feb 2025 06:37:45 +0000 (00:37 -0600)]
Update: With recent FLL changes, such as f_uid_t.

13 months agoUpdate: Improve signal handling code.
Kevin Day [Tue, 28 Jan 2025 04:45:34 +0000 (22:45 -0600)]
Update: Improve signal handling code.

Move the `fll_program_print_signal_received()` calls to the main program to help ensure consistent printing at the end of the program.
- Note: I am not certain if I want this instead in the main() function or not and I opted not to do so for now.

13 months agoUpdate: The threaded signal handler to avoid signal id races.
Kevin Day [Fri, 24 Jan 2025 03:00:00 +0000 (21:00 -0600)]
Update: The threaded signal handler to avoid signal id races.

Apply the same anti-race improvements implemented on the non-threaded signal checker to the threaded signal checker.

Still check for a negative id to prevent the signal message from being printed more than once.

13 months agoUpdate: Stand alone build with latest FLL changes.
Kevin Day [Fri, 24 Jan 2025 02:45:39 +0000 (20:45 -0600)]
Update: Stand alone build with latest FLL changes.

13 months agoUpdate: To the latest signal handling logic.
Kevin Day [Thu, 23 Jan 2025 07:04:37 +0000 (01:04 -0600)]
Update: To the latest signal handling logic.

13 months agoUpdate: Use the pre-defined typedef structure style for the main program type.
Kevin Day [Mon, 20 Jan 2025 23:53:50 +0000 (17:53 -0600)]
Update: Use the pre-defined typedef structure style for the main program type.

Make sure that the typedef is defined early for a later defined type.
This allows for circular use of the main, such as with callbacks.

This is being done across all of my programs.

13 months agoUpdate: Refresh the stand alone builds following the FLL 0.7.0 development release.
Kevin Day [Tue, 14 Jan 2025 00:37:56 +0000 (18:37 -0600)]
Update: Refresh the stand alone builds following the FLL 0.7.0 development release.

18 months agoUpdate: Add android build support.
Kevin Day [Fri, 6 Sep 2024 01:28:22 +0000 (20:28 -0500)]
Update: Add android build support.

18 months agoUpdate: To include the new FSS Read private file.
Kevin Day [Sun, 1 Sep 2024 02:15:17 +0000 (21:15 -0500)]
Update: To include the new FSS Read private file.

19 months agoUpdate: f_memory_increase_step_ define in stand alone.
Kevin Day [Mon, 5 Aug 2024 01:20:59 +0000 (20:20 -0500)]
Update: f_memory_increase_step_ define in stand alone.

19 months agoCleanup: The fakefile and settings files.
Kevin Day [Fri, 2 Aug 2024 02:47:04 +0000 (21:47 -0500)]
Cleanup: The fakefile and settings files.

19 months agoCleanup: Improve header file define wrappers.
Kevin Day [Fri, 2 Aug 2024 02:23:19 +0000 (21:23 -0500)]
Cleanup: Improve header file define wrappers.

The ifdef wrappers used for each header file is updated to be more accurate in regards to the directory and file path structure.

19 months agoCleanup: Build settings and fakefile mode related settings and documentation.
Kevin Day [Thu, 1 Aug 2024 03:44:59 +0000 (22:44 -0500)]
Cleanup: Build settings and fakefile mode related settings and documentation.

19 months agoCleanup: Alphabetize some of the settings.
Kevin Day [Thu, 1 Aug 2024 03:16:37 +0000 (22:16 -0500)]
Cleanup: Alphabetize some of the settings.

19 months agoRefactor: Change bit-wise enumerations into defines.
Kevin Day [Wed, 31 Jul 2024 02:45:29 +0000 (21:45 -0500)]
Refactor: Change bit-wise enumerations into defines.

I did some reviewing of how the enumerations used for flags are used.
These generally are not being used as a type.
An enumeration slightly increases the resulting binary size.
Enumeration values might be limited to just type of int.

This seems like an easy (small) optimization to just use defines rather than enumerations for flags and other bit-wise numbers.

19 months agoUpdate: Finish migrating the project.
Kevin Day [Tue, 30 Jul 2024 02:04:29 +0000 (21:04 -0500)]
Update: Finish migrating the project.

This wraps up the stand alone build settings.

This move the strings for the debug print functions into the functions themselves using an enumeration.

19 months agoProgress: Continue migrating the project.
Kevin Day [Mon, 29 Jul 2024 02:49:33 +0000 (21:49 -0500)]
Progress: Continue migrating the project.

This is already mostly done.
I have the stand alone config.h file to setup still.

I do have some strings that are being passed to print functions.
These should be moved into the print files but I am uncertain as to how I want to go about doing this.
I might create an enumeration like I do with the function print string macros.

19 months agoProgress: Continue migrating the project.
Kevin Day [Fri, 26 Jul 2024 04:12:25 +0000 (23:12 -0500)]
Progress: Continue migrating the project.

19 months agoUpdate: Initial import of the project, migrating from the FLL 0.7 level 3 project.
Kevin Day [Thu, 25 Jul 2024 03:49:29 +0000 (22:49 -0500)]
Update: Initial import of the project, migrating from the FLL 0.7 level 3 project.

I also copied several files from the controller project to help kick start setting this up.

I have not yet configured anything to compile or work.
There is still quite a lot of work to complete before the migration is complete.