Home
last modified time | relevance | path

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

1234

/third_party/python/Lib/
Dstat.py27 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
Dfilecmp.py71 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/
Dstat.h29 #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/
Dstat.h29 #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/
Dstat.h29 #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/
Dstat.h29 #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/
Dstat.h29 #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/
Dstat.h29 #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/
Dstat.h29 #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/
Duv_mapping.c11 #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/
Ddirent-win32.h52 #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/
Dreadfilemap.c67 # ifndef S_IFMT
68 # define S_IFMT _S_IFMT macro
70 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
/third_party/expat/xmlwf/
Dreadfilemap.c67 # ifndef S_IFMT
68 # define S_IFMT _S_IFMT macro
70 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
/third_party/python/Include/
Dpyport.h248 #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.c92 # 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/
Dcurl_setup.h738 #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/
Ddir.h41 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
47 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
/third_party/typescript/src/harness/
DvfsUtil.ts23 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/
De_os.h123 # ifndef S_IFMT
124 # define S_IFMT _S_IFMT macro
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify04.c123 } 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/
Dopen14.c208 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/
Dmknod09.c73 #define MODE_RWX S_IFMT /* mode different from those expected */
/third_party/ltp/testcases/kernel/syscalls/lstat/
Dlstat01.c39 if ((stat_buf.st_mode & S_IFMT) != S_IFLNK || in run()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat03.c219 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/
Dstat.c78 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()

1234