Searched refs:S_IFMT (Results 1 – 4 of 4) sorted by relevance
9 #define S_IFMT 00170000 macro21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
30 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT)31 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
3069 return (inode->i_mode ^ mode) & S_IFMT; in inode_wrong_type()