From: Kevin Day Date: Wed, 19 Mar 2025 02:52:59 +0000 (-0500) Subject: Feature: Add support for unknown file type. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ad0d9675aba2cf52defe28ec7fcb1932117b14e5;p=fll Feature: Add support for unknown file type. --- diff --git a/level_0/f_file/c/file/common.h b/level_0/f_file/c/file/common.h index 186e79f..61e84c1 100644 --- a/level_0/f_file/c/file/common.h +++ b/level_0/f_file/c/file/common.h @@ -50,6 +50,7 @@ extern "C" { * - link: The file type is a file link. * - regular: The file type is a regular file. * - socket: The file type is a socket file. + * - unknown: The file type is unknown (no type is set). */ #ifndef _di_f_file_type_d_ #define F_file_type_block_d S_IFBLK @@ -70,6 +71,7 @@ extern "C" { #define macro_f_file_type_is_link(mode) (macro_f_file_type_get(mode) == F_file_type_link_d) #define macro_f_file_type_is_regular(mode) (macro_f_file_type_get(mode) == F_file_type_regular_d) #define macro_f_file_type_is_socket(mode) (macro_f_file_type_get(mode) == F_file_type_socket_d) + #define macro_f_file_type_is_unknown(mode) (!(macro_f_file_type_get(mode) & F_file_type_mask_d)) #endif // _di_f_file_type_d_ /**