From 38eb10f203fd2152baf87e4c7697169ff9a70c09 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 6 Dec 2025 22:24:19 -0600 Subject: [PATCH] Update: Use F_device_not rather than F_device for these status codes. --- level_0/f_file/c/file/stream.h | 1 + level_0/f_signal/c/signal.c | 2 +- level_0/f_signal/c/signal.h | 2 +- level_0/f_signal/tests/unit/c/test-signal-open.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/level_0/f_file/c/file/stream.h b/level_0/f_file/c/file/stream.h index d3feffa..894696f 100644 --- a/level_0/f_file/c/file/stream.h +++ b/level_0/f_file/c/file/stream.h @@ -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. diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index 79e1a51..91f7133 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -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); diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index 8d6f77a..07bf848 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -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. diff --git a/level_0/f_signal/tests/unit/c/test-signal-open.c b/level_0/f_signal/tests/unit/c/test-signal-open.c index 3c0ed39..6c30dc3 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-open.c +++ b/level_0/f_signal/tests/unit/c/test-signal-open.c @@ -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, }; -- 1.8.3.1