Kernel: Add missing ififo() to Inode::Mode

This commit is contained in:
Bananymous 2023-08-31 21:38:13 +03:00
parent 104b2740bc
commit a7bfc1c2ec
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ namespace Kernel
bool ifdir() const { return (mode & Mask::TYPE_MASK) == Mask::IFDIR; } bool ifdir() const { return (mode & Mask::TYPE_MASK) == Mask::IFDIR; }
bool ifblk() const { return (mode & Mask::TYPE_MASK) == Mask::IFBLK; } bool ifblk() const { return (mode & Mask::TYPE_MASK) == Mask::IFBLK; }
bool ifreg() const { return (mode & Mask::TYPE_MASK) == Mask::IFREG; } bool ifreg() const { return (mode & Mask::TYPE_MASK) == Mask::IFREG; }
bool ififo() const { return (mode & Mask::TYPE_MASK) == Mask::IFIFO; }
bool iflnk() const { return (mode & Mask::TYPE_MASK) == Mask::IFLNK; } bool iflnk() const { return (mode & Mask::TYPE_MASK) == Mask::IFLNK; }
bool ifsock() const { return (mode & Mask::TYPE_MASK) == Mask::IFSOCK; } bool ifsock() const { return (mode & Mask::TYPE_MASK) == Mask::IFSOCK; }
mode_t mode; mode_t mode;