Home
last modified time | relevance | path

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

123456

/external/python/cpython2/Lib/
Dstat.py24 def S_IFMT(mode): function
41 return S_IFMT(mode) == S_IFDIR
44 return S_IFMT(mode) == S_IFCHR
47 return S_IFMT(mode) == S_IFBLK
50 return S_IFMT(mode) == S_IFREG
53 return S_IFMT(mode) == S_IFIFO
56 return S_IFMT(mode) == S_IFLNK
59 return S_IFMT(mode) == S_IFSOCK
Dfilecmp.py60 return (stat.S_IFMT(st.st_mode),
160 a_type = stat.S_IFMT(a_stat.st_mode)
161 b_type = stat.S_IFMT(b_stat.st_mode)
/external/u-boot/fs/yaffs2/
Dyportenv.h220 #ifndef S_IFMT
221 #define S_IFMT 0170000 macro
252 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
253 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
254 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
255 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
256 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
257 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
258 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
/external/kernel-headers/original/uapi/linux/
Dstat.h9 #define S_IFMT 00170000 macro
21 #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)
/external/python/cpython3/Lib/
Dstat.py27 def S_IFMT(mode): function
48 return S_IFMT(mode) == S_IFDIR
52 return S_IFMT(mode) == S_IFCHR
56 return S_IFMT(mode) == S_IFBLK
60 return S_IFMT(mode) == S_IFREG
64 return S_IFMT(mode) == S_IFIFO
68 return S_IFMT(mode) == S_IFLNK
72 return S_IFMT(mode) == S_IFSOCK
Dfilecmp.py69 return (stat.S_IFMT(st.st_mode),
169 a_type = stat.S_IFMT(a_stat.st_mode)
170 b_type = stat.S_IFMT(b_stat.st_mode)
/external/u-boot/include/linux/
Dstat.h10 #define S_IFMT 00170000 /* type of file */ macro
22 #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)
/external/strace/
Dprintmode.c45 if (mode & S_IFMT) in print_symbolic_mode_t()
46 ifmt = xlookup(modetypes, mode & S_IFMT); in print_symbolic_mode_t()
60 mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)); in print_symbolic_mode_t()
/external/expat/xmlwf/
Dreadfilemap.c62 # ifndef S_IFMT
63 # define S_IFMT _S_IFMT macro
65 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
/external/python/cpython3/Include/
Dpyport.h229 #ifndef S_IFMT
231 #define S_IFMT 0170000 macro
241 #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
245 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
249 #define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR)
/external/python/cpython2/Lib/plat-atheos/
DIN.py570 S_IFMT = 00170000 variable
581 def S_ISLNK(m): return (((m) & S_IFMT) == S_IFLNK)
583 def S_ISREG(m): return (((m) & S_IFMT) == S_IFREG)
585 def S_ISDIR(m): return (((m) & S_IFMT) == S_IFDIR)
587 def S_ISCHR(m): return (((m) & S_IFMT) == S_IFCHR)
589 def S_ISBLK(m): return (((m) & S_IFMT) == S_IFBLK)
591 def S_ISFIFO(m): return (((m) & S_IFMT) == S_IFIFO)
593 def S_ISSOCK(m): return (((m) & S_IFMT) == S_IFSOCK)
/external/ipsec-tools/src/racoon/
Dsafefile.c73 switch (s.st_mode & S_IFMT) {
79 (s.st_mode & S_IFMT));
/external/python/cpython3/Modules/
D_stat.c88 # define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
92 # define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
96 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
100 # define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
340 return PyLong_FromUnsignedLong(mode & S_IFMT); in stat_S_IFMT()
/external/strace/tests-mx32/
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/strace/tests-m32/
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/strace/tests/
Dmknodat.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dmknod.c56 const unsigned short mode = (0xffff & ~S_IFMT) | S_IFBLK; in main()
62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
Dxstatx.c136 printf("%#o", mode & S_IFMT); in print_ftype()
142 printf("%#o", mode & ~S_IFMT); in print_perms()
168 switch (st->st_mode & S_IFMT) { in print_stat()
/external/curl/lib/
Dcurl_setup.h745 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
746 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
750 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
751 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/external/ImageMagick/MagickWand/
Dstudio.h198 # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
201 # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify04.c128 } else if ((int)(st.st_mode & S_IFMT) != mask) { in verify_event()
130 "(%o != %o)", st.st_mode & S_IFMT, mask); in verify_event()

123456