From fc3aee088ea9767cae980cea2d6729fe5603353f Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 15 Jun 2025 00:30:03 -0500 Subject: [PATCH] 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. --- level_0/f_file/c/file.c | 4 ++-- level_0/f_file/c/file.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 1.8.3.1