Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/kernel/uapi/linux/
Dstat.h23 #define S_IFMT 00170000 macro
34 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
35 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
36 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
37 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
38 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
39 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
40 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
Dgfs2_ondisk.h153 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
154 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/bionic/libc/include/android/
Dlegacy_sys_stat_inlines.h41 return mknod(__path, (__mode & ~S_IFMT) | S_IFIFO, (dev_t)0); in mkfifo()
/bionic/libc/bionic/
Dmkfifo.cpp38 return mknodat(fd, path, (mode & ~S_IFMT) | S_IFIFO, 0); in mkfifoat()
/bionic/tests/headers/posix/
Dsys_stat_h_mode_constants.h29 MACRO(S_IFMT);
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmakebuf.c104 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ? in __swhatbuf()
/bionic/tests/
Dfcntl_test.cpp319 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()
332 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()