From f8f9952f15452d72da99bceaa2dc8a207b49f843 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 31 Dec 2021 20:56:10 -0600 Subject: [PATCH] Cleanup: Use present tense. Using past tense is a habit because everything being referred to is generally in the past. The documentation and comments really should present tense despite this. There is a lot of code that really needs this done but is not done in this comment. I just happened to see these and decided to immediately fix them. --- level_0/f_account/c/account.h | 10 +++++----- level_0/f_directory/c/directory.h | 4 ++-- level_0/f_file/c/file.h | 4 ++-- level_0/f_signal/c/signal.h | 2 +- level_1/fl_directory/c/directory.h | 2 +- level_1/fl_directory/c/private-directory.h | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/level_0/f_account/c/account.h b/level_0/f_account/c/account.h index 8c53b6d..b3b8bb0 100644 --- a/level_0/f_account/c/account.h +++ b/level_0/f_account/c/account.h @@ -46,7 +46,7 @@ extern "C" { * F_none on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -73,7 +73,7 @@ extern "C" { * F_none on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -100,7 +100,7 @@ extern "C" { * F_none on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -127,7 +127,7 @@ extern "C" { * F_none on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -154,7 +154,7 @@ extern "C" { * F_none on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. diff --git a/level_0/f_directory/c/directory.h b/level_0/f_directory/c/directory.h index f8065b0..ae23998 100644 --- a/level_0/f_directory/c/directory.h +++ b/level_0/f_directory/c/directory.h @@ -352,7 +352,7 @@ extern "C" { * F_busy (with error bit) if file is busy. * F_directory (with error bit) if a supposed directory in path is not actually a directory. * F_directory_empty_not (with error bit) if the directory is not empty. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_found_not (with error bit) if file not found. * F_file_open_max (with error bit) too many open files. * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). @@ -395,7 +395,7 @@ extern "C" { * F_busy (with error bit) if file is busy. * F_directory (with error bit) if a supposed directory in path is not actually a directory. * F_directory_empty_not (with error bit) if the directory is not empty. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_found_not (with error bit) if file not found. * F_file_open_max (with error bit) too many open files. * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 8baff7e..fb4c947 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -1905,7 +1905,7 @@ extern "C" { * F_deadlock (with error bit) if operation would cause a deadlock. * F_file_close (with error bit) if fclose() failed for any other reason. * F_file_descriptor (with error bit) if file descriptor is invalid. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_overflow (with error bit) if the write exceeds some implementation defined maximum file size. * F_file_synchronize (with error bit) on flush failure. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. @@ -1946,7 +1946,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_deadlock (with error bit) if operation would cause a deadlock. * F_file_descriptor (with error bit) if file descriptor is invalid. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. * F_lock (with error bit) if failed to lock, such as lock table is full or too many open segments. diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index 62580a2..5d9e7a7 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -66,7 +66,7 @@ extern "C" { * @return * F_none on success but no signal found. * F_device (with error bit) if could not mount the internal inode device. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) for any other error. diff --git a/level_1/fl_directory/c/directory.h b/level_1/fl_directory/c/directory.h index 73e53bf..7a4f70b 100644 --- a/level_1/fl_directory/c/directory.h +++ b/level_1/fl_directory/c/directory.h @@ -326,7 +326,7 @@ extern "C" { * F_directory_stream (with error bit) on directory stream error. * F_directory_supported_not (with error bit) on directory file descriptor not supported. * F_failure (with error bit) if failed to read directory information. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_1/fl_directory/c/private-directory.h b/level_1/fl_directory/c/private-directory.h index bf4a86c..2f4c354 100644 --- a/level_1/fl_directory/c/private-directory.h +++ b/level_1/fl_directory/c/private-directory.h @@ -165,7 +165,7 @@ extern "C" { * F_directory_stream (with error bit) on directory stream error. * F_directory_supported_not (with error bit) on directory file descriptor not supported. * F_failure (with error bit) if failed to read directory information. - * F_file_descriptor_max (with error bit) if max file descriptors was reached. + * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_file_open_max (with error bit) too many open files. * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. -- 1.8.3.1