Searched refs:S_IFMT (Results 1 – 6 of 6) sorted by relevance
11 #define S_IFMT 00170000 macro22 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)23 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)24 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)25 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)26 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)27 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)28 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
146 #define DT2IF(dt) (((dt) << 12) & S_IFMT)147 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0); in mkfifoat()
29 MACRO(S_IFMT);
104 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ? in __swhatbuf()
337 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()350 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()