From: Kevin Day Date: Sun, 15 Jun 2025 05:30:03 +0000 (-0500) Subject: Bugfix: File not found for file functions should be F_file_found_not. X-Git-Tag: 0.7.2~8 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=fc3aee088ea9767cae980cea2d6729fe5603353f;p=fll Bugfix: File not found for file functions should be F_file_found_not. The `F_file_not` is no the correct status code. Instead, `F_file_found_not` should be returned. --- diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index 5b7c6a0..f55acd3 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -23,7 +23,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); - if (errno == ENOENT) return F_status_set_error(F_file_not); + if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); @@ -56,7 +56,7 @@ extern "C" { if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); - if (errno == ENOENT) return F_status_set_error(F_file_not); + if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 21709f8..af9a1a9 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -65,7 +65,7 @@ extern "C" { * * F_access_denied (with error bit) on access denied. * F_directory_not (with error bit) on invalid directory. - * F_file_not (with error bit) the file does not exist. + * F_file_found_not (with error bit) the file does not exist. * F_loop (with error bit) on loop error. * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. @@ -104,7 +104,7 @@ extern "C" { * F_access_denied (with error bit) on access denied. * F_directory_descriptor (with error bit) when at_id is not a valid file descriptor (at_id must point to a directory). * F_directory_not (with error bit) on invalid directory. - * F_file_not (with error bit) the file does not exist. + * F_file_found_not (with error bit) the file does not exist. * F_loop (with error bit) on loop error. * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error.