]> Kevux Git Server - fll/commitdiff
Update: Use F_device_not rather than F_device for these status codes.
authorKevin Day <Kevin@kevux.org>
Sun, 7 Dec 2025 04:24:19 +0000 (22:24 -0600)
committerKevin Day <Kevin@kevux.org>
Sun, 7 Dec 2025 04:24:19 +0000 (22:24 -0600)
level_0/f_file/c/file/stream.h
level_0/f_signal/c/signal.c
level_0/f_signal/c/signal.h
level_0/f_signal/tests/unit/c/test-signal-open.c

index d3feffa9d856d24baa7263c8c349cf835bed4ed5..894696f418d94d4b2630e55937e3175cb7083ee4 100644 (file)
@@ -193,6 +193,7 @@ extern "C" {
  *   F_block (with error bit) if the action would block and non-blocking is set on the stream.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_deadlock (with error bit) if operation would cause a deadlock.
+ *   F_device_not (with error bit) if the device does not exist.
  *   F_directory_not (with error bit) if F_NOTIFY was specified and file.id is not a directory.
  *   F_file_descriptor_max (with error bit) if max file descriptors is reached.
  *   F_file_descriptor_not (with error bit) if file descriptor is invalid.
index 79e1a51a1725eeaa3a333e61e8b26fb123cce6d2..91f7133b3d8c12212173594d6eaf0e29b706e694 100644 (file)
@@ -76,7 +76,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max);
       if (errno == ENFILE) return F_status_set_error(F_file_open_max);
-      if (errno == ENODEV) return F_status_set_error(F_device);
+      if (errno == ENODEV) return F_status_set_error(F_device_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
 
       return F_status_set_error(F_failure);
index 8d6f77ac7d1fbfcdafcebf8756a9501eba2b6834..07bf848deb74bc41cf31cbee80ed2c39c5182ed4 100644 (file)
@@ -128,7 +128,7 @@ extern "C" {
  * @return
  *   F_okay on success but no signal found.
  *
- *   F_device (with error bit) if could not mount the internal inode device.
+ *   F_device_not (with error bit) if could not mount the internal inode device.
  *   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.
index 3c0ed39da12fc3db12dae5ac6be0290bdd257f13..6c30dc3b69241f2ae22ea5f528e585e490a97478 100644 (file)
@@ -22,7 +22,7 @@ void test__f_signal_open__fails(void **state) {
     F_parameter,
     F_file_descriptor_max,
     F_file_open_max,
-    F_device,
+    F_device_not,
     F_memory_not,
     F_failure,
   };