hark130 / sketchy-idea

Reusable, stand-alone, Linux code
GNU General Public License v3.0
0 stars 0 forks source link

13-2: Manipulate file metadata #18

Closed hark130 closed 3 months ago

hark130 commented 3 months ago
  1. Created a skid_file_metadata_write library that defined functionality to modify the following:
    • File mode (permissions)
    • File owner
    • File group
    • Access time
    • Modification time
  2. Updated the build system
    • Dialed up the quality reporting for the compiler (e.g., enabled errors on all warnings)
  3. Wrote 175 unit tests
  4. Wrote manual test binaries
  5. Refactored the devops code
    • Refactored the key data type of the alloc/free memory functions to void**
    • Added get_shell_compatible_gid()
    • Added get_shell_my_gid()
    • Added get_shell_my_uid()
    • Added get_shell_my_username()
    • Added get_shell_user_gid()
    • Added get_shell_user_uid()
    • Added is_path_there()
    • Added micro_sleep()
    • Added read_a_file()
    • Added run_command_append()
    • Added set_shell_perms()
  6. Modified legacy production code:
    • Added standardized "header" macros to SKID_DEBUG.h
    • Added symbolic link support for: get_access_time(), get_change_time(), get_group(), get_mod_time(), get_owner()
    • Added get_access_time_nsecs(), get_access_timestamp(), get_change_timestamp(), get_mod_time_nsecs(), get_mod_timestamp()
  7. Updated the README.md
    • Added shell script to auto-calculate how many Check-based unit tests have been implemented
    • Added some key links to Check library documentation