/third_party/python/Lib/ |
D | stat.py | 27 def S_IFMT(mode): function 52 return S_IFMT(mode) == S_IFDIR 56 return S_IFMT(mode) == S_IFCHR 60 return S_IFMT(mode) == S_IFBLK 64 return S_IFMT(mode) == S_IFREG 68 return S_IFMT(mode) == S_IFIFO 72 return S_IFMT(mode) == S_IFLNK 76 return S_IFMT(mode) == S_IFSOCK
|
D | filecmp.py | 71 return (stat.S_IFMT(st.st_mode), 173 a_type = stat.S_IFMT(a_stat.st_mode) 174 b_type = stat.S_IFMT(b_stat.st_mode)
|
/third_party/musl/ndk_musl_include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/porting/linux/user/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | stat.h | 29 #define S_IFMT 0170000 macro 44 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 45 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 46 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 48 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 49 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 50 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/third_party/node/deps/uvwasi/src/ |
D | uv_mapping.c | 11 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG) 12 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 15 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) 16 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 19 #if !defined(S_ISCHR) && defined(S_IFMT) && defined(S_IFCHR) 20 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 23 #if !defined(S_ISLNK) && defined(S_IFMT) && defined(S_IFLNK) 24 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
|
/third_party/libwebsockets/win32port/dirent/ |
D | dirent-win32.h | 52 #if !defined(S_IFMT) 53 # define S_IFMT _S_IFMT macro 178 #define IFTODT(mode) ((mode) & S_IFMT) 188 # define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 191 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 194 # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 197 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 200 # define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) 203 # define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 206 # define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
|
/third_party/skia/third_party/externals/expat/expat/xmlwf/ |
D | readfilemap.c | 67 # ifndef S_IFMT 68 # define S_IFMT _S_IFMT macro 70 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
|
/third_party/expat/xmlwf/ |
D | readfilemap.c | 67 # ifndef S_IFMT 68 # define S_IFMT _S_IFMT macro 70 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
|
/third_party/python/Include/ |
D | pyport.h | 248 #ifndef S_IFMT 250 #define S_IFMT 0170000 macro 260 #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) 264 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) 268 #define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR)
|
/third_party/python/Modules/ |
D | _stat.c | 92 # define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 96 # define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 100 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 104 # define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) 344 return PyLong_FromUnsignedLong(mode & S_IFMT); in stat_S_IFMT()
|
/third_party/curl/lib/ |
D | curl_setup.h | 738 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG) 739 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 743 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) 744 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | dir.h | 41 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 47 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/third_party/typescript/src/harness/ |
D | vfsUtil.ts | 23 const S_IFMT = 0o170000; // file type constant 869 mode: (mode & ~S_IFMT & ~0o022 & 0o7777) | (type & S_IFMT), 927 switch (stats.mode & S_IFMT) { 1321 public isFile() { return (this.mode & S_IFMT) === S_IFREG; } 1322 public isDirectory() { return (this.mode & S_IFMT) === S_IFDIR; } 1323 public isSymbolicLink() { return (this.mode & S_IFMT) === S_IFLNK; } 1324 public isBlockDevice() { return (this.mode & S_IFMT) === S_IFBLK; } 1325 public isCharacterDevice() { return (this.mode & S_IFMT) === S_IFCHR; } 1326 public isFIFO() { return (this.mode & S_IFMT) === S_IFIFO; } 1327 public isSocket() { return (this.mode & S_IFMT) === S_IFSOCK; } [all …]
|
/third_party/openssl/ |
D | e_os.h | 123 # ifndef S_IFMT 124 # define S_IFMT _S_IFMT macro
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify04.c | 123 } else if ((int)(st.st_mode & S_IFMT) != mask) { in verify_event() 125 "(%o != %o)", st.st_mode & S_IFMT, mask); in verify_event()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open14.c | 208 if ((st.st_mode & ~S_IFMT) != exp_mode) { in test03() 211 st.st_mode & ~S_IFMT, exp_mode); in test03()
|
/third_party/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod09.c | 73 #define MODE_RWX S_IFMT /* mode different from those expected */
|
/third_party/ltp/testcases/kernel/syscalls/lstat/ |
D | lstat01.c | 39 if ((stat_buf.st_mode & S_IFMT) != S_IFLNK || in run()
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
D | openat03.c | 219 if ((st.st_mode & ~S_IFMT) != exp_mode) { in test03() 222 st.st_mode & ~S_IFMT, exp_mode); in test03()
|
/third_party/toybox/toys/other/ |
D | stat.c | 78 if (type == 'a') out('o', stat->st_mode&~S_IFMT); in print_stat() 97 int i, filetype = stat->st_mode & S_IFMT; in print_stat()
|