*
* These type macros are of size 32-bit (int32_t).
*
- * F_file_type_*:
+ * F_file_type_*_d:
* - block: The file type is a block device.
* - character: The file type is a character device.
* - directory: The file type is a directory.
* - 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).
+ *
+ * macro_f_file_type_*:
+ * - clear: Clear all of the file type bits.
+ * - get: Get only the file type bits.
+ *
+ * macro_f_file_type_is_*:
+ * - block: Is a block file type.
+ * - character: Is a character file type.
+ * - directory: Is a directory file type.
+ * - fifo: Is a FIFO file type.
+ * - link: Is a link file type.
+ * - regular: Is a regular file type.
+ * - socket: Is a socket file type.
+ * - unknown: Is an unknown file type.
*/
#ifndef _di_f_file_type_d_
#define F_file_type_block_d S_IFBLK
#define F_file_type_regular_d S_IFREG
#define F_file_type_socket_d S_IFSOCK
+ #define macro_f_file_type_clear(mode) (~F_file_type_mask_d & mode)
#define macro_f_file_type_get(mode) (F_file_type_mask_d & mode)
#define macro_f_file_type_is_block(mode) (macro_f_file_type_get(mode) == F_file_type_block_d)