]> Kevux Git Server - fll/commitdiff
Bugfix: File not found for file functions should be F_file_found_not.
authorKevin Day <Kevin@kevux.org>
Sun, 15 Jun 2025 05:30:03 +0000 (00:30 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 15 Jun 2025 05:30:03 +0000 (00:30 -0500)
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
level_0/f_file/c/file.h

index 5b7c6a0eabab221ed31e4edc8c40e8b6562059ef..f55acd310b1977b236c4d592703c5be51e02eb31 100644 (file)
@@ -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);
index 21709f85e3ca37ee73d426cccee7836397b67947..af9a1a97c1111e14bf2076d698bb0f0402ae09a9 100644 (file)
@@ -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.