From: Kevin Day Date: Sat, 22 Mar 2025 03:10:16 +0000 (-0500) Subject: Feature: Add missing file type unknown string. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=00322fe66bafaa5cf9ddd477b643bc63803da95b;p=fll Feature: Add missing file type unknown string. The string for unknown file type should be supported for consistency reasons. --- diff --git a/build/disable/level_0/f_file.h b/build/disable/level_0/f_file.h index 70b7140..2c7671a 100644 --- a/build/disable/level_0/f_file.h +++ b/build/disable/level_0/f_file.h @@ -143,6 +143,7 @@ #define _di_f_file_type_name_link_s_ #define _di_f_file_type_name_regular_s_ #define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ #define _di_f_file_type_s_ #define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/build/stand_alone/byte_dump.config.h b/build/stand_alone/byte_dump.config.h index 82f3bbd..09ed22b 100644 --- a/build/stand_alone/byte_dump.config.h +++ b/build/stand_alone/byte_dump.config.h @@ -386,6 +386,7 @@ #define _di_f_file_type_name_link_s_ #define _di_f_file_type_name_regular_s_ #define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ #define _di_f_file_type_s_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/build/stand_alone/example.config.h b/build/stand_alone/example.config.h index 1d58f19..d8f888b 100644 --- a/build/stand_alone/example.config.h +++ b/build/stand_alone/example.config.h @@ -337,6 +337,7 @@ #define _di_f_file_type_name_link_s_ #define _di_f_file_type_name_regular_s_ #define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ #define _di_f_file_type_s_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/build/stand_alone/fake.config.h b/build/stand_alone/fake.config.h index d1fd31d..0e49a5b 100644 --- a/build/stand_alone/fake.config.h +++ b/build/stand_alone/fake.config.h @@ -533,6 +533,7 @@ //#define _di_f_file_type_name_link_s_ //#define _di_f_file_type_name_regular_s_ //#define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ //#define _di_f_file_type_s_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/build/stand_alone/firewall.config.h b/build/stand_alone/firewall.config.h index 2ad5eb2..864994d 100644 --- a/build/stand_alone/firewall.config.h +++ b/build/stand_alone/firewall.config.h @@ -534,6 +534,7 @@ #define _di_f_file_type_name_link_s_ #define _di_f_file_type_name_regular_s_ #define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ #define _di_f_file_type_s_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/build/stand_alone/utf8.config.h b/build/stand_alone/utf8.config.h index 279527a..05589b6 100644 --- a/build/stand_alone/utf8.config.h +++ b/build/stand_alone/utf8.config.h @@ -386,6 +386,7 @@ #define _di_f_file_type_name_link_s_ #define _di_f_file_type_name_regular_s_ #define _di_f_file_type_name_socket_s_ +#define _di_f_file_type_name_unknown_s_ #define _di_f_file_type_s_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ diff --git a/level_0/f_file/c/file/common.c b/level_0/f_file/c/file/common.c index e9df7ae..f30c0a0 100644 --- a/level_0/f_file/c/file/common.c +++ b/level_0/f_file/c/file/common.c @@ -36,6 +36,10 @@ extern "C" { #ifndef _di_f_file_type_name_socket_s_ const f_string_static_t f_file_type_name_socket_s = macro_f_string_static_t_initialize_1(F_file_type_name_socket_s, 0, F_file_type_name_socket_s_length); #endif // _di_f_file_type_name_socket_s_ + + #ifndef _di_f_file_type_name_unknown_s_ + const f_string_static_t f_file_type_name_unknown_s = macro_f_string_static_t_initialize_1(F_file_type_name_unknown_s, 0, F_file_type_name_unknown_s_length); + #endif // _di_f_file_type_name_unknown_s_ #endif // _di_f_file_type_s_ #ifndef _di_f_file_open_mode_s_ diff --git a/level_0/f_file/c/file/common.h b/level_0/f_file/c/file/common.h index b38d094..3791931 100644 --- a/level_0/f_file/c/file/common.h +++ b/level_0/f_file/c/file/common.h @@ -101,6 +101,7 @@ extern "C" { * - link: A string representing the link file type. * - regular: A string representing the regular file type. * - socket: A string representing the socket file type. + * - unknown: A string representing an unknown file type. */ #ifndef _di_f_file_type_s_ #define F_file_type_name_block_s "block" @@ -111,6 +112,7 @@ extern "C" { #define F_file_type_name_link_s "link" #define F_file_type_name_regular_s "regular" #define F_file_type_name_socket_s "socket" + #define F_file_type_name_unknown_s "unknown" #define F_file_type_name_block_s_length 5 #define F_file_type_name_character_s_length 9 @@ -120,6 +122,7 @@ extern "C" { #define F_file_type_name_link_s_length 4 #define F_file_type_name_regular_s_length 7 #define F_file_type_name_socket_s_length 6 + #define F_file_type_name_unknown_s_length 7 #ifndef _di_f_file_type_name_block_s_ extern const f_string_static_t f_file_type_name_block_s; @@ -152,6 +155,10 @@ extern "C" { #ifndef _di_f_file_type_name_socket_s_ extern const f_string_static_t f_file_type_name_socket_s; #endif // _di_f_file_type_name_socket_s_ + + #ifndef _di_f_file_type_name_unknown_s_ + extern const f_string_static_t f_file_type_name_unknown_s; + #endif // _di_f_file_type_name_unknown_s_ #endif // _di_f_file_type_s_ /**