From 0ef3b2a8a9eea38459c92a2c755ee013cb34ad9e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 27 Nov 2025 08:26:15 -0600 Subject: [PATCH] Update: Use F_file_descriptor_not instead of F_file_descriptor for invalid file descriptors. The "_not" suffixes were added later in in the project after some of these status codes were established. This begins the process of using the "_not" suffixes for representing invalid states, variables, etc... The `F_file_descriptor` should instead be `F_file_descriptor_not` for invalid file descriptor errors. --- level_0/f_file/c/file.c | 16 ++-- level_0/f_file/c/file.h | 32 ++++---- level_0/f_file/c/file/stream.c | 8 +- level_0/f_file/c/file/stream.h | 12 +-- level_0/f_file/c/private-file.c | 8 +- level_0/f_file/c/private-file.h | 8 +- level_0/f_file/tests/unit/c/test-file-clone.c | 2 +- level_0/f_file/tests/unit/c/test-file-close.c | 2 +- .../f_file/tests/unit/c/test-file-close_id.c | 2 +- level_0/f_file/tests/unit/c/test-file-copy.c | 2 +- .../f_file/tests/unit/c/test-file-create.c | 2 +- .../f_file/tests/unit/c/test-file-create_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-flush.c | 2 +- .../tests/unit/c/test-file-link_hard_at.c | 2 +- .../tests/unit/c/test-file-manipulate.c | 2 +- level_0/f_file/tests/unit/c/test-file-read.c | 2 +- .../tests/unit/c/test-file-read_block.c | 2 +- .../tests/unit/c/test-file-read_until.c | 2 +- level_0/f_file/tests/unit/c/test-file-seek.c | 2 +- .../f_file/tests/unit/c/test-file-select.c | 2 +- .../tests/unit/c/test-file-select_signal.c | 2 +- .../tests/unit/c/test-file-size_by_id.c | 2 +- .../tests/unit/c/test-file-stat_by_id.c | 2 +- .../tests/unit/c/test-file-stream_close.c | 2 +- .../unit/c/test-file-stream_open_descriptor.c | 2 +- .../tests/unit/c/test-file-stream_reopen.c | 2 +- level_0/f_file/tests/unit/c/test-file-write.c | 2 +- .../tests/unit/c/test-file-write_block.c | 2 +- .../tests/unit/c/test-file-write_range.c | 2 +- .../tests/unit/c/test-file-write_until.c | 2 +- level_0/f_print/c/print/private-to.c | 2 +- level_0/f_print/c/print/private-to.h | 20 ++--- level_0/f_print/c/print/to.c | 2 +- level_0/f_print/c/print/to.h | 82 +++++++++---------- level_0/f_print/tests/unit/c/test-print-to.c | 2 +- .../tests/unit/c/test-print-to_character.c | 2 +- .../unit/c/test-print-to_character_safely.c | 2 +- .../tests/unit/c/test-print-to_dynamic.c | 2 +- .../unit/c/test-print-to_dynamic_partial.c | 2 +- .../c/test-print-to_dynamic_partial_raw.c | 2 +- ...test-print-to_dynamic_partial_raw_safely.c | 2 +- .../c/test-print-to_dynamic_partial_safely.c | 2 +- .../tests/unit/c/test-print-to_dynamic_raw.c | 2 +- .../unit/c/test-print-to_dynamic_raw_safely.c | 2 +- .../unit/c/test-print-to_dynamic_safely.c | 2 +- .../tests/unit/c/test-print-to_except.c | 2 +- .../unit/c/test-print-to_except_dynamic.c | 2 +- .../c/test-print-to_except_dynamic_partial.c | 2 +- ...test-print-to_except_dynamic_partial_raw.c | 2 +- ...int-to_except_dynamic_partial_raw_safely.c | 2 +- ...t-print-to_except_dynamic_partial_safely.c | 2 +- .../unit/c/test-print-to_except_dynamic_raw.c | 2 +- .../test-print-to_except_dynamic_raw_safely.c | 2 +- .../c/test-print-to_except_dynamic_safely.c | 2 +- .../tests/unit/c/test-print-to_except_in.c | 2 +- .../unit/c/test-print-to_except_in_dynamic.c | 2 +- .../test-print-to_except_in_dynamic_partial.c | 2 +- ...t-print-to_except_in_dynamic_partial_raw.c | 2 +- ...-to_except_in_dynamic_partial_raw_safely.c | 2 +- ...rint-to_except_in_dynamic_partial_safely.c | 2 +- .../c/test-print-to_except_in_dynamic_raw.c | 2 +- ...st-print-to_except_in_dynamic_raw_safely.c | 2 +- .../test-print-to_except_in_dynamic_safely.c | 2 +- .../unit/c/test-print-to_except_in_raw.c | 2 +- .../c/test-print-to_except_in_raw_safely.c | 2 +- .../unit/c/test-print-to_except_in_safely.c | 2 +- .../tests/unit/c/test-print-to_except_raw.c | 2 +- .../unit/c/test-print-to_except_raw_safely.c | 2 +- .../unit/c/test-print-to_except_safely.c | 2 +- .../f_print/tests/unit/c/test-print-to_raw.c | 2 +- .../tests/unit/c/test-print-to_raw_safely.c | 2 +- .../unit/c/test-print-to_raw_terminated.c | 2 +- .../tests/unit/c/test-print-to_safely.c | 2 +- .../unit/c/test-print-to_safely_terminated.c | 2 +- .../tests/unit/c/test-print-to_terminated.c | 2 +- level_1/fl_utf_file/c/private-utf_file.c | 2 +- level_1/fl_utf_file/c/private-utf_file.h | 2 +- level_1/fl_utf_file/c/utf_file.c | 6 +- level_1/fl_utf_file/c/utf_file.h | 14 ++-- 79 files changed, 172 insertions(+), 172 deletions(-) diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index 7cfdc2ce7..cb1cbb38c 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -573,7 +573,7 @@ extern "C" { if (linkat(file_target.id, target.string, file_point.id, point.string, flag) < 0) { if (errno == EACCES) return F_status_set_error(F_access_denied); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EDQUOT) return F_status_set_error(F_file_system_quota_block); if (errno == EEXIST) return F_status_set_error(F_file_found); if (errno == EFAULT) return F_status_set_error(F_buffer); @@ -648,7 +648,7 @@ extern "C" { if (fcntl(file.id, command, argument) == -1) { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EAGAIN) return F_status_set_error(F_again); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EBUSY) return F_status_set_error(F_busy); if (errno == EDEADLK) return F_status_set_error(F_deadlock); if (errno == EFAULT) return F_status_set_error(F_buffer); @@ -1566,7 +1566,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -1608,7 +1608,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -1653,7 +1653,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -1831,7 +1831,7 @@ extern "C" { *seeked = lseek(file.id, offset, whence); if (*seeked < 0) { - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ENXIO) return F_status_set_error(F_bound_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); @@ -1851,7 +1851,7 @@ extern "C" { if (!read && !write && !except && !timeout) return F_data_not; if (select(highest_plus_one, read, write, except, timeout) == -1) { - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ENOMEM) return F_status_set_error(F_memory_not); @@ -1870,7 +1870,7 @@ extern "C" { if (!read && !write && !except && !timeout) return F_data_not; if (pselect(highest_plus_one, read, write, except, timeout, signal) == -1) { - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ENOMEM) return F_status_set_error(F_memory_not); diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 8d7567248..687da309f 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -190,7 +190,7 @@ extern "C" { * F_file_descriptor_not if file.id is -1. * * F_file_close (with error bit) if fclose() failed for any other reason. - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_synchronize (with error bit) on flush failure. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. * F_input_output (with error bit) on I/O error. @@ -216,7 +216,7 @@ extern "C" { * F_file_descriptor_not if id is -1. * * F_file_close (with error bit) if fclose() failed for any other reason. - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_synchronize (with error bit) on flush failure. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. * F_input_output (with error bit) on I/O error. @@ -688,7 +688,7 @@ extern "C" { * F_okay is returned on success. * F_file_descriptor_not if file.id is -1. * - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. * F_input_output (with error bit) on I/O error. * F_parameter (with error bit) if a parameter is invalid. @@ -962,7 +962,7 @@ extern "C" { * F_busy (with error bit) if file system is too busy to perform write. * F_directory_descriptor (with error bit) when either at_id_target or at_id_point is not a valid file descriptor (at_id must point to a directory). * F_directory_not (with error bit) if a supposed directory in path is not actually a directory. - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_found (with error bit) if a file aleady exists at the path. * F_file_found_not (with error bit) if a parent path in point does not exist or is a broken symlink. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. @@ -1096,7 +1096,7 @@ extern "C" { * F_busy (with error bit) if system is too busy to perform operation. * F_deadlock (with error bit) if operation would cause a deadlock. * F_directory_not (with error bit) on invalid directory. - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_descriptor_max (with error bit) if max file descriptors is reached. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. * F_lock (with error bit) if failed to lock, such as lock table is full or too many open segments. @@ -1623,7 +1623,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -1658,7 +1658,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -1696,7 +1696,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -1972,7 +1972,7 @@ extern "C" { * F_file_descriptor_not if file.id is -1. * * F_bound_not (with error bit) if SEEK_DATA or SEEK_HOLE is specified as whence and offset is beyond the end of file. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_pipe (with error bit) if file descriptor represents a pipe, socket, or FIFO. * F_number_overflow (with error bit) on overflow for offset. * F_parameter (with error bit) if a parameter is invalid. @@ -2016,7 +2016,7 @@ extern "C" { * F_okay on success. * F_data_not if all of read, write, except, and timeout are NULL (having at least one is required) or when highest_plus_one is 0. * - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -2066,7 +2066,7 @@ extern "C" { * F_okay on success. * F_data_not if all of read, write, except, and timeout are NULL (having at least one is required) or when highest_plus_one is 0. * - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -2157,7 +2157,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory_not (with error bit) on invalid directory. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. * F_memory_not (with error bit) if out of memory. @@ -2475,7 +2475,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -2511,7 +2511,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -2547,7 +2547,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -2582,7 +2582,7 @@ extern "C" { * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. diff --git a/level_0/f_file/c/file/stream.c b/level_0/f_file/c/file/stream.c index 4ede81a7f..8f34d410c 100644 --- a/level_0/f_file/c/file/stream.c +++ b/level_0/f_file/c/file/stream.c @@ -21,7 +21,7 @@ extern "C" { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFBIG) return F_status_set_error(F_file_overflow); if (errno == EDEADLK) return F_status_set_error(F_deadlock); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); @@ -54,7 +54,7 @@ extern "C" { // Only 0 is considered a success and so any non-zero value could be an error. if (fflush(file.stream) != 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -151,7 +151,7 @@ extern "C" { if (!file->stream) { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFBIG) return F_status_set_error(F_file_overflow); if (errno == EDEADLK) return F_status_set_error(F_deadlock); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); @@ -378,7 +378,7 @@ extern "C" { if (!result) { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFBIG) return F_status_set_error(F_file_overflow); if (errno == EDEADLK) return F_status_set_error(F_deadlock); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); diff --git a/level_0/f_file/c/file/stream.h b/level_0/f_file/c/file/stream.h index 9ec903220..21174bf6b 100644 --- a/level_0/f_file/c/file/stream.h +++ b/level_0/f_file/c/file/stream.h @@ -31,8 +31,8 @@ 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_file_descriptor (with error bit) if file descriptor is invalid. * 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. * F_file_overflow (with error bit) if the write exceeds some implementation defined maximum file size. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. * F_input_output (with error bit) on I/O error. @@ -66,7 +66,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -151,7 +151,7 @@ extern "C" { * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. * F_busy (with error bit) if file system is too busy to perform write. - * F_file_descriptor (with error bit) if unable to load the file descriptor. + * F_file_descriptor_not (with error bit) if unable to load the file descriptor. * F_file_found_not (with error bit) if the file was not found. * F_file_open_max (with error bit) when system-wide max open files is reached. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. @@ -192,8 +192,8 @@ 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_file_descriptor (with error bit) if file descriptor is invalid. * 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. * F_file_overflow (with error bit) if the write exceeds some implementation defined maximum file size. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -230,7 +230,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_error (with error bit) if the file is already in the error state at the start of this function. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -346,7 +346,7 @@ extern "C" { * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. * F_busy (with error bit) if file system is too busy to perform write. - * F_file_descriptor (with error bit) if unable to load the file descriptor. + * F_file_descriptor_not (with error bit) if unable to load the file descriptor. * F_file_found_not (with error bit) if the file was not found. * F_file_open_max (with error bit) when system-wide max open files is reached. * F_file_type_not_directory (with error bit) if F_NOTIFY was specified and file.id is not a directory. diff --git a/level_0/f_file/c/private-file.c b/level_0/f_file/c/private-file.c index d4ee1157d..7ce7fb700 100644 --- a/level_0/f_file/c/private-file.c +++ b/level_0/f_file/c/private-file.c @@ -15,7 +15,7 @@ extern "C" { *id = -1; } - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EDQUOT) return F_status_set_error(F_file_system_quota_block); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EIO) return F_status_set_error(F_input_output); @@ -238,7 +238,7 @@ extern "C" { f_status_t private_f_file_flush(const f_file_t file) { if (fsync(file.id) < 0) { - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EDQUOT) return F_status_set_error(F_file_system_quota_block); if (errno == EINVAL) return F_status_set_error(F_support_not); if (errno == EIO) return F_status_set_error(F_input_output); @@ -602,7 +602,7 @@ extern "C" { if (fstat(file.id, file_stat) < 0) { if (errno == EACCES) return F_status_set_error(F_access_denied); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ELOOP) return F_status_set_error(F_loop); @@ -727,7 +727,7 @@ extern "C" { if (size_write < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); diff --git a/level_0/f_file/c/private-file.h b/level_0/f_file/c/private-file.h index 895d2d2f3..8d6eb96fb 100644 --- a/level_0/f_file/c/private-file.h +++ b/level_0/f_file/c/private-file.h @@ -28,7 +28,7 @@ extern "C" { * F_okay on success. * * F_file_close (with error bit) if fclose() failed for any other reason. - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_synchronize (with error bit) on flush failure. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. * F_input_output (with error bit) on I/O error. @@ -363,7 +363,7 @@ extern "C" { * @return * F_okay is returned on success. * - * F_file_descriptor (with error bit) if file descriptor is invalid. + * F_file_descriptor_not (with error bit) if file descriptor is invalid. * F_file_system_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. * F_input_output (with error bit) on I/O error. * F_parameter (with error bit) if a parameter is invalid. @@ -595,7 +595,7 @@ extern "C" { * @return * F_okay on success. * - * F_file_descriptor (with error bit) if unable to load the file descriptor (the file pointer may still be valid). + * F_file_descriptor_not (with error bit) if unable to load the file descriptor (the file pointer may still be valid). * F_file_found_not (with error bit) if the file was not found. * F_file_open (with error bit) if the file is already open. * F_parameter (with error bit) if a parameter is invalid. @@ -916,7 +916,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. diff --git a/level_0/f_file/tests/unit/c/test-file-clone.c b/level_0/f_file/tests/unit/c/test-file-clone.c index 64b819bb3..483c7fd9a 100644 --- a/level_0/f_file/tests/unit/c/test-file-clone.c +++ b/level_0/f_file/tests/unit/c/test-file-clone.c @@ -493,7 +493,7 @@ void test__f_file_clone__fails_for_regular(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_file_system_quota_block, F_interrupt, F_input_output, diff --git a/level_0/f_file/tests/unit/c/test-file-close.c b/level_0/f_file/tests/unit/c/test-file-close.c index 18816e600..4edd79a77 100644 --- a/level_0/f_file/tests/unit/c/test-file-close.c +++ b/level_0/f_file/tests/unit/c/test-file-close.c @@ -18,7 +18,7 @@ void test__f_file_close__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_input_output, F_space_not, diff --git a/level_0/f_file/tests/unit/c/test-file-close_id.c b/level_0/f_file/tests/unit/c/test-file-close_id.c index 6a8b2b555..81a19368b 100644 --- a/level_0/f_file/tests/unit/c/test-file-close_id.c +++ b/level_0/f_file/tests/unit/c/test-file-close_id.c @@ -18,7 +18,7 @@ void test__f_file_close_id__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_input_output, F_space_not, diff --git a/level_0/f_file/tests/unit/c/test-file-copy.c b/level_0/f_file/tests/unit/c/test-file-copy.c index a2034599e..fab1694bf 100644 --- a/level_0/f_file/tests/unit/c/test-file-copy.c +++ b/level_0/f_file/tests/unit/c/test-file-copy.c @@ -860,7 +860,7 @@ void test__f_file_copy__fails_for_regular(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_input_output, F_space_not, diff --git a/level_0/f_file/tests/unit/c/test-file-create.c b/level_0/f_file/tests/unit/c/test-file-create.c index 126d26eff..c27b6f2e9 100644 --- a/level_0/f_file/tests/unit/c/test-file-create.c +++ b/level_0/f_file/tests/unit/c/test-file-create.c @@ -80,7 +80,7 @@ void test__f_file_create__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_file_system_quota_block, F_interrupt, F_input_output, diff --git a/level_0/f_file/tests/unit/c/test-file-create_at.c b/level_0/f_file/tests/unit/c/test-file-create_at.c index de04b6e97..722776979 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_at.c @@ -83,7 +83,7 @@ void test__f_file_create_at__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_input_output, F_space_not, diff --git a/level_0/f_file/tests/unit/c/test-file-flush.c b/level_0/f_file/tests/unit/c/test-file-flush.c index 41404bac7..f8c623c72 100644 --- a/level_0/f_file/tests/unit/c/test-file-flush.c +++ b/level_0/f_file/tests/unit/c/test-file-flush.c @@ -20,7 +20,7 @@ void test__f_file_flush__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_file_system_quota_block, F_support_not, F_input_output, diff --git a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c index 3344c39d0..d2afe732e 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c @@ -35,7 +35,7 @@ void test__f_file_link_hard_at__fails(void **state) { f_status_t statuss[] = { F_access_denied, - F_file_descriptor, + F_file_descriptor_not, F_file_system_quota_block, F_file_found, F_buffer, diff --git a/level_0/f_file/tests/unit/c/test-file-manipulate.c b/level_0/f_file/tests/unit/c/test-file-manipulate.c index 7b6b7a74e..8899f6ca7 100644 --- a/level_0/f_file/tests/unit/c/test-file-manipulate.c +++ b/level_0/f_file/tests/unit/c/test-file-manipulate.c @@ -29,7 +29,7 @@ void test__f_file_manipulate__fails(void **state) { f_status_t statuss[] = { F_access_denied, F_again, - F_file_descriptor, + F_file_descriptor_not, F_busy, F_deadlock, F_buffer, diff --git a/level_0/f_file/tests/unit/c/test-file-read.c b/level_0/f_file/tests/unit/c/test-file-read.c index dedac9c19..55ac7d26c 100644 --- a/level_0/f_file/tests/unit/c/test-file-read.c +++ b/level_0/f_file/tests/unit/c/test-file-read.c @@ -26,7 +26,7 @@ void test__f_file_read__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-read_block.c b/level_0/f_file/tests/unit/c/test-file-read_block.c index 1d397ed84..551a8f69b 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_block.c +++ b/level_0/f_file/tests/unit/c/test-file-read_block.c @@ -26,7 +26,7 @@ void test__f_file_read_block__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-read_until.c b/level_0/f_file/tests/unit/c/test-file-read_until.c index 5a4a01b6a..bf328ceea 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_until.c +++ b/level_0/f_file/tests/unit/c/test-file-read_until.c @@ -26,7 +26,7 @@ void test__f_file_read_until__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-seek.c b/level_0/f_file/tests/unit/c/test-file-seek.c index ca85c0239..024170552 100644 --- a/level_0/f_file/tests/unit/c/test-file-seek.c +++ b/level_0/f_file/tests/unit/c/test-file-seek.c @@ -19,7 +19,7 @@ void test__f_file_seek__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_parameter, F_bound_not, F_number_overflow, diff --git a/level_0/f_file/tests/unit/c/test-file-select.c b/level_0/f_file/tests/unit/c/test-file-select.c index fc05d12ec..57cd3a60b 100644 --- a/level_0/f_file/tests/unit/c/test-file-select.c +++ b/level_0/f_file/tests/unit/c/test-file-select.c @@ -21,7 +21,7 @@ void test__f_file_select__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_parameter, F_memory_not, diff --git a/level_0/f_file/tests/unit/c/test-file-select_signal.c b/level_0/f_file/tests/unit/c/test-file-select_signal.c index 60d59a1e3..32b07f9f0 100644 --- a/level_0/f_file/tests/unit/c/test-file-select_signal.c +++ b/level_0/f_file/tests/unit/c/test-file-select_signal.c @@ -21,7 +21,7 @@ void test__f_file_select_signal__fails(void **state) { }; f_status_t statuss[] = { - F_file_descriptor, + F_file_descriptor_not, F_interrupt, F_parameter, F_memory_not, diff --git a/level_0/f_file/tests/unit/c/test-file-size_by_id.c b/level_0/f_file/tests/unit/c/test-file-size_by_id.c index be6523ce8..5aabe465c 100644 --- a/level_0/f_file/tests/unit/c/test-file-size_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-size_by_id.c @@ -25,7 +25,7 @@ void test__f_file_size_by_id__fails(void **state) { f_status_t statuss[] = { F_access_denied, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_parameter, F_loop, diff --git a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c index 99b98755c..674c71ecc 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c @@ -25,7 +25,7 @@ void test__f_file_stat_by_id__fails(void **state) { f_status_t statuss[] = { F_access_denied, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_parameter, F_loop, diff --git a/level_0/f_file/tests/unit/c/test-file-stream_close.c b/level_0/f_file/tests/unit/c/test-file-stream_close.c index ca575f29d..38bbc2263 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_close.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_close.c @@ -32,7 +32,7 @@ void test__f_file_stream_close__fails(void **state) { f_status_t status_closes[] = { F_access_denied, F_block, - F_file_descriptor, + F_file_descriptor_not, F_file_overflow, F_deadlock, F_socket_not, diff --git a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c index ff8f4c50a..ec36b44c2 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c @@ -35,7 +35,7 @@ void test__f_file_stream_open_descriptor__fails(void **state) { f_status_t statuss[] = { F_access_denied, F_block, - F_file_descriptor, + F_file_descriptor_not, F_file_overflow, F_deadlock, F_socket_not, diff --git a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c index 300dc5199..9a1f2b624 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c @@ -34,7 +34,7 @@ void test__f_file_stream_reopen__fails(void **state) { f_status_t statuss[] = { F_access_denied, F_block, - F_file_descriptor, + F_file_descriptor_not, F_file_overflow, F_deadlock, F_socket_not, diff --git a/level_0/f_file/tests/unit/c/test-file-write.c b/level_0/f_file/tests/unit/c/test-file-write.c index dfe280f63..622343980 100644 --- a/level_0/f_file/tests/unit/c/test-file-write.c +++ b/level_0/f_file/tests/unit/c/test-file-write.c @@ -23,7 +23,7 @@ void test__f_file_write__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-write_block.c b/level_0/f_file/tests/unit/c/test-file-write_block.c index f784c33f7..c3fb4b6d6 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_block.c +++ b/level_0/f_file/tests/unit/c/test-file-write_block.c @@ -23,7 +23,7 @@ void test__f_file_write_block__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-write_range.c b/level_0/f_file/tests/unit/c/test-file-write_range.c index 641140ad8..043e79b2e 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_range.c +++ b/level_0/f_file/tests/unit/c/test-file-write_range.c @@ -24,7 +24,7 @@ void test__f_file_write_range__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_file/tests/unit/c/test-file-write_until.c b/level_0/f_file/tests/unit/c/test-file-write_until.c index aff1746c8..43c705e0c 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_until.c +++ b/level_0/f_file/tests/unit/c/test-file-write_until.c @@ -23,7 +23,7 @@ void test__f_file_write_until__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_buffer, F_interrupt, F_parameter, diff --git a/level_0/f_print/c/print/private-to.c b/level_0/f_print/c/print/private-to.c index 5073452d0..081f70dbe 100644 --- a/level_0/f_print/c/print/private-to.c +++ b/level_0/f_print/c/print/private-to.c @@ -18,7 +18,7 @@ extern "C" { static inline f_status_t private_inline_f_print_to_error(void) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); if (errno == EDQUOT) return F_status_set_error(F_file_system_quota_block); if (errno == EFBIG) return F_status_set_error(F_number_overflow); diff --git a/level_0/f_print/c/print/private-to.h b/level_0/f_print/c/print/private-to.h index 05778058d..5bb0f6be2 100644 --- a/level_0/f_print/c/print/private-to.h +++ b/level_0/f_print/c/print/private-to.h @@ -34,7 +34,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -75,7 +75,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -130,7 +130,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -326,7 +326,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -373,7 +373,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -421,7 +421,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -464,7 +464,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -506,7 +506,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -549,7 +549,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -590,7 +590,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. diff --git a/level_0/f_print/c/print/to.c b/level_0/f_print/c/print/to.c index 8a1d50dec..ac95faf86 100644 --- a/level_0/f_print/c/print/to.c +++ b/level_0/f_print/c/print/to.c @@ -18,7 +18,7 @@ extern "C" { static inline f_status_t private_inline_f_print_to_error(void) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); if (errno == EDQUOT) return F_status_set_error(F_file_system_quota_block); if (errno == EFBIG) return F_status_set_error(F_number_overflow); diff --git a/level_0/f_print/c/print/to.h b/level_0/f_print/c/print/to.h index 5e5eec0e4..66d9ff589 100644 --- a/level_0/f_print/c/print/to.h +++ b/level_0/f_print/c/print/to.h @@ -40,7 +40,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -77,7 +77,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -118,7 +118,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -157,7 +157,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -198,7 +198,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -241,7 +241,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -289,7 +289,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -333,7 +333,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -374,7 +374,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -420,7 +420,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -462,7 +462,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -509,7 +509,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -552,7 +552,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -597,7 +597,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -644,7 +644,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -696,7 +696,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -744,7 +744,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -789,7 +789,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -839,7 +839,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -885,7 +885,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -940,7 +940,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -989,7 +989,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1040,7 +1040,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1093,7 +1093,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1146,7 +1146,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1197,7 +1197,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1250,7 +1250,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1304,7 +1304,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1356,7 +1356,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1415,7 +1415,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1475,7 +1475,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1533,7 +1533,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1584,7 +1584,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1638,7 +1638,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1688,7 +1688,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1731,7 +1731,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1779,7 +1779,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1819,7 +1819,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1863,7 +1863,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1906,7 +1906,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. @@ -1948,7 +1948,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_file_system_quota_block (with error bit) if quota is reached or exceeded. * F_input_output (with error bit) on I/O error. diff --git a/level_0/f_print/tests/unit/c/test-print-to.c b/level_0/f_print/tests/unit/c/test-print-to.c index c5af60a5a..d7149ffd2 100644 --- a/level_0/f_print/tests/unit/c/test-print-to.c +++ b/level_0/f_print/tests/unit/c/test-print-to.c @@ -29,7 +29,7 @@ void test__f_print_to__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_character.c b/level_0/f_print/tests/unit/c/test-print-to_character.c index f9e5e78d5..9945c8216 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_character.c +++ b/level_0/f_print/tests/unit/c/test-print-to_character.c @@ -29,7 +29,7 @@ void test__f_print_to_character__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_character_safely.c b/level_0/f_print/tests/unit/c/test-print-to_character_safely.c index 5ea9d0492..762edd6d0 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_character_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_character_safely.c @@ -29,7 +29,7 @@ void test__f_print_to_character_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic.c index c4150c361..97420f5bc 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic.c @@ -29,7 +29,7 @@ void test__f_print_to_dynamic__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c index 095aa2a83..b0b469e23 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c @@ -30,7 +30,7 @@ void test__f_print_to_dynamic_partial__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c index 96b5cc40f..e1997c746 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c @@ -30,7 +30,7 @@ void test__f_print_to_dynamic_partial_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c index e4ba8e74b..fe9943815 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_dynamic_partial_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c index 6a6d38ca2..bf2b85cc9 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_dynamic_partial_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c index cf9a2b0d2..b0439b221 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c @@ -29,7 +29,7 @@ void test__f_print_to_dynamic_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c index a9f1b4ffa..0806ecb9c 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c @@ -29,7 +29,7 @@ void test__f_print_to_dynamic_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c index 6971c64d5..cbe2d38eb 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c @@ -29,7 +29,7 @@ void test__f_print_to_dynamic_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except.c b/level_0/f_print/tests/unit/c/test-print-to_except.c index 6244be422..209d49f69 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except.c @@ -30,7 +30,7 @@ void test__f_print_to_except__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c index 152be5457..6f71b5d54 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c @@ -30,7 +30,7 @@ void test__f_print_to_except_dynamic__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c index 30974c1d7..e300daf00 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c @@ -31,7 +31,7 @@ void test__f_print_to_except_dynamic_partial__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c index fae3e80b8..2cd139f24 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c @@ -31,7 +31,7 @@ void test__f_print_to_except_dynamic_partial_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c index 040216570..7a5d4739f 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_dynamic_partial_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c index cd4e4ddc8..faa361b7f 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_dynamic_partial_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c index 6a82bb267..d2a82b281 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c @@ -30,7 +30,7 @@ void test__f_print_to_except_dynamic_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c index 140bddb0b..7068d8d85 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_except_dynamic_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c index 362d66818..d71a5ef16 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_except_dynamic_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in.c b/level_0/f_print/tests/unit/c/test-print-to_except_in.c index 2e2be3b85..5f7662326 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c index e48534d53..89c832245 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_dynamic__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c index 2deda49e0..b621ac5e6 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c @@ -32,7 +32,7 @@ void test__f_print_to_except_in_dynamic_partial__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c index 36cf65d41..359a9536a 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c @@ -32,7 +32,7 @@ void test__f_print_to_except_in_dynamic_partial_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c index 87f42e9fd..3169f70f8 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c @@ -32,7 +32,7 @@ void test__f_print_to_except_in_dynamic_partial_raw_safely__fails(void **state) f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c index fdedb83fb..9db3a8f73 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c @@ -32,7 +32,7 @@ void test__f_print_to_except_in_dynamic_partial_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c index 962ff782b..3186ad275 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_dynamic_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c index 2927494c0..f3ee1241a 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_dynamic_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c index 091ed0e99..dae8e37f2 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_dynamic_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c index 9fb5485e1..98376ee6b 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c index 4b9d43fd4..3bbeb4698 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c index cd4bb17e0..fddb3baf9 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c @@ -31,7 +31,7 @@ void test__f_print_to_except_in_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_raw.c index d9420282d..57f8c896c 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_raw.c @@ -30,7 +30,7 @@ void test__f_print_to_except_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c index 551a2db97..418085221 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_except_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_safely.c index 699a5b3e5..acb8788a2 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_safely.c @@ -30,7 +30,7 @@ void test__f_print_to_except_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw.c b/level_0/f_print/tests/unit/c/test-print-to_raw.c index a4d9f6cbb..7d04118b2 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw.c @@ -29,7 +29,7 @@ void test__f_print_to_raw__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c index cc73314ff..09df1b193 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c @@ -29,7 +29,7 @@ void test__f_print_to_raw_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c index 9099b277e..6947b0bff 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c @@ -29,7 +29,7 @@ void test__f_print_to_raw_terminated__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_safely.c b/level_0/f_print/tests/unit/c/test-print-to_safely.c index b3a7116d0..2193927c3 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_safely.c @@ -29,7 +29,7 @@ void test__f_print_to_safely__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c index d71e85cca..99d24d239 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c @@ -29,7 +29,7 @@ void test__f_print_to_safely_terminated__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_0/f_print/tests/unit/c/test-print-to_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_terminated.c index 8fcc19c20..69a049736 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_terminated.c @@ -29,7 +29,7 @@ void test__f_print_to_terminated__fails(void **state) { f_status_t statuss[] = { F_block, - F_file_descriptor, + F_file_descriptor_not, F_socket_not, F_file_system_quota_block, F_number_overflow, diff --git a/level_1/fl_utf_file/c/private-utf_file.c b/level_1/fl_utf_file/c/private-utf_file.c index 66ece3b9f..416903465 100644 --- a/level_1/fl_utf_file/c/private-utf_file.c +++ b/level_1/fl_utf_file/c/private-utf_file.c @@ -165,7 +165,7 @@ extern "C" { if (size_write < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); diff --git a/level_1/fl_utf_file/c/private-utf_file.h b/level_1/fl_utf_file/c/private-utf_file.h index 6f8e04677..c8539afb4 100644 --- a/level_1/fl_utf_file/c/private-utf_file.h +++ b/level_1/fl_utf_file/c/private-utf_file.h @@ -68,7 +68,7 @@ extern "C" { * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. diff --git a/level_1/fl_utf_file/c/utf_file.c b/level_1/fl_utf_file/c/utf_file.c index 6a8d2952f..1ccb49211 100644 --- a/level_1/fl_utf_file/c/utf_file.c +++ b/level_1/fl_utf_file/c/utf_file.c @@ -43,7 +43,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -94,7 +94,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -153,7 +153,7 @@ extern "C" { if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); - if (errno == EBADF) return F_status_set_error(F_file_descriptor); + if (errno == EBADF) return F_status_set_error(F_file_descriptor_not); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupt); if (errno == EINVAL) return F_status_set_error(F_parameter); diff --git a/level_1/fl_utf_file/c/utf_file.h b/level_1/fl_utf_file/c/utf_file.h index 106772b2a..12f881609 100644 --- a/level_1/fl_utf_file/c/utf_file.h +++ b/level_1/fl_utf_file/c/utf_file.h @@ -45,7 +45,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_complete_not_utf_eof (with error bit) if UTF-8 character was incomplete at the end of the file. * F_complete_not_utf_stop (with error bit) if UTF-8 character was incomplete at a stop point (file.size_read). @@ -79,7 +79,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_complete_not_utf_eof (with error bit) if UTF-8 character was incomplete at the end of the file. * F_complete_not_utf_stop (with error bit) if UTF-8 character was incomplete at a stop point (file.size_read). @@ -114,7 +114,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_complete_not_utf_eof (with error bit) if UTF-8 character was incomplete at the end of the file. * F_complete_not_utf_stop (with error bit) if UTF-8 character was incomplete at a stop point (file.size_read). @@ -149,7 +149,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -184,7 +184,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -219,7 +219,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. @@ -254,7 +254,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_file (with error bit) if file descriptor is in an error state. * F_file_closed (with error bit) if file is not open. - * F_file_descriptor (with error bit) if the file descriptor is invalid. + * F_file_descriptor_not (with error bit) if the file descriptor is invalid. * F_file_type_directory (with error bit) if file descriptor represents a directory. * F_input_output (with error bit) on I/O error. * F_interrupt (with error bit) if interrupt is received. -- 2.47.3