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 +- level_0/f_file/tests/unit/c/test-file-close_id.c | 2 +- level_0/f_file/tests/unit/c/test-file-copy.c | 2 +- level_0/f_file/tests/unit/c/test-file-create.c | 2 +- level_0/f_file/tests/unit/c/test-file-create_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-flush.c | 2 +- .../f_file/tests/unit/c/test-file-link_hard_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-manipulate.c | 2 +- level_0/f_file/tests/unit/c/test-file-read.c | 2 +- level_0/f_file/tests/unit/c/test-file-read_block.c | 2 +- level_0/f_file/tests/unit/c/test-file-read_until.c | 2 +- level_0/f_file/tests/unit/c/test-file-seek.c | 2 +- level_0/f_file/tests/unit/c/test-file-select.c | 2 +- .../f_file/tests/unit/c/test-file-select_signal.c | 2 +- level_0/f_file/tests/unit/c/test-file-size_by_id.c | 2 +- level_0/f_file/tests/unit/c/test-file-stat_by_id.c | 2 +- .../f_file/tests/unit/c/test-file-stream_close.c | 2 +- .../unit/c/test-file-stream_open_descriptor.c | 2 +- .../f_file/tests/unit/c/test-file-stream_reopen.c | 2 +- level_0/f_file/tests/unit/c/test-file-write.c | 2 +- .../f_file/tests/unit/c/test-file-write_block.c | 2 +- .../f_file/tests/unit/c/test-file-write_range.c | 2 +- .../f_file/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 +- .../f_print/tests/unit/c/test-print-to_character.c | 2 +- .../tests/unit/c/test-print-to_character_safely.c | 2 +- .../f_print/tests/unit/c/test-print-to_dynamic.c | 2 +- .../tests/unit/c/test-print-to_dynamic_partial.c | 2 +- .../unit/c/test-print-to_dynamic_partial_raw.c | 2 +- .../c/test-print-to_dynamic_partial_raw_safely.c | 2 +- .../unit/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 +- .../tests/unit/c/test-print-to_dynamic_safely.c | 2 +- .../f_print/tests/unit/c/test-print-to_except.c | 2 +- .../tests/unit/c/test-print-to_except_dynamic.c | 2 +- .../unit/c/test-print-to_except_dynamic_partial.c | 2 +- .../c/test-print-to_except_dynamic_partial_raw.c | 2 +- ...st-print-to_except_dynamic_partial_raw_safely.c | 2 +- .../test-print-to_except_dynamic_partial_safely.c | 2 +- .../unit/c/test-print-to_except_dynamic_raw.c | 2 +- .../c/test-print-to_except_dynamic_raw_safely.c | 2 +- .../unit/c/test-print-to_except_dynamic_safely.c | 2 +- .../f_print/tests/unit/c/test-print-to_except_in.c | 2 +- .../tests/unit/c/test-print-to_except_in_dynamic.c | 2 +- .../c/test-print-to_except_in_dynamic_partial.c | 2 +- .../test-print-to_except_in_dynamic_partial_raw.c | 2 +- ...print-to_except_in_dynamic_partial_raw_safely.c | 2 +- ...est-print-to_except_in_dynamic_partial_safely.c | 2 +- .../unit/c/test-print-to_except_in_dynamic_raw.c | 2 +- .../c/test-print-to_except_in_dynamic_raw_safely.c | 2 +- .../c/test-print-to_except_in_dynamic_safely.c | 2 +- .../tests/unit/c/test-print-to_except_in_raw.c | 2 +- .../unit/c/test-print-to_except_in_raw_safely.c | 2 +- .../tests/unit/c/test-print-to_except_in_safely.c | 2 +- .../tests/unit/c/test-print-to_except_raw.c | 2 +- .../tests/unit/c/test-print-to_except_raw_safely.c | 2 +- .../tests/unit/c/test-print-to_except_safely.c | 2 +- level_0/f_print/tests/unit/c/test-print-to_raw.c | 2 +- .../tests/unit/c/test-print-to_raw_safely.c | 2 +- .../tests/unit/c/test-print-to_raw_terminated.c | 2 +- .../f_print/tests/unit/c/test-print-to_safely.c | 2 +- .../tests/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 7cfdc2c..cb1cbb3 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 8d75672..687da30 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 4ede81a..8f34d41 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 9ec9032..21174bf 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 d4ee115..7ce7fb7 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 895d2d2..8d6eb96 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 64b819b..483c7fd 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 18816e6..4edd79a 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 6a8b2b5..81a1936 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 a203459..fab1694 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 126d26e..c27b6f2 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 de04b6e..7227769 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 41404ba..f8c623c 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 3344c39..d2afe73 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 7b6b7a7..8899f6c 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 dedac9c..55ac7d2 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 1d397ed..551a8f6 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 5a4a01b..bf328ce 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 ca85c02..0241705 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 fc05d12..57cd3a6 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 60d59a1..32b07f9 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 be6523c..5aabe46 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 99b9875..674c71e 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 ca575f2..38bbc22 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 ff8f4c5..ec36b44 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 300dc51..9a1f2b6 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 dfe280f..6223439 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 f784c33..c3fb4b6 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 641140a..043e79b 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 aff1746..43c705e 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 5073452..081f70d 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 0577805..5bb0f6b 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 8a1d50d..ac95faf 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 5e5eec0..66d9ff5 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 c5af60a..d7149ff 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 f9e5e78..9945c82 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 5ea9d04..762edd6 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 c4150c3..97420f5 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 095aa2a..b0b469e 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 96b5cc4..e1997c7 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 e4ba8e7..fe99438 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 6a6d38c..bf2b85c 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 cf9a2b0..b0439b2 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 a9f1b4f..0806ecb 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 6971c64..cbe2d38 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 6244be4..209d49f 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 152be54..6f71b5d 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 30974c1..e300daf 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 fae3e80..2cd139f 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 0402165..7a5d473 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 cd4e4dd..faa361b 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 6a82bb2..d2a82b2 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 140bddb..7068d8d 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 362d668..d71a5ef 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 2e2be3b..5f76623 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 e48534d..89c8322 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 2deda49..b621ac5 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 36cf65d..359a953 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 87f42e9..3169f70 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 fdedb83..9db3a8f 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 962ff78..3186ad2 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 2927494..f3ee124 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 091ed0e..dae8e37 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 9fb5485..98376ee 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 4b9d43f..3bbeb46 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 cd4bb17..fddb3ba 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 d942028..57f8c89 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 551a2db..4180852 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 699a5b3..acb8788 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 a4d9f6c..7d04118 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 cc73314..09df1b1 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 9099b27..6947b0b 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 b3a7116..2193927 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 d71e85c..99d24d2 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 8fcc19c..69a0497 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 66ece3b..4169034 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 6f8e046..c8539af 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 6a8d295..1ccb492 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 106772b..12f8816 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. -- 1.8.3.1