From: Kevin Day Date: Sat, 29 Aug 2020 03:18:42 +0000 (-0500) Subject: Update: add file type name strings and lengths. X-Git-Tag: 0.5.0~34 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=54a1220edbab6927d4ad9692ea3ce9105ffe93fe;p=fll Update: add file type name strings and lengths. --- diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 78e8573..f2e961e 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -84,6 +84,22 @@ extern "C" { #define f_file_type_regular S_IFREG #define f_file_type_socket S_IFSOCK + #define f_file_type_name_block "block" + #define f_file_type_name_character "character" + #define f_file_type_name_directory "directory" + #define f_file_type_name_fifo "fifo" + #define f_file_type_name_link "link" + #define f_file_type_name_regular "regular" + #define f_file_type_name_socket "socket" + + #define f_file_type_name_block_length 5 + #define f_file_type_name_character_length 9 + #define f_file_type_name_directory_length 9 + #define f_file_type_name_fifo_length 4 + #define f_file_type_name_link_length 4 + #define f_file_type_name_regular_length 7 + #define f_file_type_name_socket_length 6 + #define f_macro_file_type_get(mode) (f_file_type_mask & mode) #define f_macro_file_type_is_block(mode) f_macro_file_type_get(mode) == f_file_type_block