]> Kevux Git Server - fll/commitdiff
Update: Make some socket error codes more granular and add additional status codes.
authorKevin Day <Kevin@kevux.org>
Wed, 26 Nov 2025 06:51:54 +0000 (00:51 -0600)
committerKevin Day <Kevin@kevux.org>
Wed, 26 Nov 2025 06:51:54 +0000 (00:51 -0600)
Some of the socket status codes should be more granular given the specific behavior relating to networking.
Add error printing associated with this.
I anticipate more changes like this based around networking.

Add clock status codes.

22 files changed:
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/tests/unit/c/test-socket-accept.c
level_0/f_socket/tests/unit/c/test-socket-connect.c
level_0/f_socket/tests/unit/c/test-socket-create.c
level_0/f_socket/tests/unit/c/test-socket-create_pair.c
level_0/f_socket/tests/unit/c/test-socket-name_peer.c
level_0/f_socket/tests/unit/c/test-socket-read.c
level_0/f_socket/tests/unit/c/test-socket-read_message.c
level_0/f_socket/tests/unit/c/test-socket-read_stream.c
level_0/f_socket/tests/unit/c/test-socket-write.c
level_0/f_socket/tests/unit/c/test-socket-write_message.c
level_0/f_socket/tests/unit/c/test-socket-write_stream.c
level_0/f_status/c/status.h
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_0/f_status_string/tests/unit/c/test-status_string-to.c
level_1/fl_status_string/c/status_string.c
level_1/fl_status_string/tests/unit/c/test-status_string-from.c
level_2/fll_error/c/error/string.c
level_2/fll_error/c/error/string.h
level_2/fll_error/c/private-error.c

index c9a70fec522f75f90c8ee4de6773a68cecf89d1e..c91125dc4beae061a8da7b56528fbe7a19b6f8f9 100644 (file)
@@ -14,7 +14,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == EFAULT) return F_status_set_error(F_buffer);
       if (errno == EHOSTDOWN) return F_status_set_error(F_network_client_not);
@@ -25,7 +25,7 @@ extern "C" {
       if (errno == ENETDOWN) return F_status_set_error(F_network_not);
       if (errno == ENFILE) return F_status_set_error(F_file_open_max);
       if (errno == ENETUNREACH) return F_status_set_error(F_network_reach_not);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == ENONET) return F_status_set_error(F_network_device_not);
       if (errno == ENOPROTOOPT) return F_status_set_error(F_option_not);
@@ -273,7 +273,7 @@ extern "C" {
       if (errno == EADDRINUSE) return F_status_set_error(F_busy_address);
       if (errno == EADDRNOTAVAIL) return F_status_set_error(F_available_not_address);
       if (errno == EAFNOSUPPORT) return F_status_set_error(F_domain_not);
-      if (errno == EAGAIN) return F_status_set_error(F_block);
+      if (errno == EAGAIN) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -308,7 +308,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max);
       if (errno == ENFILE) return F_status_set_error(F_file_open_max);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == EPROTONOSUPPORT) return F_status_set_error(F_protocol_not);
       if (errno == ESOCKTNOSUPPORT) return F_status_set_error(F_type_not);
@@ -337,7 +337,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max);
       if (errno == ENFILE) return F_status_set_error(F_file_open_max);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == EPROTONOSUPPORT) return F_status_set_error(F_protocol_not);
 
@@ -507,7 +507,7 @@ extern "C" {
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == EFAULT) return F_status_set_error(F_buffer);
       if (errno == EINVAL) return F_status_set_error(F_parameter);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOTCONN) return F_status_set_error(F_connect_not);
       if (errno == ENOTSOCK) return F_status_set_error(F_socket_not);
 
@@ -531,7 +531,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -572,7 +572,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -613,7 +613,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -654,7 +654,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -665,7 +665,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EISCONN) return F_status_set_error(F_connect);
       if (errno == EMSGSIZE) return F_status_set_error(F_size);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == ENOTCONN) return F_status_set_error(F_connect_not);
       if (errno == ENOTSOCK) return F_status_set_error(F_socket_not);
@@ -698,7 +698,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -709,7 +709,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EISCONN) return F_status_set_error(F_connect);
       if (errno == EMSGSIZE) return F_status_set_error(F_size);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == ENOTCONN) return F_status_set_error(F_connect_not);
       if (errno == ENOTSOCK) return F_status_set_error(F_socket_not);
@@ -742,7 +742,7 @@ extern "C" {
 
     if (result == -1) {
       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 == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_socket_block);
       if (errno == EALREADY) return F_status_set_error(F_complete_not);
       if (errno == EBADF) return F_status_set_error(F_file_descriptor);
       if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse);
