From ad0d9675aba2cf52defe28ec7fcb1932117b14e5 Mon Sep 17 00:00:00 2001
From: Kevin Day <Kevin@kevux.org>
Date: Tue, 18 Mar 2025 21:52:59 -0500
Subject: [PATCH] Feature: Add support for unknown file type.

---
 level_0/f_file/c/file/common.h | 2 ++
 1 file changed, 2 insertions(+)

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_
 
 /**
-- 
1.8.3.1