@@ -753,7 +753,7 @@ extern "C" {
       if (errno == EINVAL) return F_status_set_error(F_parameter);
       if (errno == EISCONN) return F_status_set_error(F_connect);
       if (errno == EMSGSIZE) return F_status_set_error(F_size);
-      if (errno == ENOBUFS) return F_status_set_error(F_buffer_not);
+      if (errno == ENOBUFS) return F_status_set_error(F_buffer_sufficient_not);
       if (errno == ENOMEM) return F_status_set_error(F_memory_not);
       if (errno == ENOTCONN) return F_status_set_error(F_connect_not);
       if (errno == ENOTSOCK) return F_status_set_error(F_socket_not);
index ae3050b52dbd8f361a992f8825e8ae2f555a4f70..d37a610ecfeb87bef73691c706696421a997787d 100644 (file)
@@ -71,9 +71,8 @@ extern "C" {
  *   F_okay on success.
  *
  *   F_access_denied (with error bit) on access denied.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
- *   F_buffer_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
+ *   F_buffer_sufficient_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_file_descriptor_max (with error bit) if max file descriptors is reached.
  *   F_file_open_max (with error bit) too many open files.
@@ -89,6 +88,7 @@ extern "C" {
  *   F_prohibited (with error bit) if the file system does not permit this operation.
  *   F_protocol (with error bit) if a protocol error occurred.
  *   F_protocol_not (with error bit) if the given protocol is unknown or is unsupported.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_stream_not (with error bit) the socket type is not a stream.
  *   F_support_not (with error bit) if this socket type is not supported.
@@ -185,7 +185,6 @@ extern "C" {
  *
  *   F_access_denied (with error bit) on access denied.
  *   F_available_not_address (with error bit) if address is unavailable (is non-existent or not local).
- *   F_block (with error bit) if socket is blocked.
  *   F_busy_address (with error bit) if address is already in use (therefore unavailable).
  *   F_complete_not (with error bit) if a non-blocking connection attempt is not yet completed.
  *   F_connect (with error bit) if already connected.
@@ -198,6 +197,7 @@ extern "C" {
  *   F_progress (with error bit) if if a non-blocking connection cannot be completed immediately.
  *   F_prohibited (with error bit) if the file system does not permit this operation.
  *   F_protocol_not (with error bit) if the given protocol is unknown or is unsupported.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -226,7 +226,7 @@ extern "C" {
  *   F_okay on success.
  *
  *   F_access_denied (with error bit) on access denied.
- *   F_buffer_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
+ *   F_buffer_sufficient_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
  *   F_domain_not (with error bit) if the given domain is unknown or is unsupported.
  *   F_file_descriptor_max (with error bit) if max file descriptors is reached.
  *   F_file_open_max (with error bit) too many open files.
@@ -269,7 +269,7 @@ extern "C" {
  *   F_okay on success.
  *
  *   F_access_denied (with error bit) on access denied.
- *   F_buffer_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
+ *   F_buffer_sufficient_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS).
  *   F_domain_not (with error bit) if the given domain is unknown or is unsupported.
  *   F_file_descriptor_max (with error bit) if max file descriptors is reached.
  *   F_file_open_max (with error bit) too many open files.
@@ -498,7 +498,7 @@ extern "C" {
  *
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_buffer (with error bit) if the buffer is invalid.
- *   F_buffer_not (with error bit) due to resource restrictions (maps to ENOBUFS).
+ *   F_buffer_sufficient_not (with error bit) due to resource restrictions (maps to ENOBUFS).
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
@@ -546,7 +546,6 @@ extern "C" {
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -555,6 +554,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received.
  *   F_prohibited (with error bit) if the insufficient privileges to perform read.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -596,7 +596,6 @@ extern "C" {
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -605,6 +604,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received.
  *   F_prohibited (with error bit) if the insufficient privileges to perform read.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -651,7 +651,6 @@ extern "C" {
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -660,6 +659,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received.
  *   F_prohibited (with error bit) if the insufficient privileges to perform read.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -703,13 +703,12 @@ extern "C" {
  *
  *   F_access_denied (with error bit) on access denied.
  *   F_address_not (with error bit) if no address is provided and the connection is not "connection-mode".
- *   F_buffer_not (with error bit) if unable to send message because output buffer is full.
+ *   F_buffer_sufficient_not (with error bit) if unable to send message because output buffer is full.
  *   F_complete_not (with error bit) if an existing connection is not yet complete.
  *   F_connect (with error bit) if an address is provided and the connection is "connection-mode".
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -719,6 +718,7 @@ extern "C" {
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received (Linux might return this isntead if F_connect_not).
  *   F_prohibited (with error bit) if the insufficient privileges to perform send.
  *   F_size (with error bit) if size of message makes atomically sending message impossible on a socket type that requires this to be atomic.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -757,13 +757,12 @@ extern "C" {
  *
  *   F_access_denied (with error bit) on access denied.
  *   F_address_not (with error bit) if no address is provided and the connection is not "connection-mode".
- *   F_buffer_not (with error bit) if unable to send message because output buffer is full.
+ *   F_buffer_sufficient_not (with error bit) if unable to send message because output buffer is full.
  *   F_complete_not (with error bit) if an existing connection is not yet complete.
  *   F_connect (with error bit) if an address is provided and the connection is "connection-mode".
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -773,6 +772,7 @@ extern "C" {
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received (Linux might return this isntead if F_connect_not).
  *   F_prohibited (with error bit) if the insufficient privileges to perform send.
  *   F_size (with error bit) if size of message makes atomically sending message impossible on a socket type that requires this to be atomic.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
@@ -816,13 +816,12 @@ extern "C" {
  *
  *   F_access_denied (with error bit) on access denied.
  *   F_address_not (with error bit) if no address is provided and the connection is not "connection-mode".
- *   F_buffer_not (with error bit) if unable to send message because output buffer is full.
+ *   F_buffer_sufficient_not (with error bit) if unable to send message because output buffer is full.
  *   F_complete_not (with error bit) if an existing connection is not yet complete.
  *   F_connect (with error bit) if an address is provided and the connection is "connection-mode".
  *   F_connect_not (with error bit) if the socket is not connected.
  *   F_connect_refuse (with error bit) if connection is refused.
  *   F_connect_reset (with error bit) if connection is reset.
- *   F_block (with error bit) if socket is blocked.
  *   F_buffer (with error bit) if the buffer is invalid.
  *   F_file_descriptor (with error bit) if ID is an invalid descriptor.
  *   F_interrupt (with error bit) if interrupt is received.
@@ -832,6 +831,7 @@ extern "C" {
  *   F_pipe (with error bit) if the local end of a connection oriented socket is closed or SIGPIPE is received (Linux might return this isntead if F_connect_not).
  *   F_prohibited (with error bit) if the insufficient privileges to perform send.
  *   F_size (with error bit) if size of message makes atomically sending message impossible on a socket type that requires this to be atomic.
+ *   F_socket_block (with error bit) if socket is blocked.
  *   F_socket_not (with error bit) if the ID is not a socket descriptor.
  *   F_time_out (with error bit) if a timeout occurred.
  *
index dd194d643fbceadea84780bee5a24f2493fde81c..c5d19c538c4150ed137e0f08829a3548aadd785b 100644 (file)
@@ -39,7 +39,7 @@ void test__f_socket_accept__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_file_descriptor,
     F_buffer,
     F_network_client_not,
@@ -50,7 +50,7 @@ void test__f_socket_accept__fails(void **state) {
     F_network_not,
     F_file_open_max,
     F_network_reach_not,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_network_device_not,
     F_option_not,
@@ -61,7 +61,7 @@ void test__f_socket_accept__fails(void **state) {
     F_support_not,
     F_protocol_not,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index bcec369f28398775a2c52ef321742d1bdec53e8c..c7493aa14c11531e97d478df759e91dc6b2dec97 100644 (file)
@@ -37,7 +37,7 @@ void test__f_socket_connect__fails(void **state) {
     F_busy_address,
     F_available_not_address,
     F_domain_not,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
index 6b55abc84c094affddd0b856b022827f5221ea65..ae9effa5cb828c58c0f86f506d0da91443a5bbc9 100644 (file)
@@ -28,7 +28,7 @@ void test__f_socket_create__fails(void **state) {
     F_parameter,
     F_file_descriptor_max,
     F_file_open_max,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_protocol_not,
     F_type_not,
index 2da791ea45b91811a673f73d9b0fd233bec402f7..feec7f97941507f20410a8889f029a3895db5179 100644 (file)
@@ -28,7 +28,7 @@ void test__f_socket_create_pair__fails(void **state) {
     F_parameter,
     F_file_descriptor_max,
     F_file_open_max,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_protocol_not,
     F_failure,
index 1cc5bb2c0125dba5e78a64906c1ff1888ab00343..90d00ffa1a401a589bbfdea2929329c97ba18786 100644 (file)
@@ -23,7 +23,7 @@ void test__f_socket_name_peer__fails(void **state) {
     F_file_descriptor,
     F_buffer,
     F_parameter,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_connect_not,
     F_socket_not,
     F_failure,
index 687835045b0d29598c1f7d4483576acd8f1ce7fe..11d908bb4fdd5777e22a6994a473275c0d3bb2eb 100644 (file)
@@ -35,7 +35,7 @@ void test__f_socket_read__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -51,7 +51,7 @@ void test__f_socket_read__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index fd65e0f966e8617b31e2e7df6625427a2fed2b07..ba856c9d002d4fe2786eda5d2df19f3e4bb48b45 100644 (file)
@@ -37,7 +37,7 @@ void test__f_socket_read_message__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -53,7 +53,7 @@ void test__f_socket_read_message__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index d2fa6d0e4e61cf98768c945acde785842a007d3f..c856e1d66cd9d61c5e8caf2bd1d9f5dd017dd708 100644 (file)
@@ -35,7 +35,7 @@ void test__f_socket_read_stream__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -51,7 +51,7 @@ void test__f_socket_read_stream__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index ee791b0130d8481d5f137c1daf08fe896d1d2f69..488f25166584e758263f037715e4fe87379d11b6 100644 (file)
@@ -38,7 +38,7 @@ void test__f_socket_write__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -49,7 +49,7 @@ void test__f_socket_write__fails(void **state) {
     F_parameter,
     F_connect,
     F_size,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_connect_not,
     F_socket_not,
@@ -57,7 +57,7 @@ void test__f_socket_write__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index 3056e8275bcdd17b9b89ae7803a7647c8a89d1d7..4354552d75647c5b22001a9cb49b0277a926e7b8 100644 (file)
@@ -40,7 +40,7 @@ void test__f_socket_write_message__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -51,7 +51,7 @@ void test__f_socket_write_message__fails(void **state) {
     F_parameter,
     F_connect,
     F_size,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_connect_not,
     F_socket_not,
@@ -59,7 +59,7 @@ void test__f_socket_write_message__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index 744c8aabb175913e58516db18894e5795a844a50..8f99f6c0aa12ce5bfe4373822425fe72edf4e6b6 100644 (file)
@@ -38,7 +38,7 @@ void test__f_socket_write_stream__fails(void **state) {
 
   f_status_t statuss[] = {
     F_access_denied,
-    F_block,
+    F_socket_block,
     F_complete_not,
     F_file_descriptor,
     F_connect_refuse,
@@ -49,7 +49,7 @@ void test__f_socket_write_stream__fails(void **state) {
     F_parameter,
     F_connect,
     F_size,
-    F_buffer_not,
+    F_buffer_sufficient_not,
     F_memory_not,
     F_connect_not,
     F_socket_not,
@@ -57,7 +57,7 @@ void test__f_socket_write_stream__fails(void **state) {
     F_prohibited,
     F_pipe,
     F_time_out,
-    F_block,
+    F_socket_block,
     F_failure,
   };
 
index ab8e5e7cce79564e921d21eb8428cf1f1a5d928e..0b5f7a32e628816bd5a3a47d9dfb495e312b80b9 100644 (file)
@@ -315,6 +315,9 @@ extern "C" {
     F_buffer,
     F_buffer_not,
     F_buffer_overflow,
+    F_buffer_restrict,
+    F_buffer_sufficient,
+    F_buffer_sufficient_not,
     F_buffer_too_large,
     F_buffer_too_small,
     F_buffer_underflow,
@@ -337,6 +340,12 @@ extern "C" {
     F_character_not,
     F_child,
     F_child_not,
+    F_clock,
+    F_clock_ahead,
+    F_clock_behind,
+    F_clock_match,
+    F_clock_not,
+    F_clock_skew,
     F_combarudoo,
     F_combarudoo_not,
     F_complete,
@@ -817,6 +826,7 @@ extern "C" {
     F_skip,
     F_skip_not,
     F_socket,
+    F_socket_block,
     F_socket_client,
     F_socket_not,
     F_socket_receive,
index e075a0d15af44d2032d11f8ecdc906ced5484283..fcf040506ad0ecf5ce80893715c12ad380eb6421 100644 (file)
@@ -156,6 +156,9 @@ extern "C" {
   const f_string_static_t f_status_buffer_s = macro_f_string_static_t_initialize_1(F_status_buffer_s, 0, F_status_buffer_s_length);
   const f_string_static_t f_status_buffer_not_s = macro_f_string_static_t_initialize_1(F_status_buffer_not_s, 0, F_status_buffer_not_s_length);
   const f_string_static_t f_status_buffer_overflow_s = macro_f_string_static_t_initialize_1(F_status_buffer_overflow_s, 0, F_status_buffer_overflow_s_length);
+  const f_string_static_t f_status_buffer_restrict_s = macro_f_string_static_t_initialize_1(F_status_buffer_restrict_s, 0, F_status_buffer_restrict_s_length);
+  const f_string_static_t f_status_buffer_sufficient_s = macro_f_string_static_t_initialize_1(F_status_buffer_sufficient_s, 0, F_status_buffer_sufficient_s_length);
+  const f_string_static_t f_status_buffer_sufficient_not_s = macro_f_string_static_t_initialize_1(F_status_buffer_sufficient_not_s, 0, F_status_buffer_sufficient_not_s_length);
   const f_string_static_t f_status_buffer_too_large_s = macro_f_string_static_t_initialize_1(F_status_buffer_too_large_s, 0, F_status_buffer_too_large_s_length);
   const f_string_static_t f_status_buffer_too_small_s = macro_f_string_static_t_initialize_1(F_status_buffer_too_small_s, 0, F_status_buffer_too_small_s_length);
   const f_string_static_t f_status_buffer_underflow_s = macro_f_string_static_t_initialize_1(F_status_buffer_underflow_s, 0, F_status_buffer_underflow_s_length);
@@ -178,6 +181,12 @@ extern "C" {
   const f_string_static_t f_status_character_not_s = macro_f_string_static_t_initialize_1(F_status_character_not_s, 0, F_status_character_not_s_length);
   const f_string_static_t f_status_child_s = macro_f_string_static_t_initialize_1(F_status_child_s, 0, F_status_child_s_length);
   const f_string_static_t f_status_child_not_s = macro_f_string_static_t_initialize_1(F_status_child_not_s, 0, F_status_child_not_s_length);
+  const f_string_static_t f_status_clock_s = macro_f_string_static_t_initialize_1(F_status_clock_s, 0, F_status_clock_s_length);
+  const f_string_static_t f_status_clock_ahead_s = macro_f_string_static_t_initialize_1(F_status_clock_ahead_s, 0, F_status_clock_ahead_s_length);
+  const f_string_static_t f_status_clock_behind_s = macro_f_string_static_t_initialize_1(F_status_clock_behind_s, 0, F_status_clock_behind_s_length);
+  const f_string_static_t f_status_clock_match_s = macro_f_string_static_t_initialize_1(F_status_clock_match_s, 0, F_status_clock_match_s_length);
+  const f_string_static_t f_status_clock_not_s = macro_f_string_static_t_initialize_1(F_status_clock_not_s, 0, F_status_clock_not_s_length);
+  const f_string_static_t f_status_clock_skew_s = macro_f_string_static_t_initialize_1(F_status_clock_skew_s, 0, F_status_clock_skew_s_length);
   const f_string_static_t f_status_combarudoo_s = macro_f_string_static_t_initialize_1(F_status_combarudoo_s, 0, F_status_combarudoo_s_length);
   const f_string_static_t f_status_combarudoo_not_s = macro_f_string_static_t_initialize_1(F_status_combarudoo_not_s, 0, F_status_combarudoo_not_s_length);
   const f_string_static_t f_status_complete_s = macro_f_string_static_t_initialize_1(F_status_complete_s, 0, F_status_complete_s_length);
@@ -665,6 +674,7 @@ extern "C" {
   const f_string_static_t f_status_skip_s = macro_f_string_static_t_initialize_1(F_status_skip_s, 0, F_status_skip_s_length);
   const f_string_static_t f_status_skip_not_s = macro_f_string_static_t_initialize_1(F_status_skip_not_s, 0, F_status_skip_not_s_length);
   const f_string_static_t f_status_socket_s = macro_f_string_static_t_initialize_1(F_status_socket_s, 0, F_status_socket_s_length);
+  const f_string_static_t f_status_socket_block_s = macro_f_string_static_t_initialize_1(F_status_socket_block_s, 0, F_status_socket_block_s_length);
   const f_string_static_t f_status_socket_client_s = macro_f_string_static_t_initialize_1(F_status_socket_client_s, 0, F_status_socket_client_s_length);
   const f_string_static_t f_status_socket_not_s = macro_f_string_static_t_initialize_1(F_status_socket_not_s, 0, F_status_socket_not_s_length);
   const f_string_static_t f_status_socket_receive_s = macro_f_string_static_t_initialize_1(F_status_socket_receive_s, 0, F_status_socket_receive_s_length);
@@ -1529,6 +1539,21 @@ extern "C" {
 
         break;
 
+      case F_buffer_restrict:
+        *name = f_status_buffer_restrict_s;
+
+        break;
+
+      case F_buffer_sufficient:
+        *name = f_status_buffer_sufficient_s;
+
+        break;
+
+      case F_buffer_sufficient_not:
+        *name = f_status_buffer_sufficient_not_s;
+
+        break;
+
       case F_buffer_too_large:
         *name = f_status_buffer_too_large_s;
 
@@ -1639,6 +1664,36 @@ extern "C" {
 
         break;
 
+      case F_clock:
+        *name = f_status_clock_s;
+
+        break;
+
+      case F_clock_ahead:
+        *name = f_status_clock_ahead_s;
+
+        break;
+
+      case F_clock_behind:
+        *name = f_status_clock_behind_s;
+
+        break;
+
+      case F_clock_match:
+        *name = f_status_clock_match_s;
+
+        break;
+
+      case F_clock_not:
+        *name = f_status_clock_not_s;
+
+        break;
+
+      case F_clock_skew:
+        *name = f_status_clock_skew_s;
+
+        break;
+
       case F_combarudoo:
         *name = f_status_combarudoo_s;
 
@@ -4040,6 +4095,11 @@ extern "C" {
 
         break;
 
+      case F_socket_block:
+        *name = f_status_socket_block_s;
+
+        break;
+
       case F_socket_client:
         *name = f_status_socket_client_s;
 
index ab1bc51622d7b5d997684f9ae90fc0443f96f63e..7c0b899550298b1aec14a4d4bf8959af9d8c5b7c 100644 (file)
@@ -316,6 +316,9 @@ extern "C" {
   #define F_status_buffer_s                   "F_buffer"
   #define F_status_buffer_not_s               "F_buffer_not"
   #define F_status_buffer_overflow_s          "F_buffer_overflow"
+  #define F_status_buffer_restrict_s          "F_buffer_restrict"
+  #define F_status_buffer_sufficient_s        "F_buffer_sufficient"
+  #define F_status_buffer_sufficient_not_s    "F_buffer_sufficient_not"
   #define F_status_buffer_too_large_s         "F_buffer_too_large"
   #define F_status_buffer_too_small_s         "F_buffer_too_small"
   #define F_status_buffer_underflow_s         "F_buffer_underflow"
@@ -338,6 +341,12 @@ extern "C" {
   #define F_status_character_not_s            "F_character_not"
   #define F_status_child_s                    "F_child"
   #define F_status_child_not_s                "F_child_not"
+  #define F_status_clock_s                    "F_clock"
+  #define F_status_clock_ahead_s              "F_clock_ahead"
+  #define F_status_clock_behind_s             "F_clock_behind"
+  #define F_status_clock_match_s              "F_clock_match"
+  #define F_status_clock_not_s                "F_clock_not"
+  #define F_status_clock_skew_s               "F_clock_skew"
   #define F_status_combarudoo_s               "F_combarudoo"
   #define F_status_combarudoo_not_s           "F_combarudoo_not"
   #define F_status_complete_s                 "F_complete"
@@ -818,6 +827,7 @@ extern "C" {
   #define F_status_skip_s                     "F_skip"
   #define F_status_skip_not_s                 "F_skip_not"
   #define F_status_socket_s                   "F_socket"
+  #define F_status_socket_block_s             "F_socket_block"
   #define F_status_socket_client_s            "F_socket_client"
   #define F_status_socket_not_s               "F_socket_not"
   #define F_status_socket_receive_s           "F_socket_receive"
@@ -998,6 +1008,9 @@ extern "C" {
   #define F_status_buffer_s_length                   8
   #define F_status_buffer_not_s_length               12
   #define F_status_buffer_overflow_s_length          17
+  #define F_status_buffer_restrict_s_length          17
+  #define F_status_buffer_sufficient_s_length        19
+  #define F_status_buffer_sufficient_not_s_length    23
   #define F_status_buffer_too_large_s_length         18
   #define F_status_buffer_too_small_s_length         18
   #define F_status_buffer_underflow_s_length         18
@@ -1020,6 +1033,12 @@ extern "C" {
   #define F_status_character_not_s_length            15
   #define F_status_child_s_length                    7
   #define F_status_child_not_s_length                11
+  #define F_status_clock_s_length                    7
+  #define F_status_clock_ahead_s_length              13
+  #define F_status_clock_behind_s_length             14
+  #define F_status_clock_match_s_length              13
+  #define F_status_clock_not_s_length                11
+  #define F_status_clock_skew_s_length               12
   #define F_status_combarudoo_s_length               12
   #define F_status_combarudoo_not_s_length           16
   #define F_status_complete_s_length                 10
@@ -1500,6 +1519,7 @@ extern "C" {
   #define F_status_skip_s_length                     6
   #define F_status_skip_not_s_length                 10
   #define F_status_socket_s_length                   8
+  #define F_status_socket_block_s_length             14
   #define F_status_socket_client_s_length            15
   #define F_status_socket_not_s_length               12
   #define F_status_socket_receive_s_length           16
@@ -1680,6 +1700,9 @@ extern "C" {
   extern const f_string_static_t f_status_buffer_s;
   extern const f_string_static_t f_status_buffer_not_s;
   extern const f_string_static_t f_status_buffer_overflow_s;
+  extern const f_string_static_t f_status_buffer_restrict_s;
+  extern const f_string_static_t f_status_buffer_sufficient_s;
+  extern const f_string_static_t f_status_buffer_sufficient_not_s;
   extern const f_string_static_t f_status_buffer_too_large_s;
   extern const f_string_static_t f_status_buffer_too_small_s;
   extern const f_string_static_t f_status_buffer_underflow_s;
@@ -1702,6 +1725,12 @@ extern "C" {
   extern const f_string_static_t f_status_character_not_s;
   extern const f_string_static_t f_status_child_s;
   extern const f_string_static_t f_status_child_not_s;
+  extern const f_string_static_t f_status_clock_s;
+  extern const f_string_static_t f_status_clock_ahead_s;
+  extern const f_string_static_t f_status_clock_behind_s;
+  extern const f_string_static_t f_status_clock_match_s;
+  extern const f_string_static_t f_status_clock_not_s;
+  extern const f_string_static_t f_status_clock_skew_s;
   extern const f_string_static_t f_status_combarudoo_s;
   extern const f_string_static_t f_status_combarudoo_not_s;
   extern const f_string_static_t f_status_complete_s;
@@ -2184,6 +2213,7 @@ extern "C" {
   extern const f_string_static_t f_status_skip_s;
   extern const f_string_static_t f_status_skip_not_s;
   extern const f_string_static_t f_status_socket_s;
+  extern const f_string_static_t f_status_socket_block_s;
   extern const f_string_static_t f_status_socket_client_s;
   extern const f_string_static_t f_status_socket_not_s;
   extern const f_string_static_t f_status_socket_receive_s;
index 8b90a4e86f3fa5aad3169322d3f4074b30929c3f..34dc4734f6f9e73c99e650380b8bfd3871faf9fc 100644 (file)
@@ -182,6 +182,9 @@ void test__f_status_string_to__works(void **state) {
     F_buffer,
     F_buffer_not,
     F_buffer_overflow,
+    F_buffer_restrict,
+    F_buffer_sufficient,
+    F_buffer_sufficient_not,
     F_buffer_too_large,
     F_buffer_too_small,
     F_buffer_underflow,
@@ -204,6 +207,12 @@ void test__f_status_string_to__works(void **state) {
     F_character_not,
     F_child,
     F_child_not,
+    F_clock,
+    F_clock_ahead,
+    F_clock_behind,
+    F_clock_match,
+    F_clock_not,
+    F_clock_skew,
     F_combarudoo,
     F_combarudoo_not,
     F_complete,
@@ -684,6 +693,7 @@ void test__f_status_string_to__works(void **state) {
     F_skip,
     F_skip_not,
     F_socket,
+    F_socket_block,
     F_socket_client,
     F_socket_not,
     F_socket_receive,
@@ -933,6 +943,9 @@ void test__f_status_string_to__works(void **state) {
     f_status_buffer_s,
     f_status_buffer_not_s,
     f_status_buffer_overflow_s,
+    f_status_buffer_restrict_s,
+    f_status_buffer_sufficient_s,
+    f_status_buffer_sufficient_not_s,
     f_status_buffer_too_large_s,
     f_status_buffer_too_small_s,
     f_status_buffer_underflow_s,
@@ -955,6 +968,12 @@ void test__f_status_string_to__works(void **state) {
     f_status_character_not_s,
     f_status_child_s,
     f_status_child_not_s,
+    f_status_clock_s,
+    f_status_clock_ahead_s,
+    f_status_clock_behind_s,
+    f_status_clock_match_s,
+    f_status_clock_not_s,
+    f_status_clock_skew_s,
     f_status_combarudoo_s,
     f_status_combarudoo_not_s,
     f_status_complete_s,
@@ -1435,6 +1454,7 @@ void test__f_status_string_to__works(void **state) {
     f_status_skip_s,
     f_status_skip_not_s,
     f_status_socket_s,
+    f_status_socket_block_s,
     f_status_socket_client_s,
     f_status_socket_not_s,
     f_status_socket_receive_s,
@@ -1531,7 +1551,7 @@ void test__f_status_string_to__works(void **state) {
     f_status_status_code_last_s,
   };
 
-  for (uint16_t i = 0; i < 748; ++i) {
+  for (uint16_t i = 0; i < 758; ++i) {
 
     f_string_static_t result = f_string_static_t_initialize;
 
index 32479059a687eacebadaa92ab8382bd6fe831158..da6d2baaa0ccf8dd93dc827cc47a809b0c47060a 100644 (file)
@@ -951,6 +951,24 @@ extern "C" {
       return F_okay;
     }
 
+    if (f_compare_dynamic(name, f_status_buffer_restrict_s) == F_equal_to) {
+      *code = F_buffer_restrict;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_buffer_sufficient_s) == F_equal_to) {
+      *code = F_buffer_sufficient;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_buffer_sufficient_not_s) == F_equal_to) {
+      *code = F_buffer_sufficient_not;
+
+      return F_okay;
+    }
+
     if (f_compare_dynamic(name, f_status_buffer_too_large_s) == F_equal_to) {
       *code = F_buffer_too_large;
 
@@ -1059,38 +1077,74 @@ extern "C" {
       return F_okay;
     }
 
+    if (f_compare_dynamic(name, f_status_character_s) == F_equal_to) {
+      *code = F_character;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_character_not_s) == F_equal_to) {
+      *code = F_character_not;
+
+      return F_okay;
+    }
+
     if (f_compare_dynamic(name, f_status_child_s) == F_equal_to) {
       *code = F_child;
 
       return F_okay;
     }
 
-    if (f_compare_dynamic(name, f_status_combarudoo_s) == F_equal_to) {
-      *code = F_combarudoo;
+    if (f_compare_dynamic(name, f_status_child_not_s) == F_equal_to) {
+      *code = F_child_not;
 
       return F_okay;
     }
 
-    if (f_compare_dynamic(name, f_status_combarudoo_not_s) == F_equal_to) {
-      *code = F_combarudoo_not;
+    if (f_compare_dynamic(name, f_status_clock_s) == F_equal_to) {
+      *code = F_clock;
 
       return F_okay;
     }
 
-    if (f_compare_dynamic(name, f_status_character_s) == F_equal_to) {
-      *code = F_character;
+    if (f_compare_dynamic(name, f_status_clock_ahead_s) == F_equal_to) {
+      *code = F_clock_ahead;
 
       return F_okay;
     }
 
-    if (f_compare_dynamic(name, f_status_character_not_s) == F_equal_to) {
-      *code = F_character_not;
+    if (f_compare_dynamic(name, f_status_clock_behind_s) == F_equal_to) {
+      *code = F_clock_behind;
 
       return F_okay;
     }
 
-    if (f_compare_dynamic(name, f_status_child_not_s) == F_equal_to) {
-      *code = F_child_not;
+    if (f_compare_dynamic(name, f_status_clock_match_s) == F_equal_to) {
+      *code = F_clock_match;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_clock_not_s) == F_equal_to) {
+      *code = F_clock_not;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_clock_skew_s) == F_equal_to) {
+      *code = F_clock_skew;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_combarudoo_s) == F_equal_to) {
+      *code = F_combarudoo;
+
+      return F_okay;
+    }
+
+    if (f_compare_dynamic(name, f_status_combarudoo_not_s) == F_equal_to) {
+      *code = F_combarudoo_not;
 
       return F_okay;
     }
@@ -3996,6 +4050,12 @@ extern "C" {
       return F_okay;
     }
 
+    if (f_compare_dynamic(name, f_status_socket_block_s) == F_equal_to) {
+      *code = F_socket_block;
+
+      return F_okay;
+    }
+
     if (f_compare_dynamic(name, f_status_socket_client_s) == F_equal_to) {
       *code = F_socket_client;
 
index f41b6bd05f03a88d21c93145c8b3e3553758ea12..14473b10f092b43cf398eff77797017c11f3e9a6 100644 (file)
@@ -198,6 +198,9 @@ void test__fl_status_string_from__works(void **state) {
     F_buffer,
     F_buffer_not,
     F_buffer_overflow,
+    F_buffer_restrict,
+    F_buffer_sufficient,
+    F_buffer_sufficient_not,
     F_buffer_too_large,
     F_buffer_too_small,
     F_buffer_underflow,
@@ -220,6 +223,12 @@ void test__fl_status_string_from__works(void **state) {
     F_character_not,
     F_child,
     F_child_not,
+    F_clock,
+    F_clock_ahead,
+    F_clock_behind,
+    F_clock_match,
+    F_clock_not,
+    F_clock_skew,
     F_combarudoo,
     F_combarudoo_not,
     F_complete,
@@ -700,6 +709,7 @@ void test__fl_status_string_from__works(void **state) {
     F_skip,
     F_skip_not,
     F_socket,
+    F_socket_block,
     F_socket_client,
     F_socket_not,
     F_socket_receive,
@@ -949,6 +959,9 @@ void test__fl_status_string_from__works(void **state) {
     f_status_buffer_s,
     f_status_buffer_not_s,
     f_status_buffer_overflow_s,
+    f_status_buffer_restrict_s,
+    f_status_buffer_sufficient_s,
+    f_status_buffer_sufficient_not_s,
     f_status_buffer_too_large_s,
     f_status_buffer_too_small_s,
     f_status_buffer_underflow_s,
@@ -971,6 +984,12 @@ void test__fl_status_string_from__works(void **state) {
     f_status_character_not_s,
     f_status_child_s,
     f_status_child_not_s,
+    f_status_clock_s,
+    f_status_clock_ahead_s,
+    f_status_clock_behind_s,
+    f_status_clock_match_s,
+    f_status_clock_not_s,
+    f_status_clock_skew_s,
     f_status_combarudoo_s,
     f_status_combarudoo_not_s,
     f_status_complete_s,
@@ -1451,6 +1470,7 @@ void test__fl_status_string_from__works(void **state) {
     f_status_skip_s,
     f_status_skip_not_s,
     f_status_socket_s,
+    f_status_socket_block_s,
     f_status_socket_client_s,
     f_status_socket_not_s,
     f_status_socket_receive_s,
@@ -1547,7 +1567,7 @@ void test__fl_status_string_from__works(void **state) {
     f_status_status_code_last_s,
   };
 
-  for (uint16_t i = 0; i < 748; ++i) {
+  for (uint16_t i = 0; i < 758; ++i) {
 
     f_status_t result = F_okay;
 
index 3339e3b2877104de8889d0e667a0983132ddee62..c85fd2c003fd3ed7b2b35e8c060379cbc4896d73 100644 (file)
@@ -8,7 +8,7 @@ extern "C" {
   const f_string_t fll_error_s_a[] = {
     "%[%QAccess denied",
     "%[%QMaximum array length reached",
-    "%[%QMaximum buffer length reached",
+    "%[%QBuffer is too large",
     "%[%QAn error has occurred",
     "%[%QFile not found",
     "%[%QMemory problem",
@@ -112,6 +112,9 @@ extern "C" {
     "%[%QInvalid stream",
     "%[%QDirectoy not found",
     " occurred",
+    "%[%QSocket is blocked",
+    "%[%QBuffer is restricted",
+    "%[%QBuffer is insufficient",
   };
 #endif // _di_fll_error_s_a_
 
index b5aab02c0ce621d6e0831276b93956dd4f9d855c..d96d5dbf53af6fd3b6302b8a953f8992b8af7323 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
   enum {
     fll_error_s_000_access_denied_e,
     fll_error_s_001_max_arr_length_e,
-    fll_error_s_002_max_buf_length_e,
+    fll_error_s_002_buffer_too_large_e,
     fll_error_s_003_error_occurred_e,
     fll_error_s_004_file_not_found_e,
     fll_error_s_005_memory_problem_e,
@@ -143,6 +143,10 @@ extern "C" {
     fll_error_s_103_invalid_stream_e,
     fll_error_s_104_directory_not_found_e,
     fll_error_s_105_occurred_e,
+    fll_error_s_106_blocked_socket_e,
+    fll_error_s_107_buffer_too_small_e,
+    fll_error_s_108_buffer_restrict_e,
+    fll_error_s_109_buffer_insufficient_e,
   }; // enum
 #endif // _di_fll_error_s_e_
 
index 797d913fe05f42b997c384ae6445c2564179b0ad..501eb136ab55098c913205d683864e82bad6d6dd 100644 (file)
@@ -82,8 +82,20 @@ extern "C" {
       return private_fll_error_print_simple(print, debug, macro_fll_error_s(078_available_not_available));
     }
 
+    if (status == F_buffer_restrict) {
+      return private_fll_error_print_simple(print, debug, macro_fll_error_s(108_buffer_restrict));
+    }
+
+    if (status == F_buffer_sufficient_not) {
+      return private_fll_error_print_simple(print, debug, macro_fll_error_s(109_buffer_insufficient));
+    }
+
     if (status == F_buffer_too_large) {
-      return private_fll_error_print_simple(print, debug, macro_fll_error_s(002_max_buf_length));
+      return private_fll_error_print_simple(print, debug, macro_fll_error_s(002_buffer_too_large));
+    }
+
+    if (status == F_buffer_too_small) {
+      return private_fll_error_print_simple(print, debug, macro_fll_error_s(107_buffer_too_small));
     }
 
     if (status == F_busy_address) {
@@ -194,6 +206,10 @@ extern "C" {
       return private_fll_error_print_simple(print, debug, macro_fll_error_s(093_out_of_space));
     }
 
+    if (status == F_socket_block) {
+      return private_fll_error_print_simple(print, debug, macro_fll_error_s(106_blocked_socket));
+    }
+
     if (status == F_socket_not) {
       return private_fll_error_print_simple(print, debug, macro_fll_error_s(087_invalid_socket));
     